-
Notifications
You must be signed in to change notification settings - Fork 318
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
[BUG] CONFIG_ZEPHYR_HAL_NXP_MODULE was set to y during tgl/mtl/lnl build #8782
Comments
below link generated file Kconfig.modules during pre-build: there is definition for: menu "hal_nxp (/home/btian1/sof_mtl/modules/hal/nxp)" I just don't know how Kconfig.modules was generated with above link, @marc-hb , @kv2019i , could you guide here? |
Aa, I think this comes automatically for all modules we list in sof/west.yml. So we have hal_nxp there, so this config is added automatically in the build So I think this is harmless. Nothing gets build due to this module being there, it's jus a kconfig that tells the module is present in the work area. We have these two (and not all are used by all SOF builds): ../build-mtl/zephyr/.config: |
As @kv2019i mentioned above the nxp_hal is imported, by default, for all platforms from SOF's west.yml - https://github.com/thesofproject/sof/blob/main/west.yml#L57 We can change this issue in a feature - import nxp_hal only for NXP platforms. Maybe we can make it optional? |
Making west modules optional would complicate CI and other things. I don't think we need to get into SOF package management yet (like zephyrproject-rtos/zephyr#61505 just did), I think we have enough more important problems to solve. Please just stop dumping gigabyte-big, entire SDKs in that repo :-) PS: thank you @btian1 for paying attention to the build logs. Most people seem to miss warnings there :-) However I think this one can be closed. |
Try |
it is not only have a config during build: CONFIG_ZEPHYR_HAL_NXP_MODULE it have include path involved, this is also acceptable for tgl/mtl/lnl build? check build.ninja: ZEPHYR_HAL_NXP_MODULE_DIR=/home/btian1/sof_mtl/modules/hal/nxp ZEPHYR_HAL_NXP_KCONFIG=/home/btian1/sof_mtl/zephyr/modules/hal_nxp/Kconfig_** ../build-mtl/build.ninja:241: COMMAND = cd /home/btian1/sof_mtl/build-mtl/zephyr/kconfig && /usr/bin/cmake -E env ZEPHYR_BASE=/home/btian1/sof_mtl/zephyr PYTHON_EXECUTABLE=/usr/bin/python3.8 srctree=/home/btian1/sof_mtl/zephyr KERNELVERSION=0x3056300 APPVERSION= CONFIG_=CONFIG_ KCONFIG_CONFIG=/home/btian1/sof_mtl/build-mtl/zephyr/.config ARCH=xtensa ARCH_DIR=/home/btian1/sof_mtl/zephyr/arch BOARD_DIR=/home/btian1/sof_mtl/zephyr/boards/xtensa/intel_adsp_ace15_mtpm BOARD_REVISION= KCONFIG_BINARY_DIR=/home/btian1/sof_mtl/build-mtl/Kconfig APPLICATION_SOURCE_DIR=/home/btian1/sof_mtl/sof/app ZEPHYR_TOOLCHAIN_VARIANT=xt-clang TOOLCHAIN_KCONFIG_DIR=/home/btian1/sof_mtl/zephyr/cmake/toolchain/xt-clang TOOLCHAIN_HAS_NEWLIB=n TOOLCHAIN_HAS_PICOLIBC=n EDT_PICKLE=/home/btian1/sof_mtl/build-mtl/zephyr/edt.pickle ZEPHYR_SOF_MODULE_DIR=/home/btian1/sof_mtl/sof ### **ZEPHYR_HAL_NXP_MODULE_DIR=/home/btian1/sof_mtl/modules/hal/nxp ZEPHYR_HAL_NXP_KCONFIG=/home/btian1/sof_mtl/zephyr/modules/hal_nxp/Kconfig** ZEPHYR_XTENSA_MODULE_DIR=/home/btian1/sof_mtl/modules/hal/xtensa ZEPHYR_MBEDTLS_MODULE_DIR=/home/btian1/sof_mtl/modules/crypto/mbedtls ZEPHYR_MBEDTLS_KCONFIG=/home/btian1/sof_mtl/zephyr/modules/mbedtls/Kconfig ZEPHYR_MIPI_SYS_T_MODULE_DIR=/home/btian1/sof_mtl/modules/debug/mipi-sys-t ZEPHYR_TINYCRYPT_MODULE_DIR=/home/btian1/sof_mtl/modules/crypto/tinycrypt SHIELD_AS_LIST= DTS_POST_CPP=/home/btian1/sof_mtl/build-mtl/zephyr/zephyr.dts.pre DTS_ROOT_BINDINGS=/home/btian1/sof_mtl/zephyr/dts/bindings /usr/bin/python3.8 /home/btian1/sof_mtl/zephyr/scripts/kconfig/guiconfig.py /home/btian1/sof_mtl/zephyr/Kconfig |
Which include path did you see? |
ZEPHYR_HAL_NXP_MODULE_DIR=/home/btian1/sof_mtl/modules/hal/nxp ZEPHYR_HAL_NXP_KCONFIG=/home/btian1/sof_mtl/zephyr/modules/hal_nxp/Kconfig_** |
These don't look like include paths. An "include path" is telling the compiler where to look for .h files. |
Please re-open if you find a real issue (= outside Kconfig) |
Describe the bug
A clear and concise description of what the bug is.
please check build log, you will find:
or check .config file with build-mtl/zephyr/.config
CONFIG_ZEPHYR_HAL_NXP_MODULE=y
To Reproduce
check above
Reproduction Rate
100%.
Expected behavior
above definition should not happen in intel platform build.
Impact
not well evaluated.
The text was updated successfully, but these errors were encountered: