summaryrefslogtreecommitdiff
path: root/packages/busybox/busybox.inc
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@datenfreihafen.org>2008-10-21 12:03:09 +0200
committerStefan Schmidt <stefan@datenfreihafen.org>2008-10-21 12:03:09 +0200
commitd05dca7b0d286e1df13824b99cd5f262ade439e2 (patch)
tree7c7f247f1a88c405063d1d7108db11d181c3dbb1 /packages/busybox/busybox.inc
parent313753ac3e740c8ff54f0b0ddb2acb659033fe85 (diff)
parent96198fd96bd2ddddab9708f3c6c3f527253130d8 (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'packages/busybox/busybox.inc')
-rw-r--r--packages/busybox/busybox.inc13
1 files changed, 12 insertions, 1 deletions
diff --git a/packages/busybox/busybox.inc b/packages/busybox/busybox.inc
index cc196ad767..63f839e246 100644
--- a/packages/busybox/busybox.inc
+++ b/packages/busybox/busybox.inc
@@ -58,6 +58,13 @@ do_compile() {
}
do_install () {
+ oe_runmake busybox.links
+ if [ "x${layout_prefix}" = "x" ]; then
+ sed 's:^/usr/:/:' < busybox.links >busybox.links.new
+ mv busybox.links.new busybox.links
+ elif [ "${layout_prefix}" != "/usr" ]; then
+ echo "warning, busybox.links will lose with this prefix"
+ fi
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
install -d ${D}${sysconfdir}/init.d
oe_runmake "PREFIX=${D}" install
@@ -67,7 +74,11 @@ do_install () {
install -d ${D}/busybox
ls ${D} -R
- cp -dPr ${D}${base_bindir} ${D}${base_sbindir} ${D}${prefix} ${D}/busybox/
+ for i in ${D}${base_bindir} ${D}${base_sbindir} ${D}${prefix} ; do
+ if [ -d $i ]; then
+ cp -dPr $i ${D}/busybox/
+ fi
+ done
# Move the busybox binary back to /bin
install -d ${D}${base_bindir}
mv ${D}/busybox${base_bindir}/busybox ${D}${base_bindir}/