Merge "Add a dist goal for the NDK." am: e5d1926c61 am: 55c6b82091
am: 27d694bee2

Change-Id: I5bf8d2db587ee4827ac1e14b14812da28fee3e1e
diff --git a/core/Makefile b/core/Makefile
index 5cecc15..88b0e27 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -2102,6 +2102,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