1# Rule to make a distribution zipfile with all that is needed to flash the Edison 2 3ifeq ($(TARGET_DEVICE),edison) 4 5edisonname := $(TARGET_PRODUCT) 6ifeq ($(TARGET_BUILD_TYPE),debug) 7 edisonname := $(edisonname)_debug 8endif 9edisonname := $(edisonname)-flashfiles-$(FILE_NAME_TAG) 10 11EDISON_ZIP := $(TARGET_OUT_INTERMEDIATES)/$(edisonname).zip 12EDISON_VENDOR := vendor/bsp/intel/edison 13EDISON_DEVICE := device/intel/edison 14EDISON_IFWI := $(EDISON_VENDOR)/ifwi_firmware 15EDISON_UBOOT := $(EDISON_VENDOR)/uboot_firmware 16EDISON_TOOLS := $(EDISON_DEVICE)/flash_tools 17 18EDISON_FLASHFILES := $(INSTALLED_BOOTIMAGE_TARGET) 19EDISON_FLASHFILES += $(INSTALLED_SYSTEMIMAGE) 20EDISON_FLASHFILES += $(INSTALLED_USERDATAIMAGE_TARGET) 21EDISON_FLASHFILES += $(PRODUCT_OUT)/gpt.bin 22EDISON_FLASHFILES += $(EDISON_IFWI)/edison_ifwi-dbg-00.bin \ 23 $(EDISON_IFWI)/edison_dnx_fwr.bin \ 24 $(EDISON_IFWI)/edison_dnx_osr.bin 25EDISON_FLASHFILES += $(EDISON_UBOOT)/u-boot-edison.bin $(EDISON_UBOOT)/u-boot-edison.img 26EDISON_FLASHFILES += $(EDISON_TOOLS)/FlashEdison.json \ 27 $(EDISON_TOOLS)/brillo-flashall-edison.bat \ 28 $(EDISON_TOOLS)/brillo-flashall-edison.sh \ 29 $(EDISON_TOOLS)/README 30 31 32$(EDISON_ZIP): $(EDISON_FLASHFILES) 33 $(hide) echo "Package flashfiles: $@" 34 $(hide) rm -rf $@ 35 $(hide) mkdir -p $(dir $@) 36 $(hide) zip -j $@ $(EDISON_FLASHFILES) 37 38$(call dist-for-goals, dist_files, $(EDISON_ZIP)) 39 40endif 41