From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-we0-x230.google.com ([2a00:1450:400c:c03::230]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1YGUdH-0000hb-IJ for ptxdist@pengutronix.de; Wed, 28 Jan 2015 16:34:21 +0100 Received: by mail-we0-f176.google.com with SMTP id w62so21483004wes.7 for ; Wed, 28 Jan 2015 07:34:13 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <6626243.0kc6lunseE@ws-stein> References: <6626243.0kc6lunseE@ws-stein> Date: Wed, 28 Jan 2015 16:34:13 +0100 Message-ID: From: Guillermo Rodriguez Garcia Subject: Re: [ptxdist] Building local package out of tree Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0066627064==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: Alexander Stein Cc: "ptxdist@pengutronix.de" --===============0066627064== Content-Type: multipart/alternative; boundary=001a1137fb788554a9050db81a8b --001a1137fb788554a9050db81a8b Content-Type: text/plain; charset=UTF-8 Thank you for the feedback. I said "out of tree" but I don't know if this is the correct term here. It is not used in the same sense as in cmake. What I mean is that I don't want the package to be built in local_src/. Rather it should be copied to a new directory (this is being already done when I set _BUILD_OOT -- everything is copied to platform/build-target/) and build there. The only problem is that ptxdist tries to build in a *different* directory (platform/build-target/-build), which is empty. I think there must be a way to do this more or less easily. I really don't want to switch to CMake just for this.. BR, Guillermo 2015-01-28 16:25 GMT+01:00 Alexander Stein < alexander.stein@systec-electronic.com>: > Hi, > > On Wednesday 28 January 2015 16:19:41, Guillermo Rodriguez Garcia wrote: > > I am trying to force ptxdist to build a local package (sources in > > local_src/) out of tree, so that I can build for different > > platforms from the same BSP. This package is very simple and uses a > > standard makefile. > > For building out of tree; I would suggest using cmake. This makes building > OOT quite an easy task. As you only have a simple makefile setting up > CMakeLists.txt is not that hard. > If the build process is more complicated you anyway want to use a build > system like cmake. > > > Do I need to do something else besides setting _BUILD_OOT ? > > IIRC this option enabled by default for cmake packages. > > -- > Dipl.-Inf. Alexander Stein > > SYS TEC electronic GmbH > Am Windrad 2 > 08468 Heinsdorfergrund > Tel.: 03765 38600-1156 > Fax: 03765 38600-4100 > Email: alexander.stein@systec-electronic.com > Website: www.systec-electronic.com > > Managing Director: Dipl.-Phys. Siegmar Schmidt > Commercial registry: Amtsgericht Chemnitz, HRB 28082 > > -- Guillermo Rodriguez Garcia guille.rodriguez@gmail.com --001a1137fb788554a9050db81a8b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thank you for the feedback. I said "out of tree"= but I don't know if this is the correct term here. It is not used in t= he same sense as in cmake.

What I mean is th= at I don't want the package to be built in local_src/<pkg>. Rathe= r it should be copied to a new directory (this is being already done when I= set <PKG>_BUILD_OOT -- everything is copied to platform/build-target= /<pkg>) and build there. The only problem is that ptxdist tries to bu= ild in a *different* directory (platform/build-target/<pkg>-build), w= hich is empty.

I think there must be a= way to do this more or less easily. I really don't want to switch to C= Make just for this..

BR,

Guillermo<= /div>

2015-0= 1-28 16:25 GMT+01:00 Alexander Stein <alexander.stein@= systec-electronic.com>:
Hi,=

On Wednesday 28 January 2015 16:19:41, Guillermo Rodriguez Garcia wrote: > I am trying to force ptxdist to build a local package (sources in
> local_src/<package>) out of tree, so that I can build for differ= ent
> platforms from the same BSP. This package is very simple and uses a > standard makefile.

For building out of tree; I would suggest using cmake. This makes bu= ilding OOT quite an easy task. As you only have a simple makefile setting u= p CMakeLists.txt is not that hard.
If the build process is more complicated you anyway want to use a build sys= tem like cmake.

> Do I need to do something else besides setting <PKG>_BUILD_OOT ?=

IIRC this option enabled by default for cmake packages.

--
Dipl.-Inf. Alexander Stein

SYS TEC electronic GmbH
Am Windrad 2
08468 Heinsdorfergrund
Tel.: 03765 38600-1156
Fax: 03765 38600-4100
Email: alexander.s= tein@systec-electronic.com
Website: www= .systec-electronic.com

Managing Director: Dipl.-Phys. Siegmar Schmidt
Commercial registry: Amtsgericht Chemnitz, HRB 28082




--
Guillermo Rodriguez Garcia
guille.rodriguez@gmail.com
--001a1137fb788554a9050db81a8b-- --===============0066627064== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0066627064==--