openwrtv4/openwrt/target/linux/image/jffs2.mk

45 lines
1.2 KiB
Makefile
Raw Normal View History

ifneq ($(CONFIG_BIG_ENDIAN),y)
2005-06-11 21:18:26 +00:00
JFFS2OPTS := --pad --little-endian --squash
2006-01-12 20:21:55 +00:00
else
JFFS2OPTS := --pad --big-endian --squash
endif
2005-06-11 21:18:26 +00:00
#JFFS2OPTS += -Xlzo -msize -Xlzari
jffs2-prepare: FORCE
$(MAKE) -C jffs2 prepare
2005-06-11 21:18:26 +00:00
jffs2-compile: prepare-targets
$(MAKE) -C jffs2 compile
2005-06-11 21:18:26 +00:00
jffs2-clean: FORCE
$(MAKE) -C jffs2 clean
2005-06-11 21:18:26 +00:00
rm -f $(KDIR)/root.jffs2*
$(KDIR)/root.jffs2-4MB: install-prepare
@rm -rf $(BUILD_DIR)/root/jffs
$(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x10000 -o $@ -d $(BUILD_DIR)/root
2005-06-11 21:18:26 +00:00
$(KDIR)/root.jffs2-8MB: install-prepare
@rm -rf $(BUILD_DIR)/root/jffs
$(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x20000 -o $@ -d $(BUILD_DIR)/root
2005-06-11 21:18:26 +00:00
2005-11-07 17:18:34 +00:00
ifeq ($(IB),)
jffs2-install: compile-targets $(BOARD)-compile
endif
jffs2-install: $(KDIR)/root.jffs2-4MB $(KDIR)/root.jffs2-8MB FORCE
2005-06-11 21:18:26 +00:00
$(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="jffs2-4MB"
$(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="jffs2-8MB"
jffs2-install-ib: compile-targets FORCE
mkdir -p $(IB_DIR)/staging_dir_$(ARCH)/bin
2006-02-01 23:53:19 +00:00
$(CP) $(STAGING_DIR)/bin/mkfs.jffs2 $(IB_DIR)/staging_dir_$(ARCH)/bin
prepare-targets: jffs2-prepare
compile-targets: jffs2-compile
install-targets: jffs2-install
install-ib: jffs2-install-ib
clean-targets: jffs2-clean
2005-06-11 21:18:26 +00:00