Changing the kernel configuration and rebuilding results in the following error:
make[2]: Enter directory '/home/soeta/MyHome/tools/spresense/nuttx/sched'
make[2]: *** 'clock_initialize.o' has no rule to make the required target '/home/soeta/MyHome/spresense/nuttx/include/nuttx/config.h'. Stop.
make[2]—Out of directory '/home/soeta/MyHome/tools/spresense/nuttx/sched'
LibTargets.mk:68: Target 'sched/libsched.a' recipe failed
make[1]: ***[sched/libsched.a] Error 2
make[1]—Out of directory '/home/soeta/MyHome/tools/spresense/nuttx'
Makefile: 131: Target 'buildkernel' recipe failed
make:*** [buildkernel] error 2
The newly generated config.h exists in the above directory.
Please tell me how to deal with it.
Thank you for your cooperation.
spresense makefile
Why is the make dependency file of nuttx/sched/Make.dep corrupted?
$make disticleankernel
Then try again from the kernel configuration.
The configuration file (nuttx/.config) will also be deleted if you do distcleankernel, so
If you want to avoid it,
$cdsdk
$ ./tools/mkdefconfig.py-ktmp
and save the configuration file to configs/kernel/tmp-defconfig, then
$make disticleankernel
$ ./tools/config.py-ktmp
$ make buildkernel
and try again to build the kernel
© 2025 OneMinuteCode. All rights reserved.