Skip to content

Commit

Permalink
tools: PCI: Fix installation when make tools/pci_install
Browse files Browse the repository at this point in the history
The commit c9a7078 ("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 <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Acked-by: Kishon Vijay Abraham I <[email protected]>
Cc: Jean-Jacques Hiblot <[email protected]>
Cc: Kishon Vijay Abraham I <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
  • Loading branch information
andy-shev authored and Lorenzo Pieralisi committed Jul 9, 2019
1 parent 81cb420 commit af33663
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/pci/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ ALL_TARGETS := pcitest
ALL_PROGRAMS := $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS))

SCRIPTS := pcitest.sh
ALL_SCRIPTS := $(patsubst %,$(OUTPUT)%,$(SCRIPTS))

all: $(ALL_PROGRAMS)

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit af33663

Please sign in to comment.