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