From fe315a53517fd5792735428f0da232041a8cdce3 Mon Sep 17 00:00:00 2001 From: LiChen Date: Thu, 11 Aug 2016 14:02:54 +0800 Subject: [PATCH] Build libfdt as a static library. Build libfdt as a static library for bootloader providers to integrate the functionality of device tree blob (DTB) manipulation on the target. Bug: 30800638 Change-Id: Ib5cb1e66fb49bc4766f8730df1952ff307d293cd --- libfdt/Android.mk | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/libfdt/Android.mk b/libfdt/Android.mk index 23bdcce..ed70f10 100644 --- a/libfdt/Android.mk +++ b/libfdt/Android.mk @@ -1,7 +1,6 @@ LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) -LOCAL_SRC_FILES := \ +common_src_files := \ fdt.c \ fdt_ro.c \ fdt_wip.c \ @@ -11,6 +10,24 @@ LOCAL_SRC_FILES := \ fdt_empty_tree.c \ fdt_addresses.c +################################################# + +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := $(common_src_files) LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) LOCAL_MODULE := libfdt + +include $(BUILD_STATIC_LIBRARY) + +################################################# + + +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := $(common_src_files) +LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) +LOCAL_MODULE := libfdt + include $(BUILD_HOST_STATIC_LIBRARY) +