Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save steven676/4b94d85f697883c6be59 to your computer and use it in GitHub Desktop.
Save steven676/4b94d85f697883c6be59 to your computer and use it in GitHub Desktop.
[PATCH] Allow targets to choose to build traditional file-based OTAs
From 6cf8a578c2448e46d6c2dcdf0c4c9b58ca0c9040 Mon Sep 17 00:00:00 2001
From: Steven Luo <[email protected]>
Date: Sun, 16 Nov 2014 04:02:49 -0800
Subject: [PATCH] Allow targets to choose to build traditional file-based OTAs
---
core/Makefile | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/core/Makefile b/core/Makefile
index b08ad1b..ae68631 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -1460,11 +1460,16 @@ INTERNAL_OTA_PACKAGE_TARGET := $(PRODUCT_OUT)/$(name).zip
$(INTERNAL_OTA_PACKAGE_TARGET): KEY_CERT_PAIR := $(DEFAULT_KEY_CERT_PAIR)
+ifeq ($(TARGET_USE_FILE_OTA),true)
+ OTA_PACKAGE_STYLE :=
+else
+ OTA_PACKAGE_STYLE := --block
+endif
$(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) $(DISTTOOLS)
@echo "Package OTA: $@"
$(hide) MKBOOTIMG=$(MKBOOTIMG) \
./build/tools/releasetools/ota_from_target_files -v \
- --block \
+ $(OTA_PACKAGE_STYLE) \
-p $(HOST_OUT) \
-k $(KEY_CERT_PAIR) \
$(if $(OEM_OTA_CONFIG), -o $(OEM_OTA_CONFIG)) \
--
1.7.10.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment