Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #174 from Seinlin/bug-1008239-v1.4
Browse files Browse the repository at this point in the history
Bug 1008239 v1.4
  • Loading branch information
rvandermeulen committed Jun 7, 2014
2 parents e1dbe80 + a4a963a commit 2522872
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Android.mk
Expand Up @@ -423,9 +423,15 @@ define detect-partitions
$(info Mounting /data from $(B2G_FOTA_DATA_PARTITION))
endef

define detect-update-bin
$(if $(wildcard $(TARGET_UPDATE_BINARY)),
$(eval FOTA_UPDATE_BIN := --update-bin $(TARGET_UPDATE_BINARY)))
endef

define setup-fs
$(call detect-fstype)
$(call detect-partitions,$(recovery_fstab))
$(call detect-update-bin)
endef

B2G_FOTA_FLASH_SCRIPT := tools/update-tools/build-flash-fota.py
Expand All @@ -451,6 +457,7 @@ $(PRODUCT_OUT)/$(B2G_FOTA_UPDATE_ZIP): $(B2G_FOTA_SYSTEM_FILES) $(PRODUCT_OUT)/s
$(call setup-fs)
$(info Generating FOTA update package)
@PATH=$(B2G_FOTA_ENV_PATH) $(B2G_FOTA_FLASH_SCRIPT) \
$(FOTA_UPDATE_BIN) \
--system-dir $(PRODUCT_OUT)/system \
--system-fs-type $(B2G_FOTA_FSTYPE) \
--system-location $(B2G_FOTA_SYSTEM_PARTITION) \
Expand All @@ -466,6 +473,7 @@ $(PRODUCT_OUT)/$(B2G_FOTA_UPDATE_FULL_ZIP): $(PRODUCT_OUT)/system.img
$(call setup-fs)
$(info Generating full FOTA update package)
@PATH=$(B2G_FOTA_ENV_PATH) $(B2G_FOTA_FLASH_SCRIPT) \
$(FOTA_UPDATE_BIN) \
--system-dir $(PRODUCT_OUT)/system \
--system-fs-type $(B2G_FOTA_FSTYPE) \
--system-location $(B2G_FOTA_SYSTEM_PARTITION) \
Expand Down

0 comments on commit 2522872

Please sign in to comment.