Fail to build MCUXpresso project without examples repo

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Fail to build MCUXpresso project without examples repo

883 Views
kvanherck
Contributor III

Using SDK 25.12, I have created a custom manifest for an LPC55S69 project as documented on https://mcuxpresso.nxp.com/mcuxsdk/latest/html/gsd/install/custom_manifest.html. In my custom manifest I only included following components: core, CMSIS, mcux-devices-lpc, mcu-sdk-components. Note that I did not include mcu-sdk-examples. When running west build, I get following error:

Parsing C:/dev/git/lpc55/lpc55/apps/west/custom-manifest/hello/Kconfig
C:/dev/git/lpc55/lpc55/apps/west/custom-manifest/mcuxsdk/scripts/kconfig/kconfig.py: C:/dev/git/lpc55/lpc55/apps/west/custom-manifest/mcuxsdk/Kconfig.mcuxpresso:6: 'C:/dev/git/lpc55/lpc55/apps/west/custom-manifest/mcuxsdk\examples/Kconfig' not found (in 'rsource "examples/Kconfig"'). Check that environment variables are set correctly (e.g. $srctree, which is unset or blank). Also note that unset environment variables expand to the empty string.
CMake Error at C:/dev/git/lpc55/lpc55/apps/west/custom-manifest/mcuxsdk/cmake/extension/logging.cmake:72 (message):
FATAL_ERROR: Kconfig process command run failed with return code: 1
Call Stack (most recent call first):
C:/dev/git/lpc55/lpc55/apps/west/custom-manifest/mcuxsdk/cmake/extension/kconfig.cmake:521 (log_fatal)
C:/dev/git/lpc55/lpc55/apps/west/custom-manifest/mcuxsdk/cmake/extension/mcux.cmake:284 (include)
CMakeLists.txt:9 (project)

I traced this back to Kconfig.mcuxpresso, which on line 6 contains:

rsource "examples/Kconfig"

Obviously, this fails as I didn't include the examples project in my west config.

In my opinion, this "rsource" should have been an optional "osource" or "orsource".

 

Labels (1)
0 Kudos
Reply
1 Reply

846 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @kvanherck 

Thank you very much for your suggestion.

I will report it to our SDK team.

BR

Harry

0 Kudos
Reply