847895d295
This makes things easier to understand and more consistent with the pkg-infra. For example, it removes the need for '$$@' in the CMD variables of fs/*/*.mk. It also makes it possible to update the variables later, e.g. in the package override file. It also makes sure that the date will be recorded correctly in Yann E. Morin's patch that logs the MESSAGE macros to a file. The fs/*/*.mk must be updated as well because the '$@' shouldn't be quoted anymore in the CMD variables or the hooks. The $(eval ...) for the dependencies is redundant, because the $(ROOTFS_TARGET) variable is already eval'd. Note that it is only redundant if the evaluation of the uses of the variable is also delayed. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
42 lines
889 B
Makefile
42 lines
889 B
Makefile
#############################################################
|
|
#
|
|
# Build the squashfs root filesystem image
|
|
#
|
|
#############################################################
|
|
|
|
ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4),y)
|
|
ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs
|
|
|
|
ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZO),y)
|
|
ROOTFS_SQUASHFS_ARGS += -comp lzo
|
|
else
|
|
ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZMA),y)
|
|
ROOTFS_SQUASHFS_ARGS += -comp lzma
|
|
else
|
|
ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_XZ),y)
|
|
ROOTFS_SQUASHFS_ARGS += -comp xz
|
|
else
|
|
ROOTFS_SQUASHFS_ARGS += -comp gzip
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
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))
|