Shad Ansari | 2f7f9be | 2017-06-07 13:34:53 -0700 | [diff] [blame^] | 1 | # PCIe driver |
| 2 | # - low-level PCIe driver (send/rx functions) |
| 3 | # |
| 4 | MOD_NAME = pcie |
| 5 | |
| 6 | ifeq ("$(OS_KERNEL)", "linux") |
| 7 | MOD_TYPE = linux_lib |
| 8 | else |
| 9 | MOD_TYPE = lib |
| 10 | endif |
| 11 | |
| 12 | MOD_DEFS = -DCHECK_PARAM |
| 13 | #MOD_DEFS += -DHARDWARE_TEST1 |
| 14 | |
| 15 | ifeq ("$(SUBSYSTEM)", "embedded") |
| 16 | MOD_INC_DIRS = $(SRC_DIR) embedded/sys/drv |
| 17 | else |
| 18 | ifneq ("$(RELEASE_BUILD)", "y") |
| 19 | MOD_INC_DIRS = $(SRC_DIR) host/driver/$(PLATFORM)/pcie |
| 20 | endif |
| 21 | endif |
| 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 |
| 25 | ifneq ("$(KBUILD_SRC)", "") |
| 26 | -include $(OUT_DIR_BASE)/Makefile.config.$(MOD_NAME) |
| 27 | endif |
| 28 | |
| 29 | ifneq ("$(RAW_TRANSPORT_VIA_UDP)", "y") |
| 30 | srcs = bcmtr_pcie.c |
| 31 | endif |
| 32 | |
| 33 | USE_LINT = yes |
| 34 | |
| 35 | |