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