x264: bump to version 97eaef2ab82a46d13ea5e00270712d6475fbe42b
[buildroot-gz.git] / fs / jffs2 / jffs2.mk
blob9a36a75ff4a416cb34bbd055753ff9adbd5960e4
1 ################################################################################
3 # Build the jffs2 root filesystem image
5 ################################################################################
7 JFFS2_OPTS := -e $(BR2_TARGET_ROOTFS_JFFS2_EBSIZE)
8 SUMTOOL_OPTS := $(JFFS2_OPTS)
10 ifeq ($(BR2_TARGET_ROOTFS_JFFS2_PAD),y)
11 ifneq ($(strip $(BR2_TARGET_ROOTFS_JFFS2_PADSIZE)),0x0)
12 JFFS2_OPTS += --pad=$(strip $(BR2_TARGET_ROOTFS_JFFS2_PADSIZE))
13 else
14 JFFS2_OPTS += -p
15 endif
16 SUMTOOL_OPTS += -p
17 endif
19 ifeq ($(BR2_TARGET_ROOTFS_JFFS2_LE),y)
20 JFFS2_OPTS += -l
21 SUMTOOL_OPTS += -l
22 endif
24 ifeq ($(BR2_TARGET_ROOTFS_JFFS2_BE),y)
25 JFFS2_OPTS += -b
26 SUMTOOL_OPTS += -b
27 endif
29 ifeq ($(BR2_TARGET_ROOTFS_JFFS2_USE_CUSTOM_PAGESIZE),y)
30 JFFS2_OPTS += -s $(BR2_TARGET_ROOTFS_JFFS2_CUSTOM_PAGESIZE)
31 endif
33 ifeq ($(BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER),y)
34 JFFS2_OPTS += -n
35 SUMTOOL_OPTS += -n
36 endif
38 ROOTFS_JFFS2_DEPENDENCIES = host-mtd
40 ifneq ($(BR2_TARGET_ROOTFS_JFFS2_SUMMARY),)
41 define ROOTFS_JFFS2_CMD
42 $(MKFS_JFFS2) $(JFFS2_OPTS) -d $(TARGET_DIR) -o $@.nosummary
43 $(SUMTOOL) $(SUMTOOL_OPTS) -i $@.nosummary -o $@
44 rm $@.nosummary
45 endef
46 else
47 define ROOTFS_JFFS2_CMD
48 $(MKFS_JFFS2) $(JFFS2_OPTS) -d $(TARGET_DIR) -o $@
49 endef
50 endif
52 $(eval $(call ROOTFS_TARGET,jffs2))