diff options
Diffstat (limited to 'target/ext2/ext2root.mk')
-rw-r--r-- | target/ext2/ext2root.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target/ext2/ext2root.mk b/target/ext2/ext2root.mk index 4ebb98142..dda8013e6 100644 --- a/target/ext2/ext2root.mk +++ b/target/ext2/ext2root.mk @@ -87,12 +87,13 @@ EXT2_TARGET := $(EXT2_BASE) endif $(EXT2_BASE): host-fakeroot makedevs genext2fs - -@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true; + -@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 @test -d $(TARGET_DIR)/usr/share && \ - rmdir -p --ignore-fail-on-non-empty $(TARGET_DIR)/usr/share + rmdir -p --ignore-fail-on-non-empty $(TARGET_DIR)/usr/share || \ + true -/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null # Use fakeroot to pretend all target binaries are owned by root rm -f $(STAGING_DIR)/_fakeroot.$(notdir $(EXT2_TARGET)) |