Colin Cross 1e9f56cf9e Allow BoardConfig.mk to define an extension to dumpstate
If BoardConfig.mk defines BOARD_LIB_DUMPSTATE, link to that library
and call dumpstate_board(), which can dump debugging information that
only make senses on one device.

Change-Id: I2c5006a1a04b02cf26fd73575047ac176f222616
2011-07-18 17:30:13 -07:00

20 lines
380 B
Makefile

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
ifdef BOARD_WLAN_DEVICE
LOCAL_CFLAGS := -DFWDUMP_$(BOARD_WLAN_DEVICE)
endif
LOCAL_SRC_FILES := dumpstate.c utils.c
LOCAL_MODULE := dumpstate
LOCAL_SHARED_LIBRARIES := libcutils
ifdef BOARD_LIB_DUMPSTATE
LOCAL_STATIC_LIBRARIES := $(BOARD_LIB_DUMPSTATE)
LOCAL_CFLAGS += -DBOARD_HAS_DUMPSTATE
endif
include $(BUILD_EXECUTABLE)