samsung: convert dtbhtoolExynos to blueprint

Change-Id: I0f9aff67e76ac47f792e92fca4802b50f893d37c
tirimbino
Jan Altensen 4 years ago
parent 59de5528ef
commit f78616bab3
  1. 1
      Android.mk
  2. 53
      dtbhtool/Android.bp
  3. 69
      dtbhtool/Android.mk

@ -39,7 +39,6 @@ ifeq ($(BOARD_VENDOR),samsung)
include $(SAM_ROOT)/AdvancedDisplay/Android.mk
include $(SAM_ROOT)/audio/Android.mk
include $(SAM_ROOT)/doze/Android.mk
include $(SAM_ROOT)/dtbhtool/Android.mk
include $(SAM_ROOT)/hidl/Android.mk
include $(SAM_ROOT)/modemloader/Android.mk
include $(SAM_ROOT)/ril/Android.mk

@ -0,0 +1,53 @@
cc_binary_host {
name: "dtbhtoolExynos",
shared_libs: [
"libdtbimg",
],
static_libs: [
"libfdt",
],
srcs: [
"mkdtbimg.c",
],
local_include_dirs: ["libdtbimg"],
}
cc_binary_host {
name: "mkdtbhbootimg",
shared_libs: [
"libdtbimg",
"libcrypto",
],
static_libs: [
"libfdt",
],
srcs: [
"mkbootimg.c",
],
}
cc_binary_host {
name: "unpackdtbhbootimg",
srcs: [
"unpackbootimg.c",
],
}
cc_binary_host {
name: "unpackdtbhimg",
srcs: [
"unpackdtbhimg.c",
],
}
cc_library {
name: "libdtbimg",
host_supported: true,
srcs: [
"dtbimg.c",
],
static_libs: [
"libfdt",
],
local_include_dirs: ["libdtbimg"],
}

@ -1,69 +0,0 @@
LOCAL_PATH:= $(call my-dir)
# Host static library
include $(CLEAR_VARS)
LOCAL_SRC_FILES := dtbimg.c
LOCAL_STATIC_LIBRARIES := libfdt
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/libdtbimg
LOCAL_MODULE := libdtbimg
include $(BUILD_HOST_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := mkbootimg.c
LOCAL_STATIC_LIBRARIES := libdtbimg libfdt libcrypto_static
LOCAL_MODULE := mkdtbhbootimg
include $(BUILD_HOST_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := unpackbootimg.c
LOCAL_MODULE := unpackdtbhbootimg
include $(BUILD_HOST_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := mkdtbimg.c
LOCAL_STATIC_LIBRARIES := libdtbimg libfdt
LOCAL_MODULE := dtbhtoolExynos
include $(BUILD_HOST_EXECUTABLE)
# Target static library
include $(CLEAR_VARS)
LOCAL_SRC_FILES := dtbimg.c
LOCAL_STATIC_LIBRARIES := libfdt
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/libdtbimg
LOCAL_MODULE := libdtbimg
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := mkbootimg.c
LOCAL_STATIC_LIBRARIES := libdtbimg libfdt libcrypto_static libcutils libc
LOCAL_MODULE := utility_mkdtbhbootimg
LOCAL_MODULE_STEM := mkdtbhbootimg
LOCAL_MODULE_CLASS := EXECUTABLES
LOCAL_UNSTRIPPED_PATH := $(PRODUCT_OUT)/symbols/utilities
LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities
LOCAL_FORCE_STATIC_EXECUTABLE := true
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := unpackbootimg.c
LOCAL_STATIC_LIBRARIES := libcutils libc
LOCAL_MODULE := utility_unpackdtbhbootimg
LOCAL_MODULE_STEM := unpackdtbhbootimg
LOCAL_MODULE_CLASS := EXECUTABLES
LOCAL_UNSTRIPPED_PATH := $(PRODUCT_OUT)/symbols/utilities
LOCAL_MODULE_PATH := $(PRODUCT_OUT)/utilities
LOCAL_FORCE_STATIC_EXECUTABLE := true
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := unpackdtbhimg.c
LOCAL_MODULE := unpackdtbhimg
include $(BUILD_HOST_EXECUTABLE)
$(call dist-for-goals,dist_files,$(LOCAL_BUILT_MODULE))
Loading…
Cancel
Save