2005-03-06 03:34:52 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
include ./jffs2root.mk
|
|
|
|
|
2005-04-20 17:01:30 +00:00
|
|
|
JFFS2_TARGETS:= $(BIN_DIR)/openwrt-generic-jffs2-4MB.trx $(BIN_DIR)/openwrt-generic-jffs2-8MB.trx
|
2005-04-12 14:52:18 +00:00
|
|
|
JFFS2OPTS := --pad --little-endian --squash -d $(TARGET_DIR)
|
2005-04-14 08:39:01 +00:00
|
|
|
#JFFS2OPTS += -Xlzo -msize -Xlzari
|
2005-03-06 03:34:52 +00:00
|
|
|
|
|
|
|
prepare: $(MTD_DIR)/.unpacked
|
|
|
|
compile: mtd
|
2005-04-20 17:01:30 +00:00
|
|
|
install: compile $(JFFS2_TARGETS)
|
2005-03-06 03:34:52 +00:00
|
|
|
clean: jffs2root-dirclean
|
|
|
|
|
|
|
|
$(BIN_DIR)/openwrt-generic-jffs2-4MB.trx:
|
2005-04-12 14:52:18 +00:00
|
|
|
$(MKFS_JFFS2) $(JFFS2OPTS) -e 0x10000 -o $(IMAGE)-4MB.jffs2
|
2005-04-02 19:06:50 +00:00
|
|
|
PATH=$(TARGET_PATH) trx -o $@ $(BUILD_DIR)/loader.gz \
|
2005-04-02 12:12:58 +00:00
|
|
|
$(LINUX_IMAGE) -a 0x10000 $(IMAGE)-4MB.jffs2
|
2005-03-06 03:34:52 +00:00
|
|
|
|
|
|
|
$(BIN_DIR)/openwrt-generic-jffs2-8MB.trx:
|
2005-04-12 14:52:18 +00:00
|
|
|
$(MKFS_JFFS2) $(JFFS2OPTS) -e 0x20000 -o $(IMAGE)-8MB.jffs2
|
2005-04-02 19:06:50 +00:00
|
|
|
PATH=$(TARGET_PATH) trx -o $@ $(BUILD_DIR)/loader.gz \
|
2005-04-02 12:12:58 +00:00
|
|
|
$(LINUX_IMAGE) -a 0x20000 $(IMAGE)-8MB.jffs2
|
2005-03-06 03:34:52 +00:00
|
|
|
|