2013-06-06 23:54:13 +02:00
|
|
|
################################################################################
|
2003-01-17 05:22:53 +01:00
|
|
|
#
|
|
|
|
# Build the cramfs root filesystem image
|
|
|
|
#
|
2013-06-06 23:54:13 +02:00
|
|
|
################################################################################
|
2013-06-06 23:54:11 +02:00
|
|
|
|
2007-06-12 17:30:32 +02:00
|
|
|
ifeq ($(BR2_ENDIAN),"BIG")
|
2018-04-07 15:35:42 +02:00
|
|
|
CRAMFS_OPTS = -B
|
2007-06-12 17:30:32 +02:00
|
|
|
else
|
2018-04-07 15:35:42 +02:00
|
|
|
CRAMFS_OPTS = -L
|
2008-12-02 10:15:08 +01:00
|
|
|
endif
|
|
|
|
|
2018-04-07 15:35:43 +02:00
|
|
|
ifeq ($(BR2_TARGET_ROOTFS_CRAMFS_XIP),y)
|
|
|
|
ifeq ($(BR2_USE_MMU),y)
|
|
|
|
CRAMFS_OPTS += -X -X
|
|
|
|
else
|
|
|
|
CRAMFS_OPTS += -X
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2010-03-10 00:13:39 +01:00
|
|
|
define ROOTFS_CRAMFS_CMD
|
2017-07-05 13:14:19 +02:00
|
|
|
$(HOST_DIR)/bin/mkcramfs $(CRAMFS_OPTS) $(TARGET_DIR) $@
|
2010-03-10 00:13:39 +01:00
|
|
|
endef
|
2006-04-07 22:30:43 +02:00
|
|
|
|
2010-03-10 00:13:39 +01:00
|
|
|
ROOTFS_CRAMFS_DEPENDENCIES = host-cramfs
|
2003-01-17 05:22:53 +01:00
|
|
|
|
2017-12-28 11:40:32 +01:00
|
|
|
$(eval $(rootfs))
|