| LOCAL_SRC_FILES += \ |
| $(MBTK_HOME_DIR)/mbtk_at/src/mbtk_at.c \ |
| $(MBTK_HOME_DIR)/mbtk_at/src/mbtk_at_basic.c \ |
| $(MBTK_HOME_DIR)/mbtk_at/src/mbtk_at_tcpip.c \ |
| $(MBTK_HOME_DIR)/mbtk_at/src/mbtk_at_http.c \ |
| $(MBTK_HOME_DIR)/mbtk_at/src/mbtk_rgmii_loopback.c \ |
| $(MBTK_HOME_DIR)/mbtk_at/src/mbtk_at_ftp.c \ |
| $(MBTK_HOME_DIR)/mbtk_at/src/factory/mbtk_adc.c \ |
| $(MBTK_HOME_DIR)/mbtk_at/src/factory/mbtk_audio.c \ |
| $(MBTK_HOME_DIR)/mbtk_at/src/factory/mbtk_gpio.c \ |
| $(MBTK_HOME_DIR)/mbtk_at/src/factory/mbtk_power.c |
| |
| # Include Dirs -Ixxx |
| LOCAL_C_INCLUDES += \ |
| -I$(PXA_APPS_DIR)/common/config_manager \ |
| -I$(MBTK_HOME_DIR)/mbtk_at/inc |
| |
| # Define -Dxxx |
| #LOCAL_CFLAGS += \ |
| # -DMBTK_AT_HTTP_SUPPORT |
| |
| # Lib Dirs -Lxxx |
| #LIBS_DIR += \ |
| # -L$(MBTK_HOME_DIR)/lib |
| |
| # Libs -lxxx |
| # -lrilutil |
| #LIBS += \ |
| # -lmbtk_lib |
| |
| |
| #$(info TOPDIR=$(TOPDIR)) |
| BUILD_PROJECT=$(shell cat $(TOPDIR)/build_version | grep PROJECT | cut -d '=' -f 2) |
| $(info BUILD_PROJECT=$(BUILD_PROJECT)) |
| #BUILD_PROJECT_X=$(shell ${BUILD_PROJECT:0:4}) |
| #BUILD_PROJECT_X=$(shell echo $(BUILD_PROJECT) | cut -c 1-4) |
| #$(info BUILD_PROJECT_X=$(BUILD_PROJECT_X)) |
| |
| ifeq ($(shell echo $(BUILD_PROJECT) | cut -c 1-4), T108) |
| $(info BUILD_PROJECT=T108) |
| CFLAGS += -DMBTK_PROJECT_T108 |
| endif |
| |
| ifeq ($(shell echo $(BUILD_PROJECT) | cut -c 1-7), L508_X6) |
| $(info BUILD_PROJECT=L508_X6) |
| CFLAGS += -DMBTK_PROJECT_L508_X6 |
| else |
| ifeq ($(shell echo $(BUILD_PROJECT) | cut -c 1-4), L508) |
| $(info BUILD_PROJECT=L508) |
| CFLAGS += -DMBTK_PROJECT_L508 |
| else |
| ifeq ($(shell echo $(BUILD_PROJECT) | cut -c 1-4), L509) |
| $(info BUILD_PROJECT=L509) |
| CFLAGS += -DMBTK_PROJECT_L509 |
| else |
| ifeq ($(shell echo $(BUILD_PROJECT) | cut -c 1-6), PN1803) |
| $(info BUILD_PROJECT=PN1803) |
| CFLAGS += -DMBTK_PROJECT_PN1803 |
| endif |
| endif |
| endif |
| endif |