Giter Club home page Giter Club logo

meta-microcontroller's Introduction

OE layer building toolchains & tools for MCUs

This layer was created to build development tools for microcontrollers. Since building of native toolchain is necessary it is possible to ship binaries compiled from source into images.

Supported MCU:

Layer dependencies:

see layer.conf for dependencies and Layer-index where to find layers

Contributing

  • Submit any patches against the meta-microcontroller layer by using the GitHub pull-request feature.

Policies

  • Please do not send private emails to maintainer - they will not be answered anymore. For bug-reports/questions/suggestions.. use issues.
  • Pull requests should follow OE-Styleguide with the following additions:
    • Use 4 spaces for indentation always (shell and python code)
    • For splitting of long list values use four-space indentation on successive lines and prefer the closing quote as the first character (OE-Styleguide - second example)
    • Pull-requests with patches fixing issues for musl, clang or gold-linker are accepted only if patches have upstream-status "Applied" or "Backport" and contain a link to the upstream patch.

Maintainers

Layer maintainer: Andreas Müller [email protected]

meta-microcontroller's People

Contributors

kant avatar schnitzeltony avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

meta-microcontroller's Issues

`avr-libc` not present during recipe `do_compile`

I'm trying to create a recipe for a non-avr target that includes an mcu binary, but am running into issues compiling the binary. avr-gcc is present and available in the compilation step, however there are issues with missing avr-libc components which I can't seem to find in the build-time sysroot. In the recipe, I have

DEPENDS += " \
  avr-libc \
  avg-gcc-native \
"

however I'm wondering if there is some additional yocto magic required, or if avr-libc is being added somewhere else (it isn't present in ${libdir} when inspecting during the do_compile step).

@schnitzeltony do you have any public recipes which do a similar thing that I could take a look at? The main issue seems to just be the presence of avr-libc in the sysroot while compiling.

Feature request for `nativesdk-packagegroup-avr-toolchain-host`

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.