Merge "Add a dist goal for the NDK."
am: e5d1926c61
Change-Id: I469216eb13da6061854a48f28d3fb3fcea4a0068
diff --git a/core/Makefile b/core/Makefile
index 8334dc8..f86291b 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -2101,6 +2101,15 @@
$(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