Make buildkernel error rebuilding the spresense kernel

Asked 2 years ago, Updated 2 years ago, 72 views

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

2022-09-30 20:22

1 Answers

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


2022-09-30 20:22

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.