Home | History | Annotate | Download | only in tasks
      1 # Rule to make a distribution zipfile with all that is needed to flash the Edison
      2 
      3 ifeq ($(TARGET_DEVICE),edison)
      4 
      5 edisonname := $(TARGET_PRODUCT)
      6 ifeq ($(TARGET_BUILD_TYPE),debug)
      7   edisonname := $(edisonname)_debug
      8 endif
      9 edisonname := $(edisonname)-flashfiles-$(FILE_NAME_TAG)
     10 
     11 EDISON_ZIP    :=  $(TARGET_OUT_INTERMEDIATES)/$(edisonname).zip
     12 EDISON_VENDOR := vendor/bsp/intel/edison
     13 EDISON_DEVICE := device/intel/edison
     14 EDISON_IFWI   := $(EDISON_VENDOR)/ifwi_firmware
     15 EDISON_UBOOT  := $(EDISON_VENDOR)/uboot_firmware
     16 EDISON_TOOLS  := $(EDISON_DEVICE)/flash_tools
     17 
     18 EDISON_FLASHFILES := $(INSTALLED_BOOTIMAGE_TARGET)
     19 EDISON_FLASHFILES += $(INSTALLED_SYSTEMIMAGE)
     20 EDISON_FLASHFILES += $(INSTALLED_USERDATAIMAGE_TARGET)
     21 EDISON_FLASHFILES += $(PRODUCT_OUT)/gpt.bin
     22 EDISON_FLASHFILES += $(EDISON_IFWI)/edison_ifwi-dbg-00.bin \
     23                      $(EDISON_IFWI)/edison_dnx_fwr.bin \
     24                      $(EDISON_IFWI)/edison_dnx_osr.bin
     25 EDISON_FLASHFILES += $(EDISON_UBOOT)/u-boot-edison.bin $(EDISON_UBOOT)/u-boot-edison.img
     26 EDISON_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 
     40 endif
     41