[poky] kernel.release being regenerated
Holger Hans Peter Freyther
holger at freyther.de
Wed Feb 11 00:27:03 PST 2015
On Tue, Feb 10, 2015 at 10:51:26PM +0000, Richard Purdie wrote:
> Hi Holger,
Hi Richard,
> The fact the kernel.release is being recreated suggests something in the
> configuration is changing (different environment or commandline
> options?) or that there is a problem in your kernel to do with the
> Makefiles and the dependencies of the kernel.release file.
This issue should be seen by everyone but the race is pretty small.
do_shared_workdir must run shortly after compilemodules has started
and removed the file but didn't create a new one. This is the kind
of race I am more likely to hit than the average population. The
"configuration is changing" part looks like a red herring to me.
>From looking at the Makefile I see a FORCE as dependency of the
kernel.release rule. With my 3.10er kernel (and it doesn't look
like we have patched the Makefile) the dependency chain is like
this:
init -> prepare -> prepare0 .. -> prepare3 -> kernel.release -> FORCE
This means that on any target being executed the kernel.release
will be re-created. I think the only stable way would be to have
do_compile copy the kernel.release to another place and have the
copying task pick this file from another place.
kind regards
holger
More debugging:
Running make with debug shows that the kernel.release target
will be forced to re-execute and at least for me this leads to
the creation of a new file.
make:
File '_all' does not exist.
Considering target file 'all'.
File 'all' does not exist.
Considering target file 'vmlinux'.
Considering target file 'scripts/link-vmlinux.sh'.
Looking for an implicit rule for 'scripts/link-vmlinux.sh'.
No implicit rule found for 'scripts/link-vmlinux.sh'.
Finished prerequisites of target file 'scripts/link-vmlinux.sh'.
No need to remake target 'scripts/link-vmlinux.sh'.
Considering target file 'arch/arm/kernel/vmlinux.lds'.
Considering target file 'init'.
File 'init' does not exist.
Considering target file 'prepare'.
File 'prepare' does not exist.
Considering target file 'prepare0'.
File 'prepare0' does not exist.
Considering target file 'archprepare'.
File 'archprepare' does not exist.
Considering target file 'archheaders'.
File 'archheaders' does not exist.
Finished prerequisites of target file 'archheaders'.
Must remake target 'archheaders'.
Successfully remade target file 'archheaders'.
Considering target file 'archscripts'.
File 'archscripts' does not exist.
Finished prerequisites of target file 'archscripts'.
Must remake target 'archscripts'.
Successfully remade target file 'archscripts'.
Considering target file 'prepare1'.
File 'prepare1' does not exist.
Considering target file 'prepare2'.
File 'prepare2' does not exist.
Considering target file 'prepare3'.
File 'prepare3' does not exist.
Considering target file 'include/config/kernel.release'.
Pruning file 'include/config/auto.conf'.
Considering target file 'FORCE'.
File 'FORCE' does not exist.
Finished prerequisites of target file 'FORCE'.
Must remake target 'FORCE'.
Successfully remade target file 'FORCE'.
Finished prerequisites of target file 'include/config/kernel.release'.
...
make uImage
Considering target file 'uImage'.
File 'uImage' does not exist.
Considering target file 'vmlinux'.
Considering target file 'scripts/link-vmlinux.sh'.
Looking for an implicit rule for 'scripts/link-vmlinux.sh'.
No implicit rule found for 'scripts/link-vmlinux.sh'.
Finished prerequisites of target file 'scripts/link-vmlinux.sh'.
No need to remake target 'scripts/link-vmlinux.sh'.
Considering target file 'arch/arm/kernel/vmlinux.lds'.
Considering target file 'init'.
File 'init' does not exist.
Considering target file 'prepare'.
File 'prepare' does not exist.
Considering target file 'prepare0'.
File 'prepare0' does not exist.
Considering target file 'archprepare'.
File 'archprepare' does not exist.
Considering target file 'archheaders'.
File 'archheaders' does not exist.
Finished prerequisites of target file 'archheaders'.
Must remake target 'archheaders'.
Successfully remade target file 'archheaders'.
Considering target file 'archscripts'.
File 'archscripts' does not exist.
Finished prerequisites of target file 'archscripts'.
Must remake target 'archscripts'.
Successfully remade target file 'archscripts'.
Considering target file 'prepare1'.
File 'prepare1' does not exist.
Considering target file 'prepare2'.
File 'prepare2' does not exist.
Considering target file 'prepare3'.
File 'prepare3' does not exist.
Considering target file 'include/config/kernel.release'.
Pruning file 'include/config/auto.conf'.
Considering target file 'FORCE'.
File 'FORCE' does not exist.
Finished prerequisites of target file 'FORCE'.
Must remake target 'FORCE'.
Successfully remade target file 'FORCE'.
Finished prerequisites of target file 'include/config/kernel.release'.
Prerequisite 'include/config/auto.conf' is older than target 'include/config/kernel.release'.
Prerequisite 'FORCE' of target 'include/config/kernel.release' does not exist.
Must remake target 'include/config/kernel.release'.
make modules
Considering target file 'modules'.
File 'modules' does not exist.
Considering target file 'init'.
File 'init' does not exist.
Considering target file 'prepare'.
File 'prepare' does not exist.
Considering target file 'prepare0'.
File 'prepare0' does not exist.
Considering target file 'archprepare'.
File 'archprepare' does not exist.
Considering target file 'archheaders'.
File 'archheaders' does not exist.
Finished prerequisites of target file 'archheaders'.
Must remake target 'archheaders'.
Successfully remade target file 'archheaders'.
Considering target file 'archscripts'.
File 'archscripts' does not exist.
Finished prerequisites of target file 'archscripts'.
Must remake target 'archscripts'.
Successfully remade target file 'archscripts'.
Considering target file 'prepare1'.
File 'prepare1' does not exist.
Considering target file 'prepare2'.
File 'prepare2' does not exist.
Considering target file 'prepare3'.
File 'prepare3' does not exist.
Considering target file 'include/config/kernel.release'.
Pruning file 'include/config/auto.conf'.
Considering target file 'FORCE'.
File 'FORCE' does not exist.
Finished prerequisites of target file 'FORCE'.
Must remake target 'FORCE'.
Successfully remade target file 'FORCE'.
Finished prerequisites of target file 'include/config/kernel.release'.
Prerequisite 'include/config/auto.conf' is older than target 'include/config/kernel.release'.
Prerequisite 'FORCE' of target 'include/config/kernel.release' does not exist.
Must remake target 'include/config/kernel.release'.
More information about the poky
mailing list