From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1YGUPE-0007y0-1q for ptxdist@pengutronix.de; Wed, 28 Jan 2015 16:19:48 +0100 Received: by mail-wi0-f181.google.com with SMTP id fb4so12632620wid.2 for ; Wed, 28 Jan 2015 07:19:41 -0800 (PST) MIME-Version: 1.0 Date: Wed, 28 Jan 2015 16:19:41 +0100 Message-ID: From: Guillermo Rodriguez Garcia Subject: [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="===============0719581430==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: "ptxdist@pengutronix.de" --===============0719581430== Content-Type: multipart/alternative; boundary=f46d043bdc32888c14050db7e665 --f46d043bdc32888c14050db7e665 Content-Type: text/plain; charset=UTF-8 Hello all, 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. Searching around I found some (not many :) mentions to _BUILD_OOT so I though this was what I needed. However I must be doing something wrong. If I set _BUILD_OOT := YES in the .make file, then: 1. Two directories are created: platform/build-target/ where all source files from local_src/ are copied (including the Makefile) platform/build-target/-build, which is initially empty 2. Then actual command executed by ptxdist in the compile stage is make -C platform/build-target/-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 _BUILD_OOT ? Thank you, Guillermo Rodriguez Garcia guille.rodriguez@gmail.com --f46d043bdc32888c14050db7e665 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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.=C2=A0This package is= very simple and uses a standard makefile.

Sea= rching around I found some (not many :) mentions to <PKG>_BUILD_OOT s= o I though this was what I needed.

However I must = be doing something wrong. If I set <PKG>_BUILD_OOT :=3D YES in the &l= t;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 comp= ile stage is make -C platform/build-target/<pkg>-build. But since the= re is no Makefile in this directory, I get an error ("No targets speci= fied and no makefile found")

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

Thank = you,

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