diff options
author | Bruce Richardson <bruce.richardson@intel.com> | 2018-11-12 12:26:15 +0000 |
---|---|---|
committer | Thomas Monjalon <thomas@monjalon.net> | 2018-11-14 01:46:00 +0100 |
commit | 6927f8dbf3db975cd968287c511122ddccc076bb (patch) | |
tree | a7d8284d0f1dca035c9c1759fe6a4cbb98887811 /buildtools | |
parent | f98a95102dd3a4bcec8a00188103e8272c9f6204 (diff) |
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 'buildtools')
-rwxr-xr-x | buildtools/gen-build-mk.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/buildtools/gen-build-mk.sh b/buildtools/gen-build-mk.sh index c18b205e32..636920b638 100755 --- a/buildtools/gen-build-mk.sh +++ b/buildtools/gen-build-mk.sh @@ -5,7 +5,6 @@ # Auto-generate a Makefile in build directory # Args: # $1: path of project src root -# $2: path of build dir (can be relative to $1) echo "# Automatically generated by gen-build-mk.sh" echo @@ -18,7 +17,7 @@ echo echo "MAKEFLAGS += --no-print-directory" echo echo "all:" -echo " @\$(MAKE) -C $1 O=$2" +echo " @\$(MAKE) -C $1 O=\$(CURDIR)" echo echo "%::" -echo " @\$(MAKE) -C $1 O=$2 \$@" +echo " @\$(MAKE) -C $1 O=\$(CURDIR) \$@" |