blob: c8cc18b7b98de987868a72e2f1dadc208f44a3d8 [file] [log] [blame]
Shad Ansari2f7f9be2017-06-07 13:34:53 -07001# PCIe driver
2# - low-level PCIe driver (send/rx functions)
3#
4MOD_NAME = pcie
5
6ifeq ("$(OS_KERNEL)", "linux")
7MOD_TYPE = linux_lib
8else
9MOD_TYPE = lib
10endif
11
12MOD_DEFS = -DCHECK_PARAM
13#MOD_DEFS += -DHARDWARE_TEST1
14
15ifeq ("$(SUBSYSTEM)", "embedded")
16 MOD_INC_DIRS = $(SRC_DIR) embedded/sys/drv
17else
18 ifneq ("$(RELEASE_BUILD)", "y")
19 MOD_INC_DIRS = $(SRC_DIR) host/driver/$(PLATFORM)/pcie
20 endif
21endif
22
23# If called by linux kernel builder - add include paths manually.
24# It is not elegant, but we'll not have many linux modules
25ifneq ("$(KBUILD_SRC)", "")
26 -include $(OUT_DIR_BASE)/Makefile.config.$(MOD_NAME)
27endif
28
29ifneq ("$(RAW_TRANSPORT_VIA_UDP)", "y")
30 srcs = bcmtr_pcie.c
31endif
32
33USE_LINT = yes
34
35