mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 21:56:31 +00:00
minor cleanup for target handling
This commit is contained in:
parent
ab3bf08f9c
commit
06c5ff4e82
@ -58,14 +58,14 @@ ifeq ($(strip $(BR2_sparc)),y)
|
|||||||
CRAMFS_ENDIANNESS=-b
|
CRAMFS_ENDIANNESS=-b
|
||||||
endif
|
endif
|
||||||
|
|
||||||
cramfsroot: cramfs
|
cramfsroot: host-fakeroot makedevs cramfs
|
||||||
#-@find $(TARGET_DIR)/lib -type f -name \*.so\* | xargs $(STRIP) --strip-unneeded 2>/dev/null || true;
|
#-@find $(TARGET_DIR)/lib -type f -name \*.so\* | xargs $(STRIP) --strip-unneeded 2>/dev/null || true;
|
||||||
-@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/man
|
||||||
@rm -rf $(TARGET_DIR)/usr/info
|
@rm -rf $(TARGET_DIR)/usr/info
|
||||||
/sbin/ldconfig -r $(TARGET_DIR)
|
-/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null
|
||||||
# Use fakeroot to pretend all target binaries are owned by root
|
# Use fakeroot to pretend all target binaries are owned by root
|
||||||
$(STAGING_DIR)/usr/bin/fakeroot \
|
-$(STAGING_DIR)/usr/bin/fakeroot \
|
||||||
-i $(STAGING_DIR)/fakeroot.env \
|
-i $(STAGING_DIR)/fakeroot.env \
|
||||||
-s $(STAGING_DIR)/fakeroot.env -- \
|
-s $(STAGING_DIR)/fakeroot.env -- \
|
||||||
chown -R root:root $(TARGET_DIR)
|
chown -R root:root $(TARGET_DIR)
|
||||||
|
@ -70,11 +70,9 @@ $(EXT2_BASE): host-fakeroot makedevs genext2fs
|
|||||||
@rm -rf $(TARGET_DIR)/usr/man
|
@rm -rf $(TARGET_DIR)/usr/man
|
||||||
@rm -rf $(TARGET_DIR)/usr/share/man
|
@rm -rf $(TARGET_DIR)/usr/share/man
|
||||||
@rm -rf $(TARGET_DIR)/usr/info
|
@rm -rf $(TARGET_DIR)/usr/info
|
||||||
test -e "$(TARGET_DIR)/etc/ld.so.conf" \
|
-/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null
|
||||||
&& /sbin/ldconfig -r $(TARGET_DIR) \
|
|
||||||
|| true
|
|
||||||
# Use fakeroot to pretend all target binaries are owned by root
|
# Use fakeroot to pretend all target binaries are owned by root
|
||||||
$(STAGING_DIR)/usr/bin/fakeroot \
|
-$(STAGING_DIR)/usr/bin/fakeroot \
|
||||||
-i $(STAGING_DIR)/fakeroot.env \
|
-i $(STAGING_DIR)/fakeroot.env \
|
||||||
-s $(STAGING_DIR)/fakeroot.env -- \
|
-s $(STAGING_DIR)/fakeroot.env -- \
|
||||||
chown -R root:root $(TARGET_DIR)
|
chown -R root:root $(TARGET_DIR)
|
||||||
|
@ -43,11 +43,9 @@ $(JFFS2_TARGET): host-fakeroot makedevs mtd-host
|
|||||||
@rm -rf $(TARGET_DIR)/usr/man
|
@rm -rf $(TARGET_DIR)/usr/man
|
||||||
@rm -rf $(TARGET_DIR)/usr/share/man
|
@rm -rf $(TARGET_DIR)/usr/share/man
|
||||||
@rm -rf $(TARGET_DIR)/usr/info
|
@rm -rf $(TARGET_DIR)/usr/info
|
||||||
test -e "$(TARGET_DIR)/etc/ld.so.conf" \
|
-/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null
|
||||||
&& /sbin/ldconfig -r $(TARGET_DIR) \
|
|
||||||
|| true
|
|
||||||
# Use fakeroot to pretend all target binaries are owned by root
|
# Use fakeroot to pretend all target binaries are owned by root
|
||||||
$(STAGING_DIR)/usr/bin/fakeroot \
|
-$(STAGING_DIR)/usr/bin/fakeroot \
|
||||||
-i $(STAGING_DIR)/fakeroot.env \
|
-i $(STAGING_DIR)/fakeroot.env \
|
||||||
-s $(STAGING_DIR)/fakeroot.env -- \
|
-s $(STAGING_DIR)/fakeroot.env -- \
|
||||||
chown -R root:root $(TARGET_DIR)
|
chown -R root:root $(TARGET_DIR)
|
||||||
|
@ -53,13 +53,13 @@ ifeq ($(strip $(BR2_sparc)),y)
|
|||||||
SQUASHFS_ENDIANNESS=-be
|
SQUASHFS_ENDIANNESS=-be
|
||||||
endif
|
endif
|
||||||
|
|
||||||
squashfsroot: squashfs host-fakeroot makedevs
|
squashfsroot: host-fakeroot makedevs squashfs
|
||||||
-@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/man
|
||||||
@rm -rf $(TARGET_DIR)/usr/info
|
@rm -rf $(TARGET_DIR)/usr/info
|
||||||
/sbin/ldconfig -r $(TARGET_DIR)
|
-/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null
|
||||||
# Use fakeroot to pretend all target binaries are owned by root
|
# Use fakeroot to pretend all target binaries are owned by root
|
||||||
$(STAGING_DIR)/usr/bin/fakeroot \
|
-$(STAGING_DIR)/usr/bin/fakeroot \
|
||||||
-i $(STAGING_DIR)/fakeroot.env \
|
-i $(STAGING_DIR)/fakeroot.env \
|
||||||
-s $(STAGING_DIR)/fakeroot.env -- \
|
-s $(STAGING_DIR)/fakeroot.env -- \
|
||||||
chown -R root:root $(TARGET_DIR)
|
chown -R root:root $(TARGET_DIR)
|
||||||
|
@ -10,11 +10,9 @@ tarroot: host-fakeroot makedevs
|
|||||||
-@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/man
|
||||||
@rm -rf $(TARGET_DIR)/usr/info
|
@rm -rf $(TARGET_DIR)/usr/info
|
||||||
test -e "$(TARGET_DIR)/etc/ld.so.conf" \
|
-/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null
|
||||||
&& /sbin/ldconfig -r $(TARGET_DIR) \
|
|
||||||
|| true
|
|
||||||
# Use fakeroot to pretend all target binaries are owned by root
|
# Use fakeroot to pretend all target binaries are owned by root
|
||||||
$(STAGING_DIR)/usr/bin/fakeroot \
|
-$(STAGING_DIR)/usr/bin/fakeroot \
|
||||||
-i $(STAGING_DIR)/fakeroot.env \
|
-i $(STAGING_DIR)/fakeroot.env \
|
||||||
-s $(STAGING_DIR)/fakeroot.env -- \
|
-s $(STAGING_DIR)/fakeroot.env -- \
|
||||||
chown -R root:root $(TARGET_DIR)
|
chown -R root:root $(TARGET_DIR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user