Commit 1908253a authored by Karen Xie's avatar Karen Xie

XDMA makefile: add option to set xdma config bar number config_bar_num=<N>

parent 02df466d
...@@ -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