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

228 Views
kvanherck
Contributor II

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

191 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
%3CLINGO-SUB%20id%3D%22lingo-sub-2269579%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFail%20to%20build%20MCUXpresso%20project%20without%20examples%20repo%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2269579%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EUsing%20SDK%2025.12%2C%20I%20have%20created%20a%20custom%20manifest%20for%20an%20LPC55S69%20project%20as%20documented%20on%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fmcuxpresso.nxp.com%2Fmcuxsdk%2Flatest%2Fhtml%2Fgsd%2Finstall%2Fcustom_manifest.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmcuxpresso.nxp.com%2Fmcuxsdk%2Flatest%2Fhtml%2Fgsd%2Finstall%2Fcustom_manifest.html%3C%2FA%3E.%20In%20my%20custom%20manifest%20I%20only%20included%20following%20components%3A%26nbsp%3Bcore%2C%20CMSIS%2C%20mcux-devices-lpc%2C%20mcu-sdk-components.%20Note%20that%20I%20did%20not%20include%26nbsp%3Bmcu-sdk-examples.%20When%20running%20west%20build%2C%20I%20get%20following%20error%3A%3C%2FP%3E%3CP%3EParsing%20C%3A%2Fdev%2Fgit%2Flpc55%2Flpc55%2Fapps%2Fwest%2Fcustom-manifest%2Fhello%2FKconfig%3CBR%20%2F%3EC%3A%2Fdev%2Fgit%2Flpc55%2Flpc55%2Fapps%2Fwest%2Fcustom-manifest%2Fmcuxsdk%2Fscripts%2Fkconfig%2Fkconfig.py%3A%20C%3A%2Fdev%2Fgit%2Flpc55%2Flpc55%2Fapps%2Fwest%2Fcustom-manifest%2Fmcuxsdk%2FKconfig.mcuxpresso%3A6%3A%20'C%3A%2Fdev%2Fgit%2Flpc55%2Flpc55%2Fapps%2Fwest%2Fcustom-manifest%2Fmcuxsdk%5Cexamples%2FKconfig'%20not%20found%20(in%20'rsource%20%22examples%2FKconfig%22').%20Check%20that%20environment%20variables%20are%20set%20correctly%20(e.g.%20%24srctree%2C%20which%20is%20unset%20or%20blank).%20Also%20note%20that%20unset%20environment%20variables%20expand%20to%20the%20empty%20string.%3CBR%20%2F%3ECMake%20Error%20at%20C%3A%2Fdev%2Fgit%2Flpc55%2Flpc55%2Fapps%2Fwest%2Fcustom-manifest%2Fmcuxsdk%2Fcmake%2Fextension%2Flogging.cmake%3A72%20(message)%3A%3CBR%20%2F%3EFATAL_ERROR%3A%20Kconfig%20process%20command%20run%20failed%20with%20return%20code%3A%201%3CBR%20%2F%3ECall%20Stack%20(most%20recent%20call%20first)%3A%3CBR%20%2F%3EC%3A%2Fdev%2Fgit%2Flpc55%2Flpc55%2Fapps%2Fwest%2Fcustom-manifest%2Fmcuxsdk%2Fcmake%2Fextension%2Fkconfig.cmake%3A521%20(log_fatal)%3CBR%20%2F%3EC%3A%2Fdev%2Fgit%2Flpc55%2Flpc55%2Fapps%2Fwest%2Fcustom-manifest%2Fmcuxsdk%2Fcmake%2Fextension%2Fmcux.cmake%3A284%20(include)%3CBR%20%2F%3ECMakeLists.txt%3A9%20(project)%3C%2FP%3E%3CP%3EI%20traced%20this%20back%20to%20Kconfig.mcuxpresso%2C%20which%20on%20line%206%20contains%3A%3C%2FP%3E%3CP%3Ersource%20%22examples%2FKconfig%22%3C%2FP%3E%3CP%3EObviously%2C%20this%20fails%20as%20I%20didn't%20include%20the%20examples%20project%20in%20my%20west%20config.%3C%2FP%3E%3CP%3EIn%20my%20opinion%2C%20this%20%22rsource%22%20should%20have%20been%20an%20optional%20%22osource%22%20or%20%22orsource%22.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2269579%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ELPC55xx%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2269738%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Fail%20to%20build%20MCUXpresso%20project%20without%20examples%20repo%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2269738%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F249026%22%20target%3D%22_blank%22%3E%40kvanherck%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThank%20you%20very%20much%20for%20your%20suggestion.%3C%2FP%3E%0A%3CP%3EI%20will%20report%20it%20to%20our%20SDK%20team.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EHarry%3C%2FP%3E%3C%2FLINGO-BODY%3E