tools: PCI: Fix installation when `make tools/pci_install`
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 9 Jul 2019 16:13:59 +0000 (19:13 +0300)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 9 Jul 2019 16:31:22 +0000 (17:31 +0100)
The commit c9a707875053 ("tools pci: Do not delete pcitest.sh in 'make clean'")
fixed a `make tools clean` issue and simultaneously brought a regression
to the installation process:

  for script in .../tools/pci/pcitest.sh; do \
install $script .../usr/usr/bin; \
  done
  install: cannot stat '.../tools/pci/pcitest.sh': No such file or directory

Update the install commands to fix the remaining issue.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Cc: Jean-Jacques Hiblot <jjhiblot@ti.com>
Cc: Kishon Vijay Abraham I <kishon@ti.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/pci/Makefile

index 6876ee4bd78ce8f7dac06017b30cb9bc4a9253a4..4b95a517635519bf57a127e6dca2b6496bedc716 100644 (file)
@@ -18,7 +18,6 @@ ALL_TARGETS := pcitest
 ALL_PROGRAMS := $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS))
 
 SCRIPTS := pcitest.sh
-ALL_SCRIPTS := $(patsubst %,$(OUTPUT)%,$(SCRIPTS))
 
 all: $(ALL_PROGRAMS)
 
@@ -47,10 +46,10 @@ clean:
 
 install: $(ALL_PROGRAMS)
        install -d -m 755 $(DESTDIR)$(bindir);          \
-       for program in $(ALL_PROGRAMS) pcitest.sh; do   \
+       for program in $(ALL_PROGRAMS); do              \
                install $$program $(DESTDIR)$(bindir);  \
        done;                                           \
-       for script in $(ALL_SCRIPTS); do                \
+       for script in $(SCRIPTS); do                    \
                install $$script $(DESTDIR)$(bindir);   \
        done