Replies: 9 comments 1 reply
-
The board folder like that only works for applications, not sysbuild (since sysbuild itself is actually an application), you would need to add your board root in a module file e.g. see example application here https://github.com/zephyrproject-rtos/example-application/blob/main/zephyr/module.yml#L16 |
Beta Was this translation helpful? Give feedback.
-
Hello @nordicjm, thanks for the fast answer. Although I already have my board as a module imported by west and in the app module.yml I have the config as following, since my boards modules is 2 levels above the app:
The dts and overlay it can find, it just can not link both prj.conf and board specific configs (plank_0_5_0_defconfig) to the final configs at the same time. |
Beta Was this translation helpful? Give feedback.
-
the only place a module.yml file can go is |
Beta Was this translation helpful? Give feedback.
-
Yes, I have the module.yml inside a zephyr folder for the main project and on my modules. Hmm, now I noticed I don't have it on the boards module because I point to it in the CMakeLists. Should I have a zephyr/module.yml also in my boards folder? |
Beta Was this translation helpful? Give feedback.
-
it should be in your boards repo yes, since the folder has to be named boards for the build system to find it and having a boards folder inside of a boards folder isn't ideal, you should have this in your board folder
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the tip, I did it and I was able to remove an include in my CMakeLists. But I still have my initial problem. With normal application it builds fine, but with sysbuild it does not see CONFIG_SENSOR=y when including CONFIG_SHT3XD=y
Although, if I look in the autoconf.h, it is there: Aaaa, now I notice something, the warning is while building the mcuboot, where the prj.conf is not included, but the plank_defconfig (I guess), generating the dependency error, even dough I don't need this on the mcuboot. If it is a hardware related config, that can change with the revision, but is needed only in the app, and not in the mcuboot, where is the best place to add the CONFIG_xx? |
Beta Was this translation helpful? Give feedback.
-
So it turns out that the dependency warning is only for the mcuboot build, and does not really affect it. My real problem is that while sysbuild builds the app my own modules are not finding the CONFIGs definitions But CONFIG_SENSOR_LOG_LEVEL is present on the app/autoconf.h, so it looks the module is not including this definitions |
Beta Was this translation helpful? Give feedback.
-
Having a sensor enabled in a board defconfig is frankly wrong, if a project needs it, the project should enable it in the prj.conf (or |
Beta Was this translation helpful? Give feedback.
-
Thanks @nordicjm for the tips. I have updated my code to enable the sensors in the prj.conf and added to my own drivers the dependency to DT_HAS_'SENSOR'_ENABLED, so that the config changes automatically when I have different overlay compiled. But I am still having the problem to find the CONFIG_SENSOR_LOG_LEVEL on my drivers when I build with --sysbuild Any idea why would my drivers not find the CONFIG_SENSOR_LOG_LEVEL definition when I build with --sysbuild? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am porting my application from zephyr 3.5 to 3.7 and I have updated the boards structure according to the new standards. My project folder structure looks something like the following:
I have revisions for my board and since it allows to add configuration linked to boards on the boards folder, I have done so by moving some config that I had previously in prj.conf to plank_defconfig and plank_0_5_0_defconfig.
If I run
west build -p always -b [email protected] \app
it works perfectly, even if I select other revisions.But my problem starts when I try running it with sysbuild. If I run
west build -p always -b [email protected] \app --sysbuild
the compilation works for mcuboot, but fails for my application because the Kconfigs get messed up. It complains that s dependencies for configs in the board folder are missing (this dependencies are defined in the prj.conf).Therefore my question is, what is the right procedure to use sysbuild while having board revisions and sub-configs defined at boards folder?
Beta Was this translation helpful? Give feedback.
All reactions