-
Notifications
You must be signed in to change notification settings - Fork 206
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
make prep broken out of the box #629
Comments
Looks like the sample toolchains set OSAL_SYSTEM_BSPNAME, not OSAL_SYSTEM_BSPTYPE. I don't really follow the logic for the "guess" in arch_build.cmake. Seems like it would be safer just to error if any of the three aren't defined, otherwise it may overwrite customization set in the toolchain file (require all 3 to be defined, don't overwrite from deep in the build if 1 is missing). |
I had this today too: Was anything renamed recently? --- a/sample_defs/toolchain-cpu1.cmake
+++ b/sample_defs/toolchain-cpu1.cmake
@@ -20,6 +20,6 @@ SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE NEVER)
# These variable settings are specific to cFE/OSAL and determines which
# abstraction layers are built when using this toolchain
SET(CFE_SYSTEM_PSPNAME "pc-linux")
-SET(OSAL_SYSTEM_BSPNAME "pc-linux")
+SET(OSAL_SYSTEM_BSPTYPE "pc-linux")
SET(OSAL_SYSTEM_OSTYPE "posix") |
Also removes overwrite of CFE_SYSTEM_PSPNAME, OSAL_SYTEM_BSPTYPE, OSAL_SYSTEM_OSTYPE if one is missing from arch_build.cmake.
The difference is that in the current master branch |
Describe the bug
Prep fails out of the box when following README instructions:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expected it to default to pc-linux as in the past.
Code snips
The following does not set OSAL_SYSTEM_BSPTYPE since CFE_SYSTEM_PSPNAME and OSAL_SYSTEM_OSTYPE is defined...
cFE/cmake/arch_build.cmake
Lines 275 to 289 in 0648a47
System observed on:
Additional context
Short term work around - pass in SIMULATION=native at prep, or likely can define the target system in targets.cmake (2nd approach not tested yet)
Reporter Info
Jacob Hageman - NASA/GSFC
The text was updated successfully, but these errors were encountered: