-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
avr-libc
not present during recipe do_compile
#2
Comments
From what I understand:
All code I have is in here. There are some very old avr-projects I did decades ago in https://github.com/schnitzeltony/old-avr-projects Did that help? |
Yep! I'm trying to create the AVR binary ( I'm not super well versed in yocto yet and suspect I may just be missing something from the recipe or am looking in the wrong places for the The repo linked seems to be AVR source rather than bitbake recipe examples that cross-compile during build time. No worries at all if you don't have anything available though or don't have a solution off the top of your head! Feel free to close this issue too - just wanted to check before I dive in too deep. |
When making the recipes for AVR toolchain I thought: Would be a nice feature to compile AVR sources during build time. Have prepared a bbclass for this here but that was never tested. So: Cannot promise a schedule - made this layer just for fun - but I would like to make this work (my old sources as test case) - just because it's cool
Challenge - No reason to close this issue at all! |
Update: I pushed avr-toolchain.bbclass (haven't tested nothing - just guesswork). Currently my free time is very limited. Maybe you want to give it a try by inheriting it and let me know - or send some PR... |
I'll give it a look and test it out! I'm still new to yocto and figuring things out but I'll definitely open a PR if changes are needed and I can make it work! |
Spent some cyles on this one an can now compile AVR sources during YOCTO build.
You asked for a recipe: https://github.com/schnitzeltony/meta-microcontroller/blob/master/recipes-avr/avr-projects/old-avr-projects.bb Ahh and: Had to do some adjustments on the project Makefiles (use += instead of = for flags). Makefiles were made manually and I wonder if other projects - with auto generated Makefiles - build either. |
Thank you so much for this! The new For future readers, the key parts of the recipe files when trying to cross-build for AVR seem to be:
The key part that was causing issue for me was the missing Again, thanks a ton @schnitzeltony! |
I was able to make similar changes off the |
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 missingavr-libc
components which I can't seem to find in the build-time sysroot. In the recipe, I havehowever 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 thedo_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.The text was updated successfully, but these errors were encountered: