summaryrefslogtreecommitdiffstats
path: root/tools/pci
diff options
context:
space:
mode:
authorKishon Vijay Abraham I2019-04-04 13:06:09 +0200
committerLorenzo Pieralisi2019-04-11 11:25:38 +0200
commit993d5fe31c7b7cf7f480c6b4bec3ed23a3a24690 (patch)
treeb9dc6f02bb988d33ec1dd6d4b3e9940cb5c86e01 /tools/pci
parenttools: PCI: Add 'h' in optstring of getopt() (diff)
downloadkernel-qcow2-linux-993d5fe31c7b7cf7f480c6b4bec3ed23a3a24690.tar.gz
kernel-qcow2-linux-993d5fe31c7b7cf7f480c6b4bec3ed23a3a24690.tar.xz
kernel-qcow2-linux-993d5fe31c7b7cf7f480c6b4bec3ed23a3a24690.zip
tools: PCI: Handle pcitest.sh independently from pcitest
Handling pcitest.sh along with pcitest (obtained by compiling pcitest.c) results in pcitest.sh getting removed inadvertently while "make -C tools/pci clean". Fix it by handling pcitest.sh independently of pcitest. Fixes: 1ce78ce09430 ("tools: PCI: Change pcitest compiling process") Reported-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
Diffstat (limited to 'tools/pci')
-rw-r--r--tools/pci/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/pci/Makefile b/tools/pci/Makefile
index 46e4c2f318c9..9b7534457060 100644
--- a/tools/pci/Makefile
+++ b/tools/pci/Makefile
@@ -14,9 +14,12 @@ MAKEFLAGS += -r
CFLAGS += -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include
-ALL_TARGETS := pcitest pcitest.sh
+ALL_TARGETS := pcitest
ALL_PROGRAMS := $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS))
+SCRIPTS := pcitest.sh
+ALL_SCRIPTS := $(patsubst %,$(OUTPUT)%,$(SCRIPTS))
+
all: $(ALL_PROGRAMS)
export srctree OUTPUT CC LD CFLAGS
@@ -46,6 +49,9 @@ install: $(ALL_PROGRAMS)
install -d -m 755 $(DESTDIR)$(bindir); \
for program in $(ALL_PROGRAMS); do \
install $$program $(DESTDIR)$(bindir); \
+ done; \
+ for script in $(ALL_SCRIPTS); do \
+ install $$script $(DESTDIR)$(bindir); \
done
FORCE: