view src/cs/layer1/tpu_drivers/tpu_drivers.mak @ 640:16eb1b9640dc

target gtm900 renamed to gtm900mgc2 This change reflects the fact that the build target in question supports MGC2GSMT hardware only, and will NOT work on other hw that confusing bears the same end user name of GTM900, neither the LoCosto-based GTM900-C nor the Calypso-based MG01GSMT that has a different and incompatible RFFE. If we ever get our hands on a piece of MG01GSMT hw and add support for it, that other target will be named gtm900mg01.
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 31 Jan 2020 00:46:07 +0000
parents 945cf7f506b2
children
line wrap: on
line source

#
# TPU drivers makefile
#

# Compilation flags

TPU_DBG := $(DBG) # $(DBG) for debug; see master.mak for definition

TPU_DRIVERS_FLAGS := $(TPU_DBG) -c $(16INST) $(ALGN) -o2 $(CFLAGSTPUDRIVERS)


CFG_LIBS += $(TPU_DRIVERS_LIB)

# Source definitions

SRC_TPU_DRV := $(TPU_DRIVERS_DIR)/source/tpudrv.c $(TPU_DRIVERS_DIR)/source0/tpudrv$(RF_FAM).c
ifeq ($(L1_GPRS), 1)
SRC_TPU_DRV += $(TPU_DRIVERS_DIR)/p_source0/p_tpudr$(RF_FAM).c
endif

# Objects definition

OBJ_TPU_DRV := $(patsubst ../%.c,$(TEMPORARY_FILE_DIR)/%.obj,$(filter %.c,$(SRC_TPU_DRV)))
CFG_OBJS += $(OBJ_TPU_DRV)
CFG_DEPS += $(OBJ_TPU_DRV:.obj=.d)

# Library

$(TPU_DRIVERS_LIB) : $(OBJ_TPU_DRV)
	$(AR470) r $(TPU_DRIVERS_LIB) $(OBJ_TPU_DRV)

# Objects

$(OBJ_TPU_DRV) : $(TEMPORARY_FILE_DIR)/%.obj: ../%.c
	$(COMPILER) $(TPU_DRIVERS_FLAGS) -fr$(@D) $<