| # PCIe driver |
| # - low-level PCIe driver (send/rx functions) |
| # |
| MOD_NAME = pcie |
| |
| ifeq ("$(OS_KERNEL)", "linux") |
| MOD_TYPE = linux_lib |
| else |
| MOD_TYPE = lib |
| endif |
| |
| MOD_DEFS = -DCHECK_PARAM |
| #MOD_DEFS += -DHARDWARE_TEST1 |
| |
| ifeq ("$(SUBSYSTEM)", "embedded") |
| MOD_INC_DIRS = $(SRC_DIR) embedded/sys/drv |
| else |
| ifneq ("$(RELEASE_BUILD)", "y") |
| MOD_INC_DIRS = $(SRC_DIR) host/driver/$(PLATFORM)/pcie |
| endif |
| 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 |
| |
| ifneq ("$(RAW_TRANSPORT_VIA_UDP)", "y") |
| srcs = bcmtr_pcie.c |
| endif |
| |
| USE_LINT = yes |
| |
| |