From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] mk: allow renaming of build directories Date: Mon, 23 Apr 2018 01:16:58 +0200 Message-ID: <13986424.9OyRsrj3FE@xps> References: <20180228171156.91077-1-bruce.richardson@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Bruce Richardson Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id A65DAF3E for ; Mon, 23 Apr 2018 01:17:00 +0200 (CEST) In-Reply-To: <20180228171156.91077-1-bruce.richardson@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 28/02/2018 18:11, Bruce Richardson: > 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 > --- > --- a/buildtools/gen-build-mk.sh > +++ b/buildtools/gen-build-mk.sh > -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) \$@" > --- a/mk/rte.sdkconfig.mk > +++ b/mk/rte.sdkconfig.mk > - $(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) > $@ You need to remove the comment about the 2nd argument of the script: # $2: path of build dir (can be relative to $1)