2009-03-04 04:32:55 +01:00
|
|
|
# Copyright 2005 The Android Open Source Project
|
|
|
|
|
2012-08-11 02:06:20 +02:00
|
|
|
ifneq ($(filter arm mips x86,$(TARGET_ARCH)),)
|
2009-03-04 04:32:55 +01:00
|
|
|
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2012-06-07 01:25:03 +02:00
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
backtrace.c \
|
|
|
|
debuggerd.c \
|
|
|
|
getevent.c \
|
|
|
|
tombstone.c \
|
|
|
|
utility.c \
|
|
|
|
$(TARGET_ARCH)/machine.c
|
2010-10-13 23:21:30 +02:00
|
|
|
|
2012-06-07 01:25:03 +02:00
|
|
|
LOCAL_CFLAGS := -Wall -Wno-unused-parameter -std=gnu99
|
2009-03-04 04:32:55 +01:00
|
|
|
LOCAL_MODULE := debuggerd
|
|
|
|
|
2010-03-09 04:21:07 +01:00
|
|
|
ifeq ($(ARCH_ARM_HAVE_VFP),true)
|
|
|
|
LOCAL_CFLAGS += -DWITH_VFP
|
|
|
|
endif # ARCH_ARM_HAVE_VFP
|
|
|
|
ifeq ($(ARCH_ARM_HAVE_VFP_D32),true)
|
|
|
|
LOCAL_CFLAGS += -DWITH_VFP_D32
|
|
|
|
endif # ARCH_ARM_HAVE_VFP_D32
|
|
|
|
|
2012-10-17 08:07:05 +02:00
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
libcutils \
|
2013-04-10 07:03:45 +02:00
|
|
|
liblog \
|
2012-10-17 08:07:05 +02:00
|
|
|
libc \
|
|
|
|
libcorkscrew \
|
|
|
|
libselinux
|
2012-07-19 15:38:06 +02:00
|
|
|
|
2009-03-04 04:32:55 +01:00
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
2009-12-17 21:50:58 +01:00
|
|
|
LOCAL_SRC_FILES := crasher.c
|
2010-10-13 23:21:30 +02:00
|
|
|
LOCAL_SRC_FILES += $(TARGET_ARCH)/crashglue.S
|
2009-12-17 21:50:58 +01:00
|
|
|
LOCAL_MODULE := crasher
|
2009-03-04 04:32:55 +01:00
|
|
|
LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
|
2011-01-24 02:51:54 +01:00
|
|
|
LOCAL_MODULE_TAGS := optional
|
2013-02-14 23:41:57 +01:00
|
|
|
LOCAL_CFLAGS += -fstack-protector-all
|
2009-03-04 04:32:55 +01:00
|
|
|
#LOCAL_FORCE_STATIC_EXECUTABLE := true
|
2013-04-10 07:03:45 +02:00
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils liblog libc
|
2009-03-04 04:32:55 +01:00
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
2010-03-09 04:21:07 +01:00
|
|
|
ifeq ($(ARCH_ARM_HAVE_VFP),true)
|
2009-12-17 21:50:58 +01:00
|
|
|
include $(CLEAR_VARS)
|
2010-03-09 04:21:07 +01:00
|
|
|
|
|
|
|
LOCAL_CFLAGS += -DWITH_VFP
|
|
|
|
ifeq ($(ARCH_ARM_HAVE_VFP_D32),true)
|
|
|
|
LOCAL_CFLAGS += -DWITH_VFP_D32
|
|
|
|
endif # ARCH_ARM_HAVE_VFP_D32
|
|
|
|
|
2009-12-17 21:50:58 +01:00
|
|
|
LOCAL_SRC_FILES := vfp-crasher.c vfp.S
|
|
|
|
LOCAL_MODULE := vfp-crasher
|
|
|
|
LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
|
2011-01-24 02:51:54 +01:00
|
|
|
LOCAL_MODULE_TAGS := optional
|
2013-04-10 07:03:45 +02:00
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils liblog libc
|
2009-12-17 21:50:58 +01:00
|
|
|
include $(BUILD_EXECUTABLE)
|
2010-03-09 04:21:07 +01:00
|
|
|
endif # ARCH_ARM_HAVE_VFP == true
|
2009-12-17 21:50:58 +01:00
|
|
|
|
2010-10-14 01:11:15 +02:00
|
|
|
endif # arm or x86 in TARGET_ARCH
|