From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id B230D5A53 for ; Tue, 13 Oct 2015 15:22:50 +0200 (CEST) Received: from was59-1-82-226-113-214.fbx.proxad.net ([82.226.113.214] helo=[192.168.0.10]) by mail.droids-corp.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84) (envelope-from ) id 1ZlzXt-0002Kr-HK; Tue, 13 Oct 2015 15:23:14 +0200 Message-ID: <561D05A4.2060708@6wind.com> Date: Tue, 13 Oct 2015 15:22:44 +0200 From: Olivier MATZ User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: Francesco Montorsi , dev@dpdk.org References: <1443542682-7088-1-git-send-email-francesco.montorsi@gmail.com> In-Reply-To: <1443542682-7088-1-git-send-email-francesco.montorsi@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] Add error message when trying to use make option T= during build/clean X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Oct 2015 13:22:50 -0000 Hi Francesco, On 09/29/2015 06:04 PM, Francesco Montorsi wrote: > From: Francesco Montorsi > > --- > mk/rte.sdkbuild.mk | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/mk/rte.sdkbuild.mk b/mk/rte.sdkbuild.mk > index 38ec7bd..013aa89 100644 > --- a/mk/rte.sdkbuild.mk > +++ b/mk/rte.sdkbuild.mk > @@ -29,6 +29,12 @@ > # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE > # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. > > +ifdef T > + ifeq ("$(origin T)", "command line") > + $(error "Cannot use T= with a build/clean target") > + endif > +endif > + > # If DESTDIR variable is given, install binary dpdk I tested this patch but it breaks the "make install" command: $ make install T=x86_64-native-linuxapp-gcc make[5]: Nothing to be done for 'depdirs'. Configuration done rte.sdkbuild.mk:34: *** "Cannot use T= with a build/clean target". As the T= argument is given as a command line variable, it is propagated to the "$(MAKE) all" in rte.sdkinstall.mk. So I think it's better to keep the current code as is, except if you have a better idea. Regards, Olivier