blob: db7aa7d379e61c76637fed907b2d1ad04e0bcd1c [file] [log] [blame]
MOD_NAME = ll_pcie
MOD_SUPPRESS_OS_DEP = y
MOD_DEPS = board_selector
ifeq ("$(RELEASE_BUILD)", "y")
EXTRA_CFLAGS += -I$(SRC_DIR) -I$(TOP_DIR)/host_customized/os_abstraction
EXTRA_CFLAGS += -I$(TOP_DIR)/host_customized/os_abstraction/linux -I$(TOP_DIR)/host_driver/config
else
EXTRA_CFLAGS += -I$(SRC_DIR) -I$(TOP_DIR)/common/os_abstraction -I$(TOP_DIR)/host/config
EXTRA_CFLAGS += -I$(TOP_DIR)/common/os_abstraction/linux -I$(TOP_DIR)/host/os_abstraction/$(PLATFORM)
endif
ifeq ("$(ENABLE_TRACE)", "y")
MOD_DEFS += -DTX_ENABLE_EVENT_TRACE
EXTRA_CFLAGS += -I$(TOP_DIR)/common/drivers/maple/fld
ifeq ("$(DEBUG_TRACE_INIT)", "y")
MOD_DEFS += -DDEBUG_TRACE_INIT
endif
endif
ifeq ("$(OS_KERNEL)", "linux")
MOD_TYPE = linux_module
srcs = bcmolt_llpcie.c
else
MOD_TYPE = lib
endif
# If called by linux kernel builder - add include paths manually.
# It is not elegant, but we'll not have many linux modules
ifneq ("$(KBUILD_SRC)", "")
-include $(OUT_DIR_BASE)/Makefile.config.$(MOD_NAME)
endif
USE_LINT = yes