You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect BASE_ARCH=aarch64 to be fixed. However when the code gets to the selection of qemu-arm-static in src/custompios the value is being reset to BASE_ARCH=armhf and I'm not entirely sure where:
Note that I've added some debugging and changes to custompios to try to figure out what's happening. By the time the build process gets here, BASE_ARCH is being change from aarch64 to armhf.
Looks like this is being set somewhere in src/custompios_core/generate_board_config.py or one of the other modules. I'm not entirely sure where since BASE_BOARD=raspberrypiarm64 should result in the correct configuration if I read the images.yml file correctly.
The file being created in /tmp will always contain export BASE_ARCH="armhf" because the environment variables set by the particular build's config file is not sourced and loaded before calling generate_board_config.py. And then the output of generate_board_config.py seems to always override the config setting.
Activity
jxmx commentedon Nov 30, 2024
I should additionally point out that the script is properly downloading the arm64 image:
However, I finally figured out that this is erroneously sneaking into the configuration via
extra_board_config:Looks like this is being set somewhere in
src/custompios_core/generate_board_config.pyor one of the other modules. I'm not entirely sure where sinceBASE_BOARD=raspberrypiarm64should result in the correct configuration if I read theimages.ymlfile correctly.jxmx commentedon Dec 1, 2024
Tracking this down further, it appears that
generate_board_config.pyis getting called inbuildbefore the configuration file is being read in:The file being created in
/tmpwill always containexport BASE_ARCH="armhf"because the environment variables set by the particular build'sconfigfile is not sourced and loaded before callinggenerate_board_config.py. And then the output ofgenerate_board_config.pyseems to always override theconfigsetting.