SOC_ROOT directory is not working if we mention it on application CMakeLists.txt #67761
-
Hello everyone! I'm using zephyr 3.3.0 and micro controller as LPC55S16JBD64 , but in zephyr 3.3.0 there is no support for LPC55S16JBD64 (64 pin ) It's only having LPC55S16JBD100( 100 pin ) support, so I just edited the following soc folder files and now it's successfully built
Now the issue is I'm trying to keep the soc folder and files in my application folder and I changed the SOC_ROOT directory to my local application directory using main CMakeLists.txt , but if I build it it's still considering the zephyr stack's soc folder instead of my application directory soc folder , I verified this by reverting the changes in zephyr soc directory and keeping the changes in my application directory's soc, am I missing anything in my CMakeLists.txt rough application folder structure:
zephyr 3.3.0 folder structure
main CMakeLists.txt
Please help me to fix this issue as soon as possible. Thanks in advance ! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Doesn't really show enough |
Beta Was this translation helpful? Give feedback.
-
Hi @aravinth-kalai , |
Beta Was this translation helpful? Give feedback.
-
Hi @aravinth-kalai , A couple years ago I used my own SOC_ROOT folder for an SOC I added. I struggled getting all my Kconfig files sourced. I finally resolved it by putting intentional errors in my Kconfig files, and found some were not sourced. Then I hunted down how each was getting source until I confirmed all of them were included in the build. Let us know what you find. |
Beta Was this translation helpful? Give feedback.
Hi @aravinth-kalai ,
Is the issue a problem with missing Kconfig definitions? Did you update all the paths sourced in the Kconfig files, to point to your app's SOC_ROOT folder? For example, lpc55xxx/Kconfig.defconfig.series sources
soc/arm/nxp_lpc/lpc55xxx/Kconfig.defconfig.lp*
, which I believe points to the SOC folder in the Zephyr repo.A couple years ago I used my own SOC_ROOT folder for an SOC I added. I struggled getting all my Kconfig files sourced. I finally resolved it by putting intentional errors in my Kconfig files, and found some were not sourced. Then I hunted down how each was getting source until I confirmed all of them were included in the build.
Let us know what you find.