Skip to content

Feature request for nativesdk-packagegroup-avr-toolchain-host #3

@lgrosz

Description

@lgrosz

Hi. This is somewhat related to #2, which allows for building of avr binaries during bitbake execution. It would be nice to also have the tools be populated during the populate_sdk task so the same toolchain can be used to build when sourcing the Yocto sdk. Is this something that can be done? Looking into poky, it seems like all that would be needed is the packagegroup and have BBCLASSEXTENDS contain nativesdk.

I attempted this myself by adding

  • BBCLASSEXTENDS = "nativesdk" to, avr-* recipes

  • Added a package group...

    SUMMARY = "Host packages for AVR SDK or external toolchain"
    LICENSE = "MIT"
    
    inherit nativesdk packagegroup
    
    PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1"
    
    RDEPENDS_${PN} += " \
        nativesdk-packagegroup-sdk-host \
        nativesdk-avr-binutils \
        nativesdk-avr-gcc \
        nativesdk-avr-gdb \
        nativesdk-avr-libc \
    "
    

However, I encountered an error when compiling nativesdk-avr-gcc:

g++: error: unrecognized command line option ‘-fmacro-prefix-map=...'

I am not well versed in target vs native vs nativesdk, so I am unsure where to go from here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions