blob: db7aa7d379e61c76637fed907b2d1ad04e0bcd1c [file] [log] [blame]
Shad Ansari2f7f9be2017-06-07 13:34:53 -07001MOD_NAME = ll_pcie
2MOD_SUPPRESS_OS_DEP = y
3MOD_DEPS = board_selector
4
5ifeq ("$(RELEASE_BUILD)", "y")
6 EXTRA_CFLAGS += -I$(SRC_DIR) -I$(TOP_DIR)/host_customized/os_abstraction
7 EXTRA_CFLAGS += -I$(TOP_DIR)/host_customized/os_abstraction/linux -I$(TOP_DIR)/host_driver/config
8else
9 EXTRA_CFLAGS += -I$(SRC_DIR) -I$(TOP_DIR)/common/os_abstraction -I$(TOP_DIR)/host/config
10 EXTRA_CFLAGS += -I$(TOP_DIR)/common/os_abstraction/linux -I$(TOP_DIR)/host/os_abstraction/$(PLATFORM)
11endif
12
13ifeq ("$(ENABLE_TRACE)", "y")
14 MOD_DEFS += -DTX_ENABLE_EVENT_TRACE
15 EXTRA_CFLAGS += -I$(TOP_DIR)/common/drivers/maple/fld
16 ifeq ("$(DEBUG_TRACE_INIT)", "y")
17 MOD_DEFS += -DDEBUG_TRACE_INIT
18 endif
19endif
20
21ifeq ("$(OS_KERNEL)", "linux")
22 MOD_TYPE = linux_module
23 srcs = bcmolt_llpcie.c
24else
25 MOD_TYPE = lib
26endif
27
28# If called by linux kernel builder - add include paths manually.
29# It is not elegant, but we'll not have many linux modules
30ifneq ("$(KBUILD_SRC)", "")
31 -include $(OUT_DIR_BASE)/Makefile.config.$(MOD_NAME)
32endif
33
34USE_LINT = yes
35
36