summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-02-18 00:28:21 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-02-18 00:28:21 +0000
commitcbcbb5539dce7e13120b85e65b0672c50fcbff5a (patch)
tree1a399954ff099148a6f092763fa667b5c8d8cc32 /tools
parentcbf0f2e03845e4d588141b777a523ea5f2b2f311 (diff)
parenta865d35c48a9239980a589eaf5974333fbb32e79 (diff)
downloadandroid_development-cbcbb5539dce7e13120b85e65b0672c50fcbff5a.tar.gz
android_development-cbcbb5539dce7e13120b85e65b0672c50fcbff5a.tar.bz2
android_development-cbcbb5539dce7e13120b85e65b0672c50fcbff5a.zip
am a865d35c: am 092ddc95: Merge "Clean cruft out of the elftree makefile."
* commit 'a865d35c48a9239980a589eaf5974333fbb32e79': Clean cruft out of the elftree makefile.
Diffstat (limited to 'tools')
-rw-r--r--tools/elftree/Android.mk25
1 files 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