3975e30b99
Set image file permissions to 0644 like it was before the fs rework, instead of the rather unhelpful 0700 (E.G. when image is used for tftp). Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
27 lines
587 B
Makefile
27 lines
587 B
Makefile
#############################################################
|
|
#
|
|
# Build the squashfs root filesystem image
|
|
#
|
|
#############################################################
|
|
|
|
ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4),y)
|
|
ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs
|
|
else
|
|
ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs3
|
|
|
|
ifeq ($(BR2_ENDIAN),"BIG")
|
|
ROOTFS_SQUASHFS_ARGS=-be
|
|
else
|
|
ROOTFS_SQUASHFS_ARGS=-le
|
|
endif
|
|
|
|
endif
|
|
|
|
define ROOTFS_SQUASHFS_CMD
|
|
$(HOST_DIR)/usr/bin/mksquashfs $(TARGET_DIR) $$@ -noappend \
|
|
$(ROOTFS_SQUASHFS_ARGS) && \
|
|
chmod 0644 $$@
|
|
endef
|
|
|
|
$(eval $(call ROOTFS_TARGET,squashfs))
|