Commit 5ef0c31b authored by Eric Andersen's avatar Eric Andersen
Browse files

Run ldconfig on the target rootfs to generate /etc/ld.so.cache

parent 09aab351
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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

+1 −0
Original line number Diff line number Diff line
@@ -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`; \
+1 −0
Original line number Diff line number Diff line
@@ -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 \
+1 −0
Original line number Diff line number Diff line
@@ -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
+1 −0
Original line number Diff line number Diff line
@@ -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