From 3dbc29e17a95a4aa82f493bdcc67e09546bc3599 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Sun, 15 Feb 2015 11:40:28 -0800 Subject: [PATCH] Clean cruft out of the elftree makefile. Change-Id: I5a14c42297331f0a44b9d753f3fe754433b96f98 --- tools/elftree/Android.mk | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/tools/elftree/Android.mk b/tools/elftree/Android.mk index 5f2849dcf..0c9032bbc 100644 --- a/tools/elftree/Android.mk +++ b/tools/elftree/Android.mk @@ -14,34 +14,13 @@ LOCAL_PATH := $(call my-dir) -supported_platforms := linux -cur_platform := $(filter $(HOST_OS),$(supported_platforms)) - -ifdef cur_platform - -# Target executable -# TODO: Requires libelf for target - -#include $(CLEAR_VARS) -#LOCAL_MODULE := $(module) -#LOCAL_SRC_FILES := $(src_files) -#LOCAL_C_INCLUDES := $(c_includes) -#LOCAL_SHARED_LIBRARIES := $(shared_libraries) -#LOCAL_STATIC_LIBRARIES := $(static_libraries) -#LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) -#LOCAL_LDLIBS += -#include $(BUILD_EXECUTABLE) - -# Host executable +ifeq ($(HOST_OS),linux) include $(CLEAR_VARS) LOCAL_MODULE := elftree LOCAL_SRC_FILES := elftree.c LOCAL_C_INCLUDES := external/elfutils/0.153/libelf -# to fix compatibility issues in elf headers across different platforms -LOCAL_CFLAGS += \ - -include external/elfutils/0.153/host-$(HOST_OS)-fixup/AndroidFixup.h LOCAL_STATIC_LIBRARIES := libelf include $(BUILD_HOST_EXECUTABLE) -endif #cur_platform +endif