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