-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
zefi.py assumes host GCC is x86 #27047
Comments
We could pass the compiler to the script via the environment or the command line for a quick fix. But note that there's been absolutely no thought given to non-x86 EFI environments. It's very much an arch-specific feature right now. The framework is there, I guess, but I'd expect significant changes would be needed to get the COFF linkage working on other platforms, etc... I'd mostly view this as a duplicate of #26737, yeah. |
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time. |
@andyross I'll follow-up with you about this bug. @nashif clarified this is not a duplicate. I'll update this bug as I learn more. |
Currently, zefi.py takes host GCC OBJCOPY as default. Fixing the script to use CMAKE_C_COMPILER and CMAKE_OBJCOPY. Fixes: zephyrproject-rtos#27047 Signed-off-by: Spoorthy Priya Yerabolu <[email protected]>
Currently, zefi.py takes host GCC OBJCOPY as default. Fixing the script to use CMAKE_C_COMPILER and CMAKE_OBJCOPY. Fixes: #27047 Signed-off-by: Spoorthy Priya Yerabolu <[email protected]>
Re-open this issue since we need an update to the SDK to enable EFI binary targets in binutils. |
With SDK 0.12.2 we have support to generation EFI binaries in binutils which is needed by the zefi.py script. Now that is there we can utilize the SDK objcopy instead of assuming the host objcopy can do this (which would only be the case on x86 linux host systems). Fixes zephyrproject-rtos#27047 Signed-off-by: Kumar Gala <[email protected]>
With SDK 0.12.2 we have support to generation EFI binaries in binutils which is needed by the zefi.py script. Now that is there we can utilize the SDK objcopy instead of assuming the host objcopy can do this (which would only be the case on x86 linux host systems). Fixes #27047 Signed-off-by: Kumar Gala <[email protected]>
zefi.py will fail if this assumption isn't meet. Which may be the case on either an arm64 host environment or on something like MacOS X.
Is it possible to use the x86 cross compiler that build zephyr here?
The text was updated successfully, but these errors were encountered: