summaryrefslogtreecommitdiff
path: root/target/jffs2
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-08-08 00:41:40 +0000
committerMike Frysinger <vapier@gentoo.org>2005-08-08 00:41:40 +0000
commitf46ae35ac3fdb67ddb2bf87ee5cb4995d49a15ee (patch)
treefc7b5f53e6c1bdf717a83900b209d8d0d282d880 /target/jffs2
parent3ed6fb0af34c5018eefc119b3e2c5688de3f3fa5 (diff)
make sure we depend on fakeroot existing #366 by pnoffke
Diffstat (limited to 'target/jffs2')
-rw-r--r--target/jffs2/jffs2root.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/target/jffs2/jffs2root.mk b/target/jffs2/jffs2root.mk
index 04922aaf2..302311e46 100644
--- a/target/jffs2/jffs2root.mk
+++ b/target/jffs2/jffs2root.mk
@@ -38,12 +38,14 @@ JFFS2_TARGET := $(subst ",,$(BR2_TARGET_ROOTFS_JFFS2_OUTPUT))
# value of MKFS_JFFS2 to either the previously installed copy or the one
# just built.
#
-$(JFFS2_TARGET): mtd-host
+$(JFFS2_TARGET): host-fakeroot mtd-host
-@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true;
@rm -rf $(TARGET_DIR)/usr/man
@rm -rf $(TARGET_DIR)/usr/share/man
@rm -rf $(TARGET_DIR)/usr/info
- /sbin/ldconfig -r $(TARGET_DIR)
+ test -e "$(TARGET_DIR)/etc/ld.so.conf" \
+ && /sbin/ldconfig -r $(TARGET_DIR) \
+ || true
# Use fakeroot to pretend all target binaries are owned by root
$(STAGING_DIR)/usr/bin/fakeroot \
-i $(STAGING_DIR)/fakeroot.env \