From: David Marchand Date: Fri, 9 May 2014 13:31:01 +0000 (+0200) Subject: mk: add missing scripts directory in install directory X-Git-Tag: spdx-start~10829 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8bdbf2a78f87469c23af1bbd5a8af9b65048e058;p=dpdk.git mk: add missing scripts directory in install directory Trying to install headers for an external library using DPDK exported makefile rte.extshared.mk results in following error : $ cd dpdk $ make install DESTDIR=/home/marchand/myapp/staging/plop T=x86_64-default-linuxapp-gcc $ cd ~/myapp $ make RTE_SDK=/home/marchand/myapp/staging/plop RTE_TARGET=x86_64-default-linuxapp-gcc CC plop.o LD plop.so SYMLINK-FILE include/plop.h /bin/sh: /home/marchand/myapp/staging/plop/scripts/relpath.sh: No such file or directory ln: `/home/marchand/myapp/build/include' and `./include' are the same file make[1]: *** [/home/marchand/myapp/build/include/plop.h] Error 1 make: *** [all] Error 2 This comes from the fact that DPDK only installs its mk/ directory while some makefiles require the scripts/ directory content as well. So install missing files from scripts/. Signed-off-by: David Marchand Acked-by: Thomas Monjalon --- diff --git a/mk/rte.sdkbuild.mk b/mk/rte.sdkbuild.mk index 2975ee413b..d4d6c052e6 100644 --- a/mk/rte.sdkbuild.mk +++ b/mk/rte.sdkbuild.mk @@ -63,7 +63,7 @@ build: $(ROOTDIRS-y) @echo Build complete ifneq ($(DESTDIR),) $(Q)mkdir -p $(DESTDIR) - $(Q)tar -C $(RTE_SDK) -cf - mk | tar -C $(DESTDIR) -x \ + $(Q)tar -C $(RTE_SDK) -cf - mk scripts/*.sh | tar -C $(DESTDIR) -x \ --keep-newer-files --warning=no-ignore-newer -f - $(Q)mkdir -p $(DESTDIR)/`basename $(RTE_OUTPUT)` $(Q)tar -C $(RTE_OUTPUT) -chf - \