diff options
Diffstat (limited to '')
-rw-r--r-- | tools/testing/selftests/pci_endpoint/.gitignore | 3 | ||||
-rw-r--r-- | tools/testing/selftests/pci_endpoint/Build (renamed from tools/pci/Build) | 0 | ||||
-rw-r--r-- | tools/testing/selftests/pci_endpoint/Makefile (renamed from tools/pci/Makefile) | 10 | ||||
-rw-r--r-- | tools/testing/selftests/pci_endpoint/pcitest.c (renamed from tools/pci/pcitest.c) | 0 | ||||
-rw-r--r-- | tools/testing/selftests/pci_endpoint/pcitest.sh (renamed from tools/pci/pcitest.sh) | 0 |
5 files changed, 8 insertions, 5 deletions
diff --git a/tools/testing/selftests/pci_endpoint/.gitignore b/tools/testing/selftests/pci_endpoint/.gitignore new file mode 100644 index 000000000000..29ab47c48484 --- /dev/null +++ b/tools/testing/selftests/pci_endpoint/.gitignore @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0-only +*.o +pcitest diff --git a/tools/pci/Build b/tools/testing/selftests/pci_endpoint/Build index c375aea21790..c375aea21790 100644 --- a/tools/pci/Build +++ b/tools/testing/selftests/pci_endpoint/Build diff --git a/tools/pci/Makefile b/tools/testing/selftests/pci_endpoint/Makefile index 62d41f1a1e2c..3c6fe18e32cc 100644 --- a/tools/pci/Makefile +++ b/tools/testing/selftests/pci_endpoint/Makefile @@ -1,11 +1,10 @@ # SPDX-License-Identifier: GPL-2.0 -include ../scripts/Makefile.include +include ../../../scripts/Makefile.include bindir ?= /usr/bin ifeq ($(srctree),) -srctree := $(patsubst %/,%,$(dir $(CURDIR))) -srctree := $(patsubst %/,%,$(dir $(srctree))) +srctree := $(patsubst %/tools/testing/selftests/,%,$(dir $(CURDIR))) endif # Do not use make's built-in rules @@ -27,10 +26,11 @@ include $(srctree)/tools/build/Makefile.include # # We need the following to be outside of kernel tree # -$(OUTPUT)include/linux/: ../../include/uapi/linux/ +$(OUTPUT)include/linux/: ../../../../include/uapi/linux/ mkdir -p $(OUTPUT)include/linux/ 2>&1 || true - ln -sf $(CURDIR)/../../include/uapi/linux/pcitest.h $@ + ln -sf $(CURDIR)/../../../../include/uapi/linux/pcitest.h $@ +$(info ${CURDIR}) prepare: $(OUTPUT)include/linux/ PCITEST_IN := $(OUTPUT)pcitest-in.o diff --git a/tools/pci/pcitest.c b/tools/testing/selftests/pci_endpoint/pcitest.c index b96cc118839b..b96cc118839b 100644 --- a/tools/pci/pcitest.c +++ b/tools/testing/selftests/pci_endpoint/pcitest.c diff --git a/tools/pci/pcitest.sh b/tools/testing/selftests/pci_endpoint/pcitest.sh index 770f4d6df34b..770f4d6df34b 100644 --- a/tools/pci/pcitest.sh +++ b/tools/testing/selftests/pci_endpoint/pcitest.sh |