]> code.ossystems Code Review - openembedded-core.git/commit
busybox: Avoid race building libbb
authorJuro Bystricky <juro.bystricky@intel.com>
Wed, 14 Sep 2016 17:05:46 +0000 (10:05 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 14 Sep 2016 21:34:34 +0000 (22:34 +0100)
commita866a05e2c7d090a77aa6e95339c93e3592703a6
tree89c79e4752f88e3aacd98279f81f66164eab0256
parentd3d2d213076b50e88ddc7d4e418ea2ab61b92e67
busybox: Avoid race building libbb

When building busybox, an occasional error was observed.
The error is consistently the same:

libbb/appletlib.c:164:13: error: 'NUM_APPLETS' undeclared (first use in this function)
  while (i < NUM_APPLETS) {

The reason is the include file where NUM_APPLETS is defined is not yet generated (or is being modified)
at the time libbb/appletlib.c is compiled.
The attached patchset fixes the problem by assuring libb is compiled as the last directory.

[YOCTO#10116]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/busybox/busybox/busybox-kbuild-race-fix-commit-d8e61bb.patch [new file with mode: 0644]
meta/recipes-core/busybox/busybox/commit-applet_tables-fix-commit-0dddbc1.patch [new file with mode: 0644]
meta/recipes-core/busybox/busybox/makefile-libbb-race.patch [new file with mode: 0644]
meta/recipes-core/busybox/busybox/parallel-make-fix.patch [deleted file]
meta/recipes-core/busybox/busybox_1.24.1.bb