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