Ignore:
Timestamp:
2010-08-10T22:14:45+02:00 (6 years ago)
Author:
florian
Message:

backport r22585 to backfire, thanks maddes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/target/linux/orion/image/Makefile

    r22581 r22586  
    8080 
    8181define Image/Build/Freecom 
     82        # Orion Freecom Images 
     83 # backup unwanted files 
     84        rm -rf ${TMP_DIR}/$2_backup 
     85        mkdir ${TMP_DIR}/$2_backup 
     86        -mv $(TARGET_DIR)/{var,jffs,rom} ${TMP_DIR}/$2_backup 
     87 # add extra files 
    8288        $(INSTALL_DIR) $(TARGET_DIR)/boot 
    8389        # TODO: Add special CMDLINE shim for webupgrade image here 
    8490        $(CP) $(KDIR)/dt2-uImage $(TARGET_DIR)/boot/uImage 
    85         rm -rf $(TARGET_DIR)/{var,jffs,rom} 
    8691        $(INSTALL_DIR) $(TARGET_DIR)/var 
     92 # create image 
    8793        $(TAR) cfj $(BIN_DIR)/openwrt-$(2)-$(1).img --numeric-owner --owner=0 --group=0 -C $(TARGET_DIR)/ . 
    8894        $(STAGING_DIR_HOST)/bin/encode_crc $(BIN_DIR)/openwrt-$(2)-$(1).img $(BIN_DIR)/openwrt-$(2)-$(1)-webupgrade.img $(3) 
     95 # remove extra files 
     96        rm -rf $(TARGET_DIR)/{boot,var} 
     97 # recover unwanted files 
     98        -mv ${TMP_DIR}/$2_backup/* $(TARGET_DIR)/ 
     99        rm -rf ${TMP_DIR}/$2_backup 
    89100endef 
    90101 
Note: See TracChangeset for help on using the changeset viewer.