summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2010-09-10 14:39:33 -0700
committerYing Wang <wangying@google.com>2010-09-10 14:39:33 -0700
commit570a0eeffb4c06084f21a058efb25271bb0cd1f6 (patch)
tree07609ed556924b0ae9662bfb0139e1ad2ac12ff7
parentccc10925b7da2200c6a5ddfa17bf31c517e9da7a (diff)
downloadbuild-570a0eeffb4c06084f21a058efb25271bb0cd1f6.zip
build-570a0eeffb4c06084f21a058efb25271bb0cd1f6.tar.gz
build-570a0eeffb4c06084f21a058efb25271bb0cd1f6.tar.bz2
Dist userdataimg and tests-zip-package for tests builds
So that the build server can run the following command to build and dist only the two packages: make -j16 tests-zip-package userdataimage-nodeps dist showcommands TARGET_BUILD_VARIANT=tests TARGET_PRODUCT=passion Change-Id: I03d7049582ec8537a389e80b7ecdcae6625222ea
-rw-r--r--core/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/Makefile b/core/Makefile
index 7547648..7b67f88 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -831,6 +831,8 @@ $(INSTALLED_USERDATAIMAGE_TARGET): $(INTERNAL_USERIMAGES_DEPS) \
.PHONY: userdataimage-nodeps
userdataimage-nodeps: $(INTERNAL_USERIMAGES_DEPS)
$(build-userdataimage-target)
+ $(hide)mkdir -p $(DIST_DIR)
+ $(hide)cp $(INSTALLED_USERDATAIMAGE_TARGET) $(DIST_DIR)
#######
## data partition tarball
@@ -1101,8 +1103,17 @@ $(BUILT_TESTS_ZIP_PACKAGE): \
$(TARGET_OUT_DATA),$(zip_root)/DATA)
$(hide) (cd $(zip_root) && zip -qry ../$(notdir $@) .)
+.PHONY: tests-zip-package
tests-zip-package: $(BUILT_TESTS_ZIP_PACKAGE)
+# Dist the files needed by tests builds
+# So the build server can run the following commands to build tests packages while avoid a full build:
+# $make -j16 tests-zip-package userdataimage-nodeps dist showcommands TARGET_BUILD_VARIANT=tests TARGET_PRODUCT=passion
+ifeq ($(filter $(DEFAULT_GOAL) tests-zip-package,$(MAKECMDGOALS)),tests-zip-package)
+ $(call dist-for-goals, tests-zip-package, \
+ $(BUILT_TESTS_ZIP_PACKAGE))
+endif
+
# -----------------------------------------------------------------
# A zip of the symbols directory. Keep the full paths to make it
# more obvious where these files came from.