1ifeq ($(TARGET_BOARD_PLATFORM),omap4) 2ifeq ($(TARGET_BOARD_PLATFORM_VARIANT),omap4-aah) 3 4LOCAL_PATH:= $(call my-dir) 5HARDWARE_TI_OMAP4_BASE:= $(LOCAL_PATH) 6OMAP4_DEBUG_MEMLEAK:= false 7 8ifeq ($(OMAP4_DEBUG_MEMLEAK),true) 9 10OMAP4_DEBUG_CFLAGS:= -DHEAPTRACKER 11OMAP4_DEBUG_LDFLAGS:= $(foreach f, $(strip malloc realloc calloc free), -Wl,--wrap=$(f)) 12OMAP4_DEBUG_SHARED_LIBRARIES:= liblog 13BUILD_HEAPTRACKED_SHARED_LIBRARY:= hardware/ti/omap4xxx/heaptracked-shared-library.mk 14BUILD_HEAPTRACKED_EXECUTABLE:= hardware/ti/omap4xxx/heaptracked-executable.mk 15 16LOCAL_PATH:= $(call my-dir) 17include $(CLEAR_VARS) 18LOCAL_SRC_FILES:= heaptracker.c stacktrace.c mapinfo.c 19LOCAL_MODULE:= libheaptracker 20LOCAL_MODULE_TAGS:= optional 21include $(BUILD_STATIC_LIBRARY) 22 23include $(CLEAR_VARS) 24LOCAL_SRC_FILES:= tm.c 25LOCAL_MODULE:= tm 26LOCAL_MODULE_TAGS:= test 27include $(BUILD_HEAPTRACKED_EXECUTABLE) 28 29else 30BUILD_HEAPTRACKED_SHARED_LIBRARY:=$(BUILD_SHARED_LIBRARY) 31BUILD_HEAPTRACKED_EXECUTABLE:= $(BUILD_EXECUTABLE) 32endif 33 34include $(call first-makefiles-under,$(LOCAL_PATH)) 35endif 36endif 37