Open kokas-a opened 5 months ago
The issue touches not only ARC nSIM platforms. For example, tlsr9518adk80d
board has the same way of including XIP configs, and final result is CONFIG_XIP=y despite it turned off on SoC level.
@kokas-a is this resolved now with #73433
Hi @nashif , https://github.com/zephyrproject-rtos/zephyr/pull/73433 provides workaround as a temporary solution, but it does not fix root cause itself. Additionally, issues with the risc-v platform have not yet been resolved (see my additional comment here).
@nashif I've updated the issue name so it would be more clear.
It's not ARC-related (or architecture related) issue, but a regression in Kconfig configuration system introduced with HW model v2.
It seems to be that we now handle the imply
keyword incorrectly - so if we imply
some Kconfig symbol in kernel Kconfig we can't override it in SoCs-level Kconfig.defconfig
file. It causes some symbol to be enabled even if we disable it in on SoC level.
For this particular symbol (CONFIG_XIP
) we've found ARC and RISC-V SoC which configuration was affected by this issue, however I expect that there is more issues with other symbols.
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.
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.
Describe the bug After HWMv2 model was applied, build system ignores
config XIP
that configured on SoC level of Kconfig.Synopsys nSIM platforms has following levels of XIP configs:
imply XIP
default n
If XIP configuration is not set on board level explicitly, then 2nd level (SoC-level) config is also skipped. And final configuration is taken from arch-level via
imply XIP
and assigned withXIP=y
value.To Reproduce Steps to reproduce the behavior:
west build -b nsim/nsim_em samples/hello_world
cat build/zephyr/.config | grep XIP
CONFIG_XIP=y
Expected behavior
CONFIG_XIP=n
in .config file, as config XIP was not explicitly defined on board level. It defined withn
value on SoC level.Environment (please complete the following information):