-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Yocto build compatibility #5627
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
Conversation
48d2854 to
9c029f8
Compare
|
Regarding the syzkaller/sys/targets/targets.go Lines 940 to 953 in d7f584e
It wonder why this logic did not work properly in your case. Does it only fire when a specific subset of flags is specified? |
a-nogikh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
@a-nogikh If I understand this logic correctly, only flags listed in |
9c029f8 to
7c09bf9
Compare
Actually, I wonder if It might affect @dvyukov @ramosian-glider Do you know if we have any specific reasons to keep |
|
I think it should be safe to remove these -D and -march flags already. They date back to 2017, and today armv7 should be more or less the standard. |
Following standard conventions simplifies the Yocto recipe.
Currently, cross compiler names are hardcoded for each OS/arch combo. However, toolchain tuples differ, especially when using vendor provided toolchains or building with Yocto. Allow users to specify the cross compiler for an OS/arch combo using SYZ_CC_<os>_<arch> environment variables.
Depending on the cross compiler build configuration, it might not be able to emit ARMv6 Thumb-1 instructions leading to "sorry, unimplemented: Thumb-1 hard-float VFP ABI" error.
7c09bf9 to
8cb5aaa
Compare
See this line in the Yocto recipe on why we need Makefile: rename CFLAGS to CXXFLAGS and add LDFLAGS. sys/targets: allow users to override hardcoded cross-compilers and sys/targets: remove hardcoded CFlags for ARM are based upon a Yocto recipe patch. Note that there might be reasons why we need to force emitting ARMv6 code, but I could not find any hint in the history; so please let me know if we need to approach this issue in a different way.