summaryrefslogtreecommitdiff
path: root/openwrt/target
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2005-02-21 03:47:31 +0000
committerMike Baker <mbm@openwrt.org>2005-02-21 03:47:31 +0000
commit4d6bb280f0b59ecdc6be3a5a29fc57525860cd62 (patch)
tree90a29af16f64153723a721be8599c20ece01fd3f /openwrt/target
parentab4f002e8d9880942dd12a6269099777f7fb8bd3 (diff)
downloadmtk-20170518-4d6bb280f0b59ecdc6be3a5a29fc57525860cd62.zip
mtk-20170518-4d6bb280f0b59ecdc6be3a5a29fc57525860cd62.tar.gz
mtk-20170518-4d6bb280f0b59ecdc6be3a5a29fc57525860cd62.tar.bz2
jffs2 root support
SVN-Revision: 276
Diffstat (limited to 'openwrt/target')
-rw-r--r--openwrt/target/Makefile.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/openwrt/target/Makefile.in b/openwrt/target/Makefile.in
index 40c9a05..7a212e4 100644
--- a/openwrt/target/Makefile.in
+++ b/openwrt/target/Makefile.in
@@ -5,8 +5,13 @@ TARGET_SKEL_DIR=target/default/target_skeleton
include target/device/Makefile.in
+ifeq ($(strip $(BR2_TARGET_ROOTFS_JFFS2)),y)
+JFFS2FLAGS+=-a 131072
+endif
+
+
$(DIST)-linux.trx: openwrt-trx
- PATH=$(TARGET_PATH) trx -o $(DIST)-linux.trx $(LINUX_DIR)/$(LINUX_BINLOC) $(IMAGE).$(ROOTFS)
+ PATH=$(TARGET_PATH) trx -o $(DIST)-linux.trx $(LINUX_DIR)/$(LINUX_BINLOC) $(JFFS2FLAGS) $(IMAGE).$(ROOTFS)
$(DIST)-gs-code.bin: openwrt-addpattern $(DIST)-linux.trx
PATH=$(TARGET_PATH) addpattern -2 -i $(DIST)-linux.trx -o $(DIST)-gs-code.bin -g