pci test drv is pci rc drv not pci ep drv

Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
This commit is contained in:
lipengfei28 2024-10-08 18:03:59 +08:00 committed by Xiang Xiao
parent 8efe6cb235
commit bc6cd326b8
3 changed files with 14 additions and 13 deletions

View File

@ -38,6 +38,10 @@ if(CONFIG_PCI)
list(APPEND SRCS pci_uio_ivshmem.c)
endif()
if(CONFIG_PCI_EP_TEST)
list(APPEND SRCS pci_ep_test.c)
endif()
target_sources(drivers PRIVATE ${SRCS})
endif() # CONFIG_PCI
@ -54,10 +58,6 @@ if(CONFIG_PCI_ENDPOINT)
list(APPEND SRCS pci_epf_test.c)
endif() # CONFIG_PCI_EPF_TEST
if(CONFIG_PCI_EP_TEST)
list(APPEND SRCS pci_ep_test.c)
endif() # CONFIG_PCI_ENDPOINT_TEST
target_sources(drivers PRIVATE ${SRCS})
endif() # CONFIG_PCI_ENDPOINT

View File

@ -73,6 +73,11 @@ config PCI_UIO_IVSHMEM_NPOLLWAITERS
default 2
depends on PCI_UIO_IVSHMEM
config PCI_EP_TEST
bool "PCI endpoint test"
---help---
pci endpoint test driver
endif # PCI
menuconfig PCI_ENDPOINT
@ -95,10 +100,5 @@ config PCI_EPF_TEST
---help---
pci epf test driver
config PCI_EP_TEST
bool "PCI endpoint test"
---help---
pci endpoint test driver
endif # PCI_ENDPOINT

View File

@ -37,6 +37,10 @@ ifeq ($(CONFIG_PCI_UIO_IVSHMEM),y)
CSRCS += pci_uio_ivshmem.c
endif
ifeq ($(CONFIG_PCI_EP_TEST),y)
CSRCS += pci_ep_test.c
endif
ifeq ($(CONFIG_PCI_ENDPOINT),y)
CSRCS += pci_epc.c pci_epc_mem.c pci_epf.c
endif
@ -49,13 +53,10 @@ ifeq ($(CONFIG_PCI_EPF_TEST),y)
CSRCS += pci_epf_test.c
endif
ifeq ($(CONFIG_PCI_EP_TEST),y)
CSRCS += pci_ep_test.c
endif
# Include PCI device driver build support
DEPPATH += --dep-path pci
VPATH += :pci
CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)$(DELIM)drivers$(DELIM)pci
endif # CONFIG_PCI