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

47 lines
1.3 KiB
Makefile
Raw Normal View History

2006-01-12 20:21:55 +00:00
ifneq ($(BR2_mips),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:
$(MAKE) -C jffs2 prepare $(MAKE_TRACE)
2005-06-11 21:18:26 +00:00
jffs2-compile: prepare-targets
$(MAKE) -C jffs2 compile $(MAKE_TRACE)
2005-06-11 21:18:26 +00:00
jffs2-clean:
$(MAKE) -C jffs2 clean $(MAKE_TRACE)
2005-06-11 21:18:26 +00:00
rm -f $(KDIR)/root.jffs2*
$(KDIR)/root.jffs2-4MB: install-prepare
2005-06-11 21:18:26 +00:00
@rm -rf $(KDIR)/root/jffs
$(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x10000 -o $@ -d $(KDIR)/root $(MAKE_TRACE)
2005-06-11 21:18:26 +00:00
$(KDIR)/root.jffs2-8MB: install-prepare
2005-06-11 21:18:26 +00:00
@rm -rf $(KDIR)/root/jffs
$(STAGING_DIR)/bin/mkfs.jffs2 $(JFFS2OPTS) -e 0x20000 -o $@ -d $(KDIR)/root $(MAKE_TRACE)
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
$(TRACE) target/linux/image/$(BOARD)/install
2005-06-11 21:18:26 +00:00
$(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="jffs2-4MB"
$(TRACE) target/linux/image/$(BOARD)/install
2005-06-11 21:18:26 +00:00
$(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="jffs2-8MB"
2005-11-07 17:18:34 +00:00
jffs2-install-ib: compile-targets
mkdir -p $(IB_DIR)/staging_dir_$(ARCH)/bin
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