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
This commit is contained in:
LiChen 2016-08-11 14:02:54 +08:00
parent acce3fb606
commit fe315a5351

View file

@ -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)