summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2005-07-14 23:30:39 +0000
committerEric Andersen <andersen@codepoet.org>2005-07-14 23:30:39 +0000
commit5ef0c31bf4bd98805cf37da90e134f4a0f4acc83 (patch)
tree7cf4e498527c41e61a913606cd2212a6e5fc437a /target
parent09aab3514756605e083a54c32721b335953558a6 (diff)
downloadbuildroot-novena-5ef0c31bf4bd98805cf37da90e134f4a0f4acc83.tar.gz
buildroot-novena-5ef0c31bf4bd98805cf37da90e134f4a0f4acc83.zip
Run ldconfig on the target rootfs to generate /etc/ld.so.cache
Diffstat (limited to 'target')
-rw-r--r--target/cramfs/cramfs.mk1
-rw-r--r--target/ext2/ext2root.mk1
-rw-r--r--target/jffs2/jffs2root.mk1
-rw-r--r--target/squashfs/squashfsroot.mk1
-rw-r--r--target/tar/tarroot.mk1
5 files changed, 5 insertions, 0 deletions
diff --git a/target/cramfs/cramfs.mk b/target/cramfs/cramfs.mk
index 439213832..75cf9e219 100644
--- a/target/cramfs/cramfs.mk
+++ b/target/cramfs/cramfs.mk
@@ -58,6 +58,7 @@ cramfsroot: cramfs
-@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true;
@rm -rf $(TARGET_DIR)/usr/man
@rm -rf $(TARGET_DIR)/usr/info
+ /sbin/ldconfig -r $(TARGET_DIR)
$(CRAMFS_DIR)/mkcramfs -q $(CRAMFS_ENDIANNESS) -D \
target/generic/device_table.txt $(TARGET_DIR) $(IMAGE).cramfs
diff --git a/target/ext2/ext2root.mk b/target/ext2/ext2root.mk
index 7f6065c6e..8056fafcd 100644
--- a/target/ext2/ext2root.mk
+++ b/target/ext2/ext2root.mk
@@ -70,6 +70,7 @@ $(EXT2_BASE): genext2fs
@rm -rf $(TARGET_DIR)/usr/man
@rm -rf $(TARGET_DIR)/usr/share/man
@rm -rf $(TARGET_DIR)/usr/info
+ /sbin/ldconfig -r $(TARGET_DIR)
ifeq ($(strip $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)),0)
GENEXT2_REALSIZE=`LANG=C du -l -s -c -k $(TARGET_DIR) | grep total | sed -e "s/total//"`; \
GENEXT2_ADDTOROOTSIZE=`if [ $$GENEXT2_REALSIZE -ge 20000 ] ; then echo 16384; else echo 2400; fi`; \
diff --git a/target/jffs2/jffs2root.mk b/target/jffs2/jffs2root.mk
index c03471d02..83cdeb63a 100644
--- a/target/jffs2/jffs2root.mk
+++ b/target/jffs2/jffs2root.mk
@@ -43,6 +43,7 @@ $(JFFS2_TARGET): mtd-host
@rm -rf $(TARGET_DIR)/usr/man
@rm -rf $(TARGET_DIR)/usr/share/man
@rm -rf $(TARGET_DIR)/usr/info
+ /sbin/ldconfig -r $(TARGET_DIR)
$(MKFS_JFFS2) \
$(JFFS2_OPTS) \
-d $(BUILD_DIR)/root \
diff --git a/target/squashfs/squashfsroot.mk b/target/squashfs/squashfsroot.mk
index 7aac15c7d..abbd61848 100644
--- a/target/squashfs/squashfsroot.mk
+++ b/target/squashfs/squashfsroot.mk
@@ -57,6 +57,7 @@ squashfsroot: squashfs host-fakeroot makedevs
-@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true;
@rm -rf $(TARGET_DIR)/usr/man
@rm -rf $(TARGET_DIR)/usr/info
+ /sbin/ldconfig -r $(TARGET_DIR)
# Use fakeroot to munge permissions and do root-like things
rm -f $(STAGING_DIR)/fakeroot.env
touch $(STAGING_DIR)/fakeroot.env
diff --git a/target/tar/tarroot.mk b/target/tar/tarroot.mk
index 2154b2c39..d5837442b 100644
--- a/target/tar/tarroot.mk
+++ b/target/tar/tarroot.mk
@@ -10,6 +10,7 @@ tarroot: host-fakeroot makedevs
-@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true;
@rm -rf $(TARGET_DIR)/usr/man
@rm -rf $(TARGET_DIR)/usr/info
+ /sbin/ldconfig -r $(TARGET_DIR)
# Use fakeroot to munge permissions and do root-like things
rm -f $(STAGING_DIR)/fakeroot.env
touch $(STAGING_DIR)/fakeroot.env