diff options
author | Florian Fainelli <florian@openwrt.org> | 2010-08-10 20:13:49 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2010-08-10 20:13:49 +0000 |
commit | 3e5184c29132fc065dcf2c518102f7d16c5e0fc7 (patch) | |
tree | 00e002ac235b55321b1016d1a134c89fd3334d71 /target/linux/orion | |
parent | 4b1854d4019bfdc1e4e766bb3a21bae7e898a1dd (diff) | |
download | upstream-3e5184c29132fc065dcf2c518102f7d16c5e0fc7.tar.gz upstream-3e5184c29132fc065dcf2c518102f7d16c5e0fc7.tar.bz2 upstream-3e5184c29132fc065dcf2c518102f7d16c5e0fc7.zip |
[orion] fix Freecom DT2 jffs2 rootfs generation issue (#7584)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22585 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/orion')
-rw-r--r-- | target/linux/orion/image/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/target/linux/orion/image/Makefile b/target/linux/orion/image/Makefile index 81de135456..16ae4392fc 100644 --- a/target/linux/orion/image/Makefile +++ b/target/linux/orion/image/Makefile @@ -79,13 +79,24 @@ define Image/Build/Linksys endef define Image/Build/Freecom + # Orion Freecom Images + # backup unwanted files + rm -rf ${TMP_DIR}/$2_backup + mkdir ${TMP_DIR}/$2_backup + -mv $(TARGET_DIR)/{var,jffs,rom} ${TMP_DIR}/$2_backup + # add extra files $(INSTALL_DIR) $(TARGET_DIR)/boot # TODO: Add special CMDLINE shim for webupgrade image here $(CP) $(KDIR)/dt2-uImage $(TARGET_DIR)/boot/uImage - rm -rf $(TARGET_DIR)/{var,jffs,rom} $(INSTALL_DIR) $(TARGET_DIR)/var + # create image $(TAR) cfj $(BIN_DIR)/openwrt-$(2)-$(1).img --numeric-owner --owner=0 --group=0 -C $(TARGET_DIR)/ . $(STAGING_DIR_HOST)/bin/encode_crc $(BIN_DIR)/openwrt-$(2)-$(1).img $(BIN_DIR)/openwrt-$(2)-$(1)-webupgrade.img $(3) + # remove extra files + rm -rf $(TARGET_DIR)/{boot,var} + # recover unwanted files + -mv ${TMP_DIR}/$2_backup/* $(TARGET_DIR)/ + rm -rf ${TMP_DIR}/$2_backup endef define Image/Build |