]> code.ossystems Code Review - openembedded-core.git/commit
make-mod-scripts: Fix a rare build race condition
authorKhem Raj <raj.khem@gmail.com>
Wed, 27 May 2020 20:51:07 +0000 (13:51 -0700)
committerSteve Sakoman <steve@sakoman.com>
Sat, 30 May 2020 22:12:42 +0000 (12:12 -1000)
commit8a7da39c04fbab1280c464f39a791e4fbd1e7da9
treea7397975f6e7c2ea9b0c5a7b274aeec32c4878df
parent9c2efe41d5d894094552c4bbc4180675a5aac751
make-mod-scripts: Fix a rare build race condition

There is a build break which rarely happens but is seen often enough
with 4.1 kernel based builds

/bin/sh: 1: scripts/basic/fixdep: Permission denied
scripts/Makefile.host:124: recipe for target 'scripts/dtc/srcpos.o' failed
make[3]: *** [scripts/dtc/srcpos.o] Error 126

this patch sequences the build targets so it can work reliably with
different kernel versions

Divide the target into scripts_basic scripts is not
strictly necessary and was simply what was used for
testing on kernel 4.1, which is quite an old kernel

perhaps just using scripts is sufficient, but it is not tested to not
known will cause the build race as seen above.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 55ac6e2d251287419138931aa0d0894cf1267787)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb