From 4d323338feebe62525f9b655989770a0361c2b31 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Fri, 14 Oct 2016 13:23:06 -0700 Subject: [PATCH] Add a dist goal for the NDK. Test: make sdk dist Bug: None Change-Id: I07dfc73e3cea5afebcf5ed10cf860eb3f33cbff6 --- core/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/Makefile b/core/Makefile index a1d483bf37..0d8ee97831 100644 --- a/core/Makefile +++ b/core/Makefile @@ -2027,6 +2027,15 @@ ifneq ($(filter $(MAKECMDGOALS),target-files-package),) $(call dist-for-goals, target-files-package, $(BUILT_TARGET_FILES_PACKAGE)) endif +# ----------------------------------------------------------------- +# NDK Sysroot Package +NDK_SYSROOT_TARGET := $(PRODUCT_OUT)/ndk_sysroot.tar.bz2 +$(NDK_SYSROOT_TARGET): ndk + @echo Package NDK sysroot... + $(hide) tar cjf $@ -C $(SOONG_OUT_DIR) ndk + +$(call dist-for-goals,sdk,$(NDK_SYSROOT_TARGET)) + ifeq ($(build_ota_package),true) # ----------------------------------------------------------------- # OTA update package