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