Unverified Commit d4620cb4 authored by Karen Xie's avatar Karen Xie Committed by GitHub

Merge pull request #147 from karenx-xilinx/master

XDMA makefile: add option to set xdma config bar number: "make config_bar_num=<N>"
parents 02df466d 1908253a
...@@ -2,6 +2,7 @@ SHELL = /bin/bash ...@@ -2,6 +2,7 @@ SHELL = /bin/bash
# #
# optional makefile parameters: # optional makefile parameters:
# - DEBUG=<0|1>, enable verbose debug print-out in the driver # - DEBUG=<0|1>, enable verbose debug print-out in the driver
# - config_bar_num=, xdma pci config bar number
# - xvc_bar_num=, xvc pci bar # # - xvc_bar_num=, xvc pci bar #
# - xvc_bar_offset=, xvc register base offset # - xvc_bar_offset=, xvc register base offset
# #
...@@ -23,6 +24,9 @@ EXTRA_CFLAGS := -I$(topdir)/include $(XVC_FLAGS) ...@@ -23,6 +24,9 @@ EXTRA_CFLAGS := -I$(topdir)/include $(XVC_FLAGS)
ifeq ($(DEBUG),1) ifeq ($(DEBUG),1)
EXTRA_CFLAGS += -D__LIBXDMA_DEBUG__ EXTRA_CFLAGS += -D__LIBXDMA_DEBUG__
endif endif
ifneq ($(config_bar_num),)
EXTRA_CFLAGS += -DXDMA_CONFIG_BAR_NUM=$(config_bar_num)
endif
#EXTRA_CFLAGS += -DINTERNAL_TESTING #EXTRA_CFLAGS += -DINTERNAL_TESTING
ifneq ($(KERNELRELEASE),) ifneq ($(KERNELRELEASE),)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment