zephyr: adapt to SOF not being a zephyr module#10321
zephyr: adapt to SOF not being a zephyr module#10321nashif wants to merge 1 commit intothesofproject:mainfrom
Conversation
Adapt code to work with SOF not being a module in Zephyr. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
|
|
||
| config CORE_COUNT | ||
| int | ||
| default 1 |
There was a problem hiding this comment.
This is bit of a works-by-accident type of thing. This does work (I had to check the build logs), but normal Zephyr builds should not even use this file as this is supposed to be used by host (=x86) builds like testbench and ALSA SOF plugin only. This is ok as transitory solution, but I'll look for a more sane place to set the core count....
There was a problem hiding this comment.
there is already another place where this is set src/platform/Kconfig
config CORE_COUNT
int "Number of cores"
default MP_MAX_NUM_CPUS if KERNEL_BIN_NAME = "zephyr"
default MAX_CORE_COUNT
range 1 MAX_CORE_COUNT
help
Number of used cores
Lowering available core count could result in lower power consumption
There was a problem hiding this comment.
but normal Zephyr builds should not even use this file as this is supposed to be used by host (=x86) builds like testbench and ALSA SOF plugin only.
aha, now I remember the issue, that was a weird one, without ARCH being defined after the migration to hwmv2, this starts failing and I guess those depend on ARCH
There was a problem hiding this comment.
can we actually just get rid of src/arch/host/Kconfig and just rely on what we have "src/platform/Kconfig"?
Adapt code to work with SOF not being a module in Zephyr.
Signed-off-by: Anas Nashif anas.nashif@intel.com