xref: /OK3568_Linux_fs/buildroot/fs/cramfs/cramfs.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# Build the cramfs root filesystem image
4#
5################################################################################
6
7ifeq ($(BR2_ENDIAN),"BIG")
8CRAMFS_OPTS = -B
9else
10CRAMFS_OPTS = -L
11endif
12
13ifeq ($(BR2_TARGET_ROOTFS_CRAMFS_XIP),y)
14ifeq ($(BR2_USE_MMU),y)
15CRAMFS_OPTS += -X -X
16else
17CRAMFS_OPTS += -X
18endif
19endif
20
21define ROOTFS_CRAMFS_CMD
22	$(HOST_DIR)/bin/mkcramfs $(CRAMFS_OPTS) $(TARGET_DIR) $@
23endef
24
25ROOTFS_CRAMFS_DEPENDENCIES = host-cramfs
26
27$(eval $(rootfs))
28