mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Building local package out of tree
@ 2015-01-28 15:19 Guillermo Rodriguez Garcia
  2015-01-28 15:25 ` Alexander Stein
  0 siblings, 1 reply; 7+ messages in thread
From: Guillermo Rodriguez Garcia @ 2015-01-28 15:19 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1002 bytes --]

Hello all,

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 different
platforms from the same BSP. This package is very simple and uses a
standard makefile.

Searching around I found some (not many :) mentions to <PKG>_BUILD_OOT so I
though this was what I needed.

However I must be doing something wrong. If I set <PKG>_BUILD_OOT := YES in
the <pkg>.make file, then:

1. Two directories are created:
platform/build-target/<pkg> where all source files from local_src/<pkg> are
copied (including the Makefile)
platform/build-target/<pkg>-build, which is initially empty

2. Then actual command executed by ptxdist in the compile stage is make -C
platform/build-target/<pkg>-build. But since there is no Makefile in this
directory, I get an error ("No targets specified and no makefile found")

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

Thank you,

Guillermo Rodriguez Garcia
guille.rodriguez@gmail.com

[-- Attachment #1.2: Type: text/html, Size: 1382 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Building local package out of tree
  2015-01-28 15:19 [ptxdist] Building local package out of tree Guillermo Rodriguez Garcia
@ 2015-01-28 15:25 ` Alexander Stein
  2015-01-28 15:34   ` Guillermo Rodriguez Garcia
  2015-01-28 20:29   ` Alexander Dahl
  0 siblings, 2 replies; 7+ messages in thread
From: Alexander Stein @ 2015-01-28 15:25 UTC (permalink / raw)
  To: ptxdist; +Cc: Guillermo Rodriguez Garcia

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 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 <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.stein@systec-electronic.com
Website: www.systec-electronic.com
 
Managing Director: Dipl.-Phys. Siegmar Schmidt
Commercial registry: Amtsgericht Chemnitz, HRB 28082


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Building local package out of tree
  2015-01-28 15:25 ` Alexander Stein
@ 2015-01-28 15:34   ` Guillermo Rodriguez Garcia
  2015-01-28 20:29   ` Alexander Dahl
  1 sibling, 0 replies; 7+ messages in thread
From: Guillermo Rodriguez Garcia @ 2015-01-28 15:34 UTC (permalink / raw)
  To: Alexander Stein; +Cc: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1884 bytes --]

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/<pkg>. Rather 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 build in a *different* directory
(platform/build-target/<pkg>-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/<package>) 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 <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.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

[-- Attachment #1.2: Type: text/html, Size: 2750 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Building local package out of tree
  2015-01-28 15:25 ` Alexander Stein
  2015-01-28 15:34   ` Guillermo Rodriguez Garcia
@ 2015-01-28 20:29   ` Alexander Dahl
  2015-01-29  8:45     ` Guillermo Rodriguez Garcia
  1 sibling, 1 reply; 7+ messages in thread
From: Alexander Dahl @ 2015-01-28 20:29 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 350 bytes --]

Hei,

On 28.01.2015 16:25, Alexander Stein wrote:
> 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.

+1

Alex


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Building local package out of tree
  2015-01-28 20:29   ` Alexander Dahl
@ 2015-01-29  8:45     ` Guillermo Rodriguez Garcia
  2015-01-29 10:42       ` Marc Kleine-Budde
  0 siblings, 1 reply; 7+ messages in thread
From: Guillermo Rodriguez Garcia @ 2015-01-29  8:45 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 846 bytes --]

Hello,

2015-01-28 21:29 GMT+01:00 Alexander Dahl <post@lespocky.de>:

> Hei,
>
> On 28.01.2015 16:25, Alexander Stein wrote:
> > 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.
>
> +1
>

I appreciate the suggestions :) but this is not what I am looking for.
Specially since ptxdist already knows how to do what I want to do. In fact
it does exactly that when you create a "src-linux-driver" package: The
sources are copied from local_src/<pkg> to a directory
platform/build-target/<pkg> and built there. I just need to figure out how
to make ptxdist do the same for a regular "src-make-prog" package.

Guillermo

[-- Attachment #1.2: Type: text/html, Size: 1353 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Building local package out of tree
  2015-01-29  8:45     ` Guillermo Rodriguez Garcia
@ 2015-01-29 10:42       ` Marc Kleine-Budde
  2015-01-29 11:27         ` Guillermo Rodriguez Garcia
  0 siblings, 1 reply; 7+ messages in thread
From: Marc Kleine-Budde @ 2015-01-29 10:42 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1366 bytes --]

On 01/29/2015 09:45 AM, Guillermo Rodriguez Garcia wrote:
> Hello,
> 
> 2015-01-28 21:29 GMT+01:00 Alexander Dahl <post@lespocky.de
> <mailto:post@lespocky.de>>:
> 
>     Hei,
> 
>     On 28.01.2015 16:25, Alexander Stein wrote:
>     > 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.
> 
>     +1
> 
> 
> I appreciate the suggestions :) but this is not what I am looking for.
> Specially since ptxdist already knows how to do what I want to do. In
> fact it does exactly that when you create a "src-linux-driver" package:
> The sources are copied from local_src/<pkg> to a directory
> platform/build-target/<pkg> and built there. I just need to figure out
> how to make ptxdist do the same for a regular "src-make-prog" package.

Try using

FOO_URL := lndir://$(PTXDIST_WORKSPACE)/local_src
           ^^^^^

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ptxdist] Building local package out of tree
  2015-01-29 10:42       ` Marc Kleine-Budde
@ 2015-01-29 11:27         ` Guillermo Rodriguez Garcia
  0 siblings, 0 replies; 7+ messages in thread
From: Guillermo Rodriguez Garcia @ 2015-01-29 11:27 UTC (permalink / raw)
  To: ptxdist

Hi Markus,

2015-01-29 11:42 GMT+01:00 Marc Kleine-Budde <mkl@pengutronix.de>:
>
> On 01/29/2015 09:45 AM, Guillermo Rodriguez Garcia wrote:
> > Hello,
> >
> > 2015-01-28 21:29 GMT+01:00 Alexander Dahl <post@lespocky.de
> > <mailto:post@lespocky.de>>:
> >
> >     Hei,
> >
> >     On 28.01.2015 16:25, Alexander Stein wrote:
> >     > 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.
> >
> >     +1
> >
> >
> > I appreciate the suggestions :) but this is not what I am looking for.
> > Specially since ptxdist already knows how to do what I want to do. In
> > fact it does exactly that when you create a "src-linux-driver" package:
> > The sources are copied from local_src/<pkg> to a directory
> > platform/build-target/<pkg> and built there. I just need to figure out
> > how to make ptxdist do the same for a regular "src-make-prog" package.
>
> Try using
>
> FOO_URL := lndir://$(PTXDIST_WORKSPACE)/local_src
>            ^^^^^


Works perfect! This is exactly what I was looking for.

Thank you,

Guillermo

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-01-29 11:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-28 15:19 [ptxdist] Building local package out of tree Guillermo Rodriguez Garcia
2015-01-28 15:25 ` Alexander Stein
2015-01-28 15:34   ` Guillermo Rodriguez Garcia
2015-01-28 20:29   ` Alexander Dahl
2015-01-29  8:45     ` Guillermo Rodriguez Garcia
2015-01-29 10:42       ` Marc Kleine-Budde
2015-01-29 11:27         ` Guillermo Rodriguez Garcia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox