From 4c289e5041270f4d697fa5f5b4c027ad07cfba0e Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Fri, 30 Mar 2012 13:52:54 -0700 Subject: [PATCH] Generate platfrom.zip for build goal "platform". Bug: 6241618 If platform appears on the build command line, build platform.zip, which essentially is the zip package of the system directory. Put the platform.zip to the dist dir if "dist" is specified too, so the platform.zip can be downloaded from the build page. Change-Id: I988dd5c753a4ee744b4e3dccf261d8df904d9847 --- core/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/core/Makefile b/core/Makefile index e005485eb..80853987d 100644 --- a/core/Makefile +++ b/core/Makefile @@ -869,6 +869,21 @@ systemtarball-nodeps: $(FS_GET_STATS) \ .PHONY: stnod stnod: systemtarball-nodeps +####### +## platform.zip: system in a zip file +INSTALLED_PLATFROM_ZIP := $(PRODUCT_OUT)/platform.zip +$(INSTALLED_PLATFROM_ZIP) : $(INTERNAL_SYSTEMIMAGE_FILES) + $(call pretty,"Platform zip package: $(INSTALLED_PLATFROM_ZIP)") + $(hide) rm -f $@ + $(hide) cd $(dir $@) && zip -qry $(notdir $@) system + +.PHONY: platform +platform: $(INSTALLED_PLATFROM_ZIP) + +# Dist the platform.zip +ifneq (,$(filter platform, $(MAKECMDGOALS))) +$(call dist-for-goals, platform, $(INSTALLED_PLATFROM_ZIP)) +endif ####### ## boot tarball -- 2.11.0