mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-14 19:16:17 +02:00
d4acdafcf7
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@688 3c298f89-4303-0410-b956-a3cf2f4a3e73
24 lines
768 B
Makefile
24 lines
768 B
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
include ./jffs2root.mk
|
|
|
|
JFFS2_TARGETS:= $(BIN_DIR)/openwrt-generic-jffs2-4MB.trx $(BIN_DIR)/openwrt-generic-jffs2-8MB.trx
|
|
JFFS2OPTS := --pad --little-endian --squash -d $(TARGET_DIR)
|
|
#JFFS2OPTS += -Xlzo -msize -Xlzari
|
|
|
|
prepare: $(MTD_DIR)/.unpacked
|
|
compile: mtd
|
|
install: compile $(JFFS2_TARGETS)
|
|
clean: jffs2root-dirclean
|
|
|
|
$(BIN_DIR)/openwrt-generic-jffs2-4MB.trx:
|
|
$(MKFS_JFFS2) $(JFFS2OPTS) -e 0x10000 -o $(IMAGE)-4MB.jffs2
|
|
PATH=$(TARGET_PATH) trx -o $@ $(BUILD_DIR)/loader.gz \
|
|
$(LINUX_IMAGE) -a 0x10000 $(IMAGE)-4MB.jffs2
|
|
|
|
$(BIN_DIR)/openwrt-generic-jffs2-8MB.trx:
|
|
$(MKFS_JFFS2) $(JFFS2OPTS) -e 0x20000 -o $(IMAGE)-8MB.jffs2
|
|
PATH=$(TARGET_PATH) trx -o $@ $(BUILD_DIR)/loader.gz \
|
|
$(LINUX_IMAGE) -a 0x20000 $(IMAGE)-8MB.jffs2
|
|
|