busybox: Fix the -dbg package, bump INC_PR
authorTom Rini <tom_rini@mentor.com>
Fri, 14 May 2010 17:14:15 +0000 (10:14 -0700)
committerTom Rini <tom_rini@mentor.com>
Fri, 14 May 2010 17:15:15 +0000 (10:15 -0700)
busybox will link to busybox_unstripped then strip to produce busybox,
giving us an empty -dbg package.  At the end of do_compile, copy
busybox_unstripped to busybox, so our striping happens as expected.

Signed-off-by: Tom Rini <tom_rini@mentor.com>
recipes/busybox/busybox.inc

index 17d8d14..fbcd8ea 100644 (file)
@@ -11,7 +11,7 @@ LICENSE = "GPLv2"
 SECTION = "base"
 PRIORITY = "required"
 
-INC_PR = "r27"
+INC_PR = "r28"
 
 SRC_URI = "\
   file://busybox-cron \
@@ -78,6 +78,9 @@ do_configure () {
 do_compile() {
        unset CFLAGS CPPFLAGS CXXFLAGS
        base_do_compile
+       # Busybox will force a strip, we do not want that.  Future-proof
+       # in case later versions do this better.
+       cp busybox_unstripped busybox || true
 }
 
 do_install () {