2009-03-04 11:32:55 +08:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
2014-01-11 08:05:12 +08:00
|
|
|
|
2014-03-22 07:58:30 +08:00
|
|
|
include $(CLEAR_VARS)
|
2014-01-11 08:05:12 +08:00
|
|
|
|
2014-03-22 07:58:30 +08:00
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
backtrace.cpp \
|
|
|
|
debuggerd.cpp \
|
|
|
|
getevent.cpp \
|
|
|
|
tombstone.cpp \
|
|
|
|
utility.cpp \
|
2009-03-04 11:32:55 +08:00
|
|
|
|
2014-03-22 07:58:30 +08:00
|
|
|
LOCAL_SRC_FILES_arm := arm/machine.cpp
|
|
|
|
LOCAL_SRC_FILES_arm64 := arm64/machine.cpp
|
|
|
|
LOCAL_SRC_FILES_mips := mips/machine.cpp
|
|
|
|
LOCAL_SRC_FILES_x86 := x86/machine.cpp
|
|
|
|
LOCAL_SRC_FILES_x86_64 := x86_64/machine.cpp
|
|
|
|
|
|
|
|
LOCAL_CONLYFLAGS := -std=gnu99
|
|
|
|
LOCAL_CPPFLAGS := -std=gnu++11
|
|
|
|
LOCAL_CFLAGS := \
|
|
|
|
-Wall \
|
|
|
|
-Wno-array-bounds \
|
2014-05-01 00:24:08 +08:00
|
|
|
-Werror
|
2014-02-13 14:32:07 +08:00
|
|
|
|
2014-03-22 07:58:30 +08:00
|
|
|
ifeq ($(ARCH_ARM_HAVE_VFP),true)
|
|
|
|
LOCAL_CFLAGS_arm += -DWITH_VFP
|
|
|
|
endif # ARCH_ARM_HAVE_VFP
|
2010-03-09 11:21:07 +08:00
|
|
|
ifeq ($(ARCH_ARM_HAVE_VFP_D32),true)
|
2014-03-22 07:58:30 +08:00
|
|
|
LOCAL_CFLAGS_arm += -DWITH_VFP_D32
|
2010-03-09 11:21:07 +08:00
|
|
|
endif # ARCH_ARM_HAVE_VFP_D32
|
|
|
|
|
2014-03-22 07:58:30 +08:00
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
libbacktrace \
|
|
|
|
libc \
|
|
|
|
libcutils \
|
|
|
|
liblog \
|
|
|
|
libselinux \
|
|
|
|
|
|
|
|
include external/stlport/libstlport.mk
|
|
|
|
|
|
|
|
LOCAL_MODULE := debuggerd
|
|
|
|
LOCAL_MODULE_STEM_32 := debuggerd
|
|
|
|
LOCAL_MODULE_STEM_64 := debuggerd64
|
|
|
|
LOCAL_MULTILIB := both
|
|
|
|
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := crasher.c
|
|
|
|
LOCAL_SRC_FILES_arm := arm/crashglue.S
|
|
|
|
LOCAL_SRC_FILES_arm64 := arm64/crashglue.S
|
|
|
|
LOCAL_SRC_FILES_mips := mips/crashglue.S
|
|
|
|
LOCAL_SRC_FILES_x86 := x86/crashglue.S
|
|
|
|
LOCAL_SRC_FILES_x86_64 := x86_64/crashglue.S
|
2009-03-04 11:32:55 +08:00
|
|
|
LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
|
2011-01-24 09:51:54 +08:00
|
|
|
LOCAL_MODULE_TAGS := optional
|
2014-05-01 00:24:08 +08:00
|
|
|
LOCAL_CFLAGS += -fstack-protector-all -Werror -Wno-free-nonheap-object
|
2014-03-22 07:58:30 +08:00
|
|
|
#LOCAL_FORCE_STATIC_EXECUTABLE := true
|
2013-04-10 13:03:45 +08:00
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils liblog libc
|
2014-03-22 07:58:30 +08:00
|
|
|
|
|
|
|
LOCAL_MODULE := crasher
|
|
|
|
LOCAL_MODULE_STEM_32 := crasher
|
|
|
|
LOCAL_MODULE_STEM_64 := crasher64
|
|
|
|
LOCAL_MULTILIB := both
|
|
|
|
|
2009-03-04 11:32:55 +08:00
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
2009-12-18 04:50:58 +08:00
|
|
|
include $(CLEAR_VARS)
|
2014-03-22 07:58:30 +08:00
|
|
|
|
|
|
|
ifeq ($(ARCH_ARM_HAVE_VFP),true)
|
|
|
|
LOCAL_MODULE_TARGET_ARCH += arm
|
|
|
|
LOCAL_SRC_FILES_arm := arm/vfp.S
|
|
|
|
LOCAL_CFLAGS_arm += -DWITH_VFP
|
|
|
|
ifeq ($(ARCH_ARM_HAVE_VFP_D32),true)
|
|
|
|
LOCAL_CFLAGS_arm += -DWITH_VFP_D32
|
|
|
|
endif # ARCH_ARM_HAVE_VFP_D32
|
|
|
|
endif # ARCH_ARM_HAVE_VFP == true
|
2014-05-01 00:24:08 +08:00
|
|
|
LOCAL_CFLAGS += -Werror
|
2014-03-22 07:58:30 +08:00
|
|
|
|
|
|
|
LOCAL_SRC_FILES_arm64 := arm64/vfp.S
|
|
|
|
LOCAL_MODULE_TARGET_ARCH += arm64
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := vfp-crasher.c
|
|
|
|
LOCAL_MODULE := vfp-crasher
|
2009-12-18 04:50:58 +08:00
|
|
|
LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
|
2011-01-24 09:51:54 +08:00
|
|
|
LOCAL_MODULE_TAGS := optional
|
2013-04-10 13:03:45 +08:00
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils liblog libc
|
2014-03-22 07:58:30 +08:00
|
|
|
|
|
|
|
LOCAL_MODULE_STEM_32 := vfp-crasher
|
|
|
|
LOCAL_MODULE_STEM_64 := vfp-crasher64
|
|
|
|
LOCAL_MULTILIB := both
|
|
|
|
|
2009-12-18 04:50:58 +08:00
|
|
|
include $(BUILD_EXECUTABLE)
|