Ignore:
Timestamp:
Jul 12, 2010, 12:16:53 AM (9 years ago)
Author:
amain
Message:

Deliver all file from openwrt, not just the firmware flash files but all files related to the openwrt firmware

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debwrt/trunk/openwrt/openwrt-deliver.mk

    r14 r59  
    6262openwrt/deliver/image: openwrt/deliver/prepare
    6363        mkdir -p $(INSTALL_DIR)
    64         if  [ "unknown" != $(call qstrip,$(CONFIG_OPENWRT_TARGET_IMAGE_NAME_BIN)) ]; then \
    65                 cp -a ${OPENWRT_BIN_DIR}/$(call qstrip,$(CONFIG_OPENWRT_TARGET_IMAGE_NAME_BIN)) $(INSTALL_DIR)/$(TARGET_IMAGE_NAME_BIN); \
    66         else  \
    67                 echo "Failed to copy firmware BIN image. Configure image name in config/image_name.in"; \
    68         fi
    69         if  [ "unknown" != $(call qstrip,$(CONFIG_OPENWRT_TARGET_IMAGE_NAME_TRX)) ]; then \
    70                 cp -a ${OPENWRT_BIN_DIR}/$(call qstrip,$(CONFIG_OPENWRT_TARGET_IMAGE_NAME_TRX)) $(INSTALL_DIR)/$(TARGET_IMAGE_NAME_TRX); \
    71         else  \
    72                 echo "Failed to copy firmware TRX image. Configure image name in config/image_name.in"; \
    73         fi
    74         if [ ! -e $(INSTALL_DIR)/$(TARGET_IMAGE_NAME_BIN) -a ! -e $(INSTALL_DIR)/$(TARGET_IMAGE_NAME_TRX) ]; then \
    75                 echo "Failed to copy a firmware image. Investigate." && false; \
    76         fi
     64        find ${OPENWRT_BIN_DIR} -maxdepth 1 -type f | while read fname; do \
     65                tfname=`basename $$fname`; \
     66                tfname=`echo $$tfname | sed 's/openwrt/debwrt-firmware/'`; \
     67                cp -av $$fname $(INSTALL_DIR)/$$tfname; \
     68        done
    7769
    7870openwrt/deliver/kernel-modules: openwrt/deliver/prepare
Note: See TracChangeset for help on using the changeset viewer.