busybox-1.13.2: fix parallel build failing on appletlib
authorRoman I Khimov <khimov@altell.ru>
Tue, 17 Feb 2009 15:36:27 +0000 (18:36 +0300)
committerTom Rini <trini@embeddedalley.com>
Tue, 17 Feb 2009 16:48:57 +0000 (11:48 -0500)
libbb/appletlib.o depends on generated headers, build can fail with

libbb/appletlib.c:53:27: error: applet_tables.h: No such file or directory

if that dependency is not taken into account

packages/busybox/busybox-1.13.2/busybox-appletlib-dependency.patch [new file with mode: 0644]
packages/busybox/busybox_1.13.2.bb

diff --git a/packages/busybox/busybox-1.13.2/busybox-appletlib-dependency.patch b/packages/busybox/busybox-1.13.2/busybox-appletlib-dependency.patch
new file mode 100644 (file)
index 0000000..85a61e8
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/libbb/Kbuild     2008-11-09 20:28:09.000000000 +0300
++++ b/libbb/Kbuild     2009-02-17 17:41:48.718747865 +0300
+@@ -147,3 +147,8 @@ lib-$(CONFIG_PGREP) += xregcomp.o
+ lib-$(CONFIG_PKILL) += xregcomp.o
+ lib-$(CONFIG_DEVFSD) += xregcomp.o
+ lib-$(CONFIG_FEATURE_FIND_REGEX) += xregcomp.o
++
++libbb/appletlib.o: include/usage_compressed.h include/applet_tables.h
++
++include/usage_compressed.h include/applet_tables.h:
++        $(Q)$(MAKE) $(build)=applets $@
index e8f37a0..cc2cb2b 100644 (file)
@@ -1,5 +1,5 @@
 require busybox.inc
-PR = "r15"
+PR = "r16"
 
 SRC_URI = "\
   http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
@@ -13,6 +13,7 @@ SRC_URI = "\
   file://udhcpc-fix-nfsroot.patch;patch=1 \
   file://B921600.patch;patch=1 \
   file://get_header_tar.patch;patch=1 \
+  file://busybox-appletlib-dependency.patch;patch=1 \
   file://find-touchscreen.sh \
   file://busybox-cron \
   file://busybox-httpd \