aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYueyao Zhu <yueyao@google.com>2017-03-28 22:24:04 -0700
committerBowgo Tsai <bowgotsai@google.com>2017-05-05 17:19:31 +0800
commit8aa4d201f0b0c56187a5227952e79b61481064e3 (patch)
tree6d9240067ae3e9180f85310282d911305d41805d
parent41c88b14dc8685502ffb40ed85629c759357c136 (diff)
downloaddtc-8aa4d201f0b0c56187a5227952e79b61481064e3.tar.gz
Build the dtc binary as a static executable
This enables the dtc binary to be used without dependencies on shared libraries, for instance, when the binary is copied to be used in the Android kernel build process. Test: mmm -j8 external/dtc , ldd out/host/linux-x86/bin/dtc Change-Id: Ic566104dc8064bdea12a9d3e0c442b518dc5d2ec Merged-In: Ic566104dc8064bdea12a9d3e0c442b518dc5d2ec (cherry picked from commit 9dfa11ddc415aec92f9ffed55d86cb3ba77c9a29)
-rw-r--r--Android.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index ee3590e..1e9a99e 100644
--- a/Android.mk
+++ b/Android.mk
@@ -22,6 +22,8 @@ LOCAL_SRC_FILES := \
LOCAL_STATIC_LIBRARIES := \
libfdt
+LOCAL_CXX_STL := none
+
LOCAL_MODULE := dtc
include $(BUILD_HOST_EXECUTABLE)