summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2018-11-12 12:26:15 +0000
committerThomas Monjalon <thomas@monjalon.net>2018-11-14 01:46:00 +0100
commit6927f8dbf3db975cd968287c511122ddccc076bb (patch)
treea7d8284d0f1dca035c9c1759fe6a4cbb98887811 /mk
parentf98a95102dd3a4bcec8a00188103e8272c9f6204 (diff)
downloaddpdk-next-eventdev-6927f8dbf3db975cd968287c511122ddccc076bb.zip
dpdk-next-eventdev-6927f8dbf3db975cd968287c511122ddccc076bb.tar.gz
dpdk-next-eventdev-6927f8dbf3db975cd968287c511122ddccc076bb.tar.xz
mk: allow renaming of build directories
When building using make, the Makefile in the build directory contained the name of the build directory to be passed as an "O=" parameter to the DPDK SDK makefiles. Unfortunately, this meant that the compilation would always fail if the build directory was renamed. To remove this limitation, we can use $(CURDIR) instead of the directory name. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Diffstat (limited to 'mk')
-rw-r--r--mk/rte.sdkconfig.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/mk/rte.sdkconfig.mk b/mk/rte.sdkconfig.mk
index d90d62c..fa77331 100644
--- a/mk/rte.sdkconfig.mk
+++ b/mk/rte.sdkconfig.mk
@@ -114,8 +114,7 @@ SDK_RELPATH=$(shell $(RTE_SDK)/buildtools/relpath.sh $(abspath $(RTE_SRCDIR)) \
OUTPUT_RELPATH=$(shell $(RTE_SDK)/buildtools/relpath.sh $(abspath $(RTE_OUTPUT)) \
$(abspath $(RTE_SRCDIR)))
$(RTE_OUTPUT)/Makefile: | $(RTE_OUTPUT)
- $(Q)$(RTE_SDK)/buildtools/gen-build-mk.sh $(SDK_RELPATH) $(OUTPUT_RELPATH) \
- > $(RTE_OUTPUT)/Makefile
+ $(Q)$(RTE_SDK)/buildtools/gen-build-mk.sh $(SDK_RELPATH) > $@
# clean installed files, and generate a new config header file
# if NODOTCONF variable is defined, don't try to rebuild .config