mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-23 13:33:28 +08:00
make sure things still work even when fakeroot is not in active use
This commit is contained in:
parent
ee66f55213
commit
5418a92350
2
Makefile
2
Makefile
@ -111,7 +111,7 @@ $(TARGET_DIR):
|
||||
if [ -d "$(TARGET_SKEL_DIR)" ] ; then \
|
||||
cp -a $(TARGET_SKEL_DIR)/* $(TARGET_DIR)/; \
|
||||
fi;
|
||||
touch $(STAGING_DIR)/fakeroot.env
|
||||
touch $(STAGING_DIR)/.fakeroot.00000
|
||||
-find $(TARGET_DIR) -type d -name CVS | xargs rm -rf
|
||||
-find $(TARGET_DIR) -type d -name .svn | xargs rm -rf
|
||||
|
||||
|
@ -68,6 +68,7 @@ cramfsroot: host-fakeroot makedevs cramfs
|
||||
-/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null
|
||||
# Use fakeroot to pretend all target binaries are owned by root
|
||||
rm -f $(STAGING_DIR)/_fakeroot.$(CRAMFS_TARGET)
|
||||
touch $(STAGING_DIR)/.fakeroot.00000
|
||||
cat $(STAGING_DIR)/.fakeroot* > $(STAGING_DIR)/_fakeroot.$(CRAMFS_TARGET)
|
||||
-$(STAGING_DIR)/usr/bin/fakeroot \
|
||||
-i $(STAGING_DIR)/_fakeroot.$(CRAMFS_TARGET) \
|
||||
|
@ -73,6 +73,7 @@ $(EXT2_BASE): host-fakeroot makedevs genext2fs
|
||||
-/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null
|
||||
# Use fakeroot to pretend all target binaries are owned by root
|
||||
rm -f $(STAGING_DIR)/_fakeroot.$(EXT2_TARGET)
|
||||
touch $(STAGING_DIR)/.fakeroot.00000
|
||||
cat $(STAGING_DIR)/.fakeroot* > $(STAGING_DIR)/_fakeroot.$(EXT2_TARGET)
|
||||
-$(STAGING_DIR)/usr/bin/fakeroot \
|
||||
-i $(STAGING_DIR)/_fakeroot.$(EXT2_TARGET) \
|
||||
|
@ -61,6 +61,7 @@ $(ISO9660_TARGET): host-fakeroot $(EXT2_TARGET) grub mkisofs
|
||||
cp $(EXT2_TARGET) $(ISO9660_TARGET_DIR)/initrd
|
||||
# Use fakeroot to pretend all target binaries are owned by root
|
||||
rm -f $(STAGING_DIR)/_fakeroot.$(ISO9660_TARGET)
|
||||
touch $(STAGING_DIR)/.fakeroot.00000
|
||||
cat $(STAGING_DIR)/.fakeroot* > $(STAGING_DIR)/_fakeroot.$(ISO9660_TARGET)
|
||||
-$(STAGING_DIR)/usr/bin/fakeroot \
|
||||
-i $(STAGING_DIR)/_fakeroot.$(ISO9660_TARGET) \
|
||||
|
@ -46,6 +46,7 @@ $(JFFS2_TARGET): host-fakeroot makedevs mtd-host
|
||||
-/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null
|
||||
# Use fakeroot to pretend all target binaries are owned by root
|
||||
rm -f $(STAGING_DIR)/_fakeroot.$(JFFS2_TARGET)
|
||||
touch $(STAGING_DIR)/.fakeroot.00000
|
||||
cat $(STAGING_DIR)/.fakeroot* > $(STAGING_DIR)/_fakeroot.$(JFFS2_TARGET)
|
||||
-$(STAGING_DIR)/usr/bin/fakeroot \
|
||||
-i $(STAGING_DIR)/_fakeroot.$(JFFS2_TARGET) \
|
||||
|
@ -62,6 +62,7 @@ squashfsroot: host-fakeroot makedevs squashfs
|
||||
-/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null
|
||||
# Use fakeroot to pretend all target binaries are owned by root
|
||||
rm -f $(STAGING_DIR)/_fakeroot.$(SQUASHFS_TARGET)
|
||||
touch $(STAGING_DIR)/.fakeroot.00000
|
||||
cat $(STAGING_DIR)/.fakeroot* > $(STAGING_DIR)/_fakeroot.$(SQUASHFS_TARGET)
|
||||
-$(STAGING_DIR)/usr/bin/fakeroot \
|
||||
-i $(STAGING_DIR)/_fakeroot.$(SQUASHFS_TARGET) \
|
||||
|
@ -14,6 +14,7 @@ tarroot: host-fakeroot makedevs
|
||||
-/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null
|
||||
# Use fakeroot to pretend all target binaries are owned by root
|
||||
rm -f $(STAGING_DIR)/_fakeroot.$(TAR_TARGET)
|
||||
touch $(STAGING_DIR)/.fakeroot.00000
|
||||
cat $(STAGING_DIR)/.fakeroot* > $(STAGING_DIR)/_fakeroot.$(TAR_TARGET)
|
||||
-$(STAGING_DIR)/usr/bin/fakeroot \
|
||||
-i $(STAGING_DIR)/_fakeroot.$(TAR_TARGET) \
|
||||
|
Loading…
Reference in New Issue
Block a user