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