diff options
Diffstat (limited to 'wilink_6_1/platforms/os/common/build')
-rw-r--r-- | wilink_6_1/platforms/os/common/build/linux/Makefile | 135 | ||||
-rw-r--r-- | wilink_6_1/platforms/os/common/build/linux/common.inc | 169 | ||||
-rw-r--r-- | wilink_6_1/platforms/os/common/build/linux/os_sources.inc | 109 |
3 files changed, 413 insertions, 0 deletions
diff --git a/wilink_6_1/platforms/os/common/build/linux/Makefile b/wilink_6_1/platforms/os/common/build/linux/Makefile new file mode 100644 index 0000000..9e92d2a --- /dev/null +++ b/wilink_6_1/platforms/os/common/build/linux/Makefile @@ -0,0 +1,135 @@ + +## +## +## File lists and locations +## +## + +# +# DK_ROOT must be set prior to including common.inc +# +DK_ROOT = ../../../../.. + +# +# Includes common definitions and source file list +# +ifneq ($(KERNELRELEASE),) + include $(M)/$(DK_ROOT)/stad/build/linux/common.inc + include $(M)/$(DK_ROOT)/platforms/os/common/build/linux/os_sources.inc +else + include $(DK_ROOT)/stad/build/linux/common.inc + include $(DK_ROOT)/platforms/os/common/build/linux/os_sources.inc +endif + + +# +# List of platform independent OS files needed to be compiled +# +OS_SRCS = \ + $(DK_ROOT)/platforms/os/common/src/osRgstry.c \ + $(COMSRC)/Ctrl_Interface/CmdHndlr.c \ + +ifeq ($(TI_TRACE_BUFFER),y) + OS_SRCS += $(DK_ROOT)/platforms/os/common/src/tracebuf.c +endif + +OS_OBJS = $(patsubst %.c, %.o, $(OS_SRCS)) + +# +# OS include paths required for compilation. +# +OS_INCS = $(DK_ROOT)/platforms/os/linux/inc $(DK_ROOT)/platforms/os/linux/src $(DK_ROOT)/platforms/os/common/inc + +# +# Location and filename of the OS .lib file created by this makefile. +# +OUTPUT_DIR = $(DK_ROOT)/platforms/os/common/build/linux +OUTPUT_FILE = $(OUTPUT_DIR)/libuadrv.a + + + + + +## +## +## Build process +## +## + +ifneq ($(KERNELRELEASE),) + + + ## + ## + ## This is the kernel build phase - set the appropriate arguments + ## + ## + + # + # Adds the current directory as a prefix to all include directories. + # + EXTRA_CFLAGS += $(addprefix -I$(M)/, $(OS_DK_INCS) $(OS_INCS)) + + # + # Intermediate object name - this should be converted to the appropriate library file + # after the kernel makefile finishes its work. + # + obj-m = tiwlan_drv.o + + # + # List of object files the kernel makefile needs to compile. + # + tiwlan_drv-y = $(OS_OBJS) $(OS_AUXILIARY_LIBS) + + +else # ifneq ($(KERNELRELEASE),) + + +## +## +## This is the regular build phase - act according to the make actions +## +## + +# +# The location of the kernel makefile +# +KERNEL_DIR ?= + + +# +# Build the OS lib file +# +.PHONY: all +all: .depend $(OUTPUT_FILE) + +# +# Prints variables +# +.PHONY: help +help: + @echo Default Compilation: PLATFORM=$(PLATFORM) DEBUG=$(DEBUG) INTR=$(INTR) WSPI=$(WSPI) XCC=$(XCC) EXTRA CFLAGS: $(EXTRA_CFLAGS) + + +# +# Recursively cleans the OS lib object files +# +.PHONY: clean +clean: + $(MAKE) -C $(KERNEL_DIR) M=`pwd` ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) clean + @rm -f *.o .*.o.cmd *~ *.a *.~* core .depend dep $(OS_OBJS) +# +# Causes the library file to get rebuilt +# +.depend: + rm -f $(OUTPUT_FILE) + +# +# Recursively builds the library file +# +$(OUTPUT_FILE): + $(MAKE) -C $(KERNEL_DIR) M=`pwd` ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) modules + @$(CROSS_COMPILE)$(AR) rcs $@ $(OS_OBJS) + + +endif # ifneq ($(KERNELRELEASE),) diff --git a/wilink_6_1/platforms/os/common/build/linux/common.inc b/wilink_6_1/platforms/os/common/build/linux/common.inc new file mode 100644 index 0000000..305e864 --- /dev/null +++ b/wilink_6_1/platforms/os/common/build/linux/common.inc @@ -0,0 +1,169 @@ + + +## +## +## Directory Locations +## +## + +COMMON := $(DK_ROOT)/stad +COMSRC := $(COMMON)/src +TWD := $(DK_ROOT)/TWD +UTILS := $(DK_ROOT)/utils +TESTSRC := $(DK_ROOT)/Test +LINUX_PFORM := $(DK_ROOT)/platforms/os/linux +PLATFORMS := $(DK_ROOT)/platforms +EXT_DRV := $(DK_ROOT)/external_drivers +EXT_APP := $(DK_ROOT)/external_apps +TXN := $(DK_ROOT)/Txn + +## +## +## Make Flags +## +## + +# +# Compile with FW1273 or FW1251 +# +FW ?= 1273 + +# +# Compile with XCC support or not +# +XCC ?= n + +# +# Choose the bus type (n for SDIO, y for WSPI) +# +WSPI ?= n + +# +# Use periodic interrupt +# +INTR ?= y + +# +# Enable or disable debugging +# +DEBUG ?= y +KERNEL_DEBUGGER ?= n +STRIP ?= y +BMTRACE ?= n +# +# Enable or disable OS and init messages +# +INFO ?= n + +# +# 1273 FPGA platform +# +FPGA1273 ?= n + +# +# Enable trace buffer +# +TI_TRACE_BUFFER ?= n + +## +## +## Driver Compilation Directives +## +## +ifeq "$(HOST_PLATFORM)" "omap3430" + DK_DEFINES += -D HOST_PLATFORM_OMAP3430 +endif +ifeq "$(HOST_PLATFORM)" "zoom2" + DK_DEFINES += -D HOST_PLATFORM_ZOOM2 +endif +ifeq "$(HOST_PLATFORM)" "zoom1" + DK_DEFINES += -D HOST_PLATFORM_ZOOM1 +endif + +ifeq ($(XCC),y) + DK_DEFINES += -D XCC_MODULE_INCLUDED +endif + +ifeq ($(INTR),n) + DK_DEFINES += -D PRIODIC_INTERRUPT +endif + +ifeq ($(DEBUG),y) + DK_DEFINES += -D TI_DBG + DK_DEFINES += -D REPORT_LOG + DK_DEFINES += -O2 + DK_DEFINES += -D PRINTF_ROLLBACK +else + DK_DEFINES += -D TI_DBG + DK_DEFINES += -U REPORT_LOG + DK_DEFINES += -O2 +endif +ifeq ($(KERNEL_DEBUGGER),y) + DK_DEFINES += -g -O2 + STRIP = n +endif +export KERNEL_DEBUGGER + +DK_DEFINES += -D __BYTE_ORDER_LITTLE_ENDIAN + +ifeq ($(TI_TRACE_BUFFER),y) + DK_DEFINES += -D TI_TRACE_BUF +endif + +ifeq ($(BMTRACE),y) + DK_DEFINES += -D TIWLAN_BMTRACE +endif + +## +## +## Platform Compilation Directives +## +## + +# +# Bus Driver +# +ifeq ($(WSPI),y) + BUS_DRV = spi + BUS_DRV_REMOVE = sdio + BUS_DRIVER_MODULE = spi.ko + PFORM_DEFINES += -D WSPI +else + BUS_DRV = sdio + BUS_DRV_REMOVE = spi + BUS_DRV = sdio + BUS_DRV_REMOVE = spi + BUS_DRIVER_MODULE = sdio.ko +endif + +ifeq ($(INFO),y) + PFORM_DEFINES += -D OS_INFO_MESSAGES + PFORM_DEFINES += -D INIT_MESSAGES +endif + +PFORM_DEFINES += -D HOST_COMPILE +PFORM_DEFINES += -D FW_RUNNING_AS_STA +PFORM_DEFINES += -D TNETW1273 + +ifeq ($(FPGA1273),y) + PFORM_DEFINES += -D FPGA1273_STAGE_ +endif + +ifeq ($(FULL_ASYNC),y) + PFORM_DEFINES += -D FULL_ASYNC_MODE +endif + +ifeq ($(USE_IRQ_ACTIVE_HIGH),y) + PFORM_DEFINES += -D USE_IRQ_ACTIVE_HIGH +endif + +## +## +## Miscellaneous Compilation Directivcs +## +## + +EXTRA_CFLAGS += -fsigned-char +EXTRA_CFLAGS += -D __LINUX__ +EXTRA_CFLAGS += $(DK_DEFINES) +EXTRA_CFLAGS += $(PFORM_DEFINES) diff --git a/wilink_6_1/platforms/os/common/build/linux/os_sources.inc b/wilink_6_1/platforms/os/common/build/linux/os_sources.inc new file mode 100644 index 0000000..7578954 --- /dev/null +++ b/wilink_6_1/platforms/os/common/build/linux/os_sources.inc @@ -0,0 +1,109 @@ + +#start of OS_DK_INCS_FILES# do not remove or change this comment +OS_DK_INCS_FILES = \ + $(COMMON)/Export_Inc/Ethernet.h \ + $(COMMON)/Export_Inc/TI_IPC_Api.h \ + $(COMMON)/Export_Inc/paramOut.h \ + $(COMMON)/Export_Inc/tiwlnif.h \ + $(COMMON)/Export_Inc/STADExternalIf.h \ + $(COMMON)/Export_Inc/bssTypes.h \ + $(COMMON)/Export_Inc/InternalCmdCodes.h \ + $(COMMON)/Export_Inc/coreDefaultParams.h \ + $(COMMON)/Export_Inc/TI_Results.h \ + $(COMMON)/Export_Inc/privateCmd.h \ + $(COMMON)/Export_Inc/p_buffer.h \ + $(COMSRC)/Sta_Management/mlmeApi.h \ + $(COMSRC)/Sta_Management/healthMonitor.h \ + $(COMSRC)/Connection_Managment/rsnApi.h \ + $(COMSRC)/Ctrl_Interface/DrvMain.h \ + $(COMSRC)/Ctrl_Interface/CmdHndlr.h \ + $(COMSRC)/Ctrl_Interface/CmdDispatcher.h \ + $(COMSRC)/Ctrl_Interface/CmdInterpret.h \ + $(COMSRC)/Ctrl_Interface/EvHandler.h \ + $(COMSRC)/Data_link/txDataQueue_Api.h \ + $(COMSRC)/Data_link/txMgmtQueue_Api.h \ + $(COMSRC)/Ctrl_Interface/DrvMainModules.h \ + $(COMSRC)/Application/roamingMngrTypes.h \ + $(COMSRC)/Application/scanMngrTypes.h \ + $(UTILS)/fsm.h \ + $(UTILS)/report.h \ + $(UTILS)/utils.h \ + $(UTILS)/tidef.h \ + $(UTILS)/rate.h \ + $(UTILS)/802_11Defs.h \ + $(UTILS)/osDot11.h \ + $(UTILS)/commonTypes.h \ + $(UTILS)/CmdInterfaceCodes.h \ + $(UTILS)/tiQosTypes.h \ + $(UTILS)/version.h \ + $(TWD)/TWDriver/TWDriver.h \ + $(TWD)/TWDriver/TWDriverMsr.h \ + $(TWD)/TWDriver/TWDriverRate.h \ + $(TWD)/TWDriver/TWDriverScan.h \ + $(TWD)/TWDriver/Device.h \ + $(TWD)/TWDriver/Device1273.h \ + $(TWD)/Ctrl/Export_Inc/CmdQueue_api.h \ + $(TWD)/MacServices/Export_Inc/MacServices_api.h \ + $(TWD)/FW_Transfer/Export_Inc/rxXfer_api.h \ + $(TWD)/FW_Transfer/Export_Inc/fwDebug_api.h \ + $(TWD)/FirmwareApi/public_descriptors.h \ + $(TWD)/FirmwareApi/public_infoele.h \ + $(TWD)/FirmwareApi/public_types.h \ + $(TWD)/FirmwareApi/public_host_int.h \ + $(TWD)/FirmwareApi/public_radio.h \ + $(TWD)/FirmwareApi/public_commands.h \ + $(TWD)/FirmwareApi/public_event_mbox.h \ + $(TWD)/TwIf/TwIf.h \ + $(TXN)/BusDrv.h \ + $(TXN)/TxnQueue.h \ + $(EXT_APP)/Linux/bmtrace/Export_Inc \ + $(TESTSRC)/debug.h + +#start of OS_DK_INCS_FILES_XCC# do not remove or change this comment +ifeq ($(XCC),y) + OS_DK_INCS_FILES_XCC = \ + $(COMMON)/Export_Inc/XCC/paramOutXCC.h \ + $(UTILS)/XCC/osDot11XCC.h + + OS_DK_INCS_FILES += $(OS_DK_INCS_FILES_XCC) +endif +#end of OS_DK_INCS_FILES_XCC# do not remove or change this comment + +#start of OS_DK_INCS_FILES# do not remove or change this comment + + +#start of OS_DK_INCS# do not remove or change this comment +OS_DK_INCS = \ + $(COMMON)/Export_Inc \ + $(COMSRC)/AirLink_Managment \ + $(COMSRC)/Application \ + $(COMSRC)/Connection_Managment \ + $(COMSRC)/Ctrl_Interface \ + $(COMSRC)/Data_link \ + $(COMSRC)/Sta_Management \ + $(UTILS) \ + $(TWD) \ + $(TWD)/Ctrl \ + $(TWD)/Data_Service/Export_Inc \ + $(TWD)/FW_Transfer/Export_Inc \ + $(TWD)/Ctrl/Export_Inc \ + $(TWD)/MacServices/Export_Inc \ + $(TWD)/FirmwareApi \ + $(TWD)/TwIf \ + $(TWD)/MacServices \ + $(TWD)/TWDriver \ + $(TESTSRC) \ + $(TXN) + +#start of OS_DK_INCS_XCC# do not remove or change this comment +ifeq ($(XCC),y) + OS_DK_INCS_XCC = \ + $(COMMON)/Export_Inc/XCC \ + $(COMSRC)/XCC \ + $(UTILS)/XCC + + OS_DK_INCS += $(OS_DK_INCS_XCC) +endif +#end of OS_DK_INCS_XCC# do not remove or change this comment + +#start of OS_DK_INCS# do not remove or change this comment |