]> 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>
Fri, 23 Sep 2016 14:26:21 +0000 (15:26 +0100)
commit6c94afadaa3e035bb58755985a9e193cae5e9b34
tree138f88101f6d40a901ed785c8a80bc737a36b3d1
parentefcd439977d111b10bd2c74ff3bc4fa30d8b394d
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]

(From OE-Core rev: a866a05e2c7d090a77aa6e95339c93e3592703a6)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
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