From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ie0-x22a.google.com ([2607:f8b0:4001:c03::22a]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1VZc4Y-0003Hh-KB for ptxdist@pengutronix.de; Fri, 25 Oct 2013 09:44:43 +0200 Received: by mail-ie0-f170.google.com with SMTP id at1so5849101iec.1 for ; Fri, 25 Oct 2013 00:44:35 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20131024221814.GF9225@pengutronix.de> References: <526700F2.30808@pengutronix.de> <20131024085552.GD9225@pengutronix.de> <20131024221814.GF9225@pengutronix.de> Date: Fri, 25 Oct 2013 09:44:35 +0200 Message-ID: From: Javier Fileiv Subject: Re: [ptxdist] Different Scenario: how to solve it? 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="===============0367882905==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============0367882905== Content-Type: multipart/alternative; boundary=047d7bdc0b16f863cd04e98bebf5 --047d7bdc0b16f863cd04e98bebf5 Content-Type: text/plain; charset=ISO-8859-1 2013/10/25 Michael Olbrich > On Thu, Oct 24, 2013 at 11:51:47AM +0200, Javier Fileiv wrote: > > 2013/10/24 Michael Olbrich > > > > > On Wed, Oct 23, 2013 at 09:52:05AM +0200, Javier Fileiv wrote: > > > > 2013/10/23 Marc Kleine-Budde > > > > > On 10/22/2013 03:44 PM, Javier Fileiv wrote: > > > > > > Hello everyone, I have the following scenario. > > > > > > > > > > > > My package is in a folder, where there is another folder inside > which > > > > > > contains the Makefile. No autotools is required. > > > > > > > > > > > > If I create a newpackge with ptxdist newpackage target, it will > > > create > > > > > > the .make and .rule file. But how can I tell to the "compile" > step > > > that > > > > > > my Makefile is in ./src an not in ./ ?? I was trying to add a > simple > > > > > > > > > > define in your .make file > > > > > > > > > > _SUBDIR := src > > > > > > > > > > > > > > Am I able to add my own bash scripts there? > > > > > > I don't understand this. > > > > > > What I meant with that is if I can add my bash instruction on every > section > > to be executed.For example if I call 'ptxdist prepare MY_PACKAGE' and I > > write 'echo "MY OWN PREPARE STRING" ' in the .make file, it will write > out > > "MY OWN PREPARE STRING" on the console output. > > > > Did you get what I try to say? Sorry.. it's my mistake if not. > > The stages are just make targets. You can do anything you want there. > Take a look at e.g. rules/python.make in ptxdist. It does some extra stuff > before calling world/prepare (which then runs configure). > > Michael > > I will !! Thank you very much! > -- > Pengutronix e.K. | | > Industrial Linux Solutions | http://www.pengutronix.de/ | > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | > > -- > ptxdist mailing list > ptxdist@pengutronix.de > --047d7bdc0b16f863cd04e98bebf5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable



2013/10/25 Michael Olbrich <m.olbrich@pengutronix.de>= ;
On Thu, Oct 24, 2013 at 11= :51:47AM +0200, Javier Fileiv wrote:
> 2013/10/24 Michael Olbrich <m.olbrich@pengutronix.de>
>
> > On Wed, Oct 23, 2013 at 09:52:05AM +0200, Javier Fileiv wrote: > > > 2013/10/23 Marc Kleine-Budde <mkl@pengutronix.de>
> > > > On 10/22/2013 03:44 PM, Javier Fileiv wrote:
> > > > > Hello everyone, I have the following scenario.
> > > > >
> > > > > My package is in a folder, where there is another = folder inside which
> > > > > contains the Makefile. No autotools is required. > > > > >
> > > > > If I create a newpackge with ptxdist newpackage ta= rget, it will
> > create
> > > > > the .make and .rule file. But how can I tell to th= e "compile" step
> > that
> > > > > my Makefile is in ./src an not in ./ ?? I was tryi= ng to add a simple
> > > >
> > > > define in your .make file
> > > >
> > > > =A0 =A0 <PACKAGE>_SUBDIR :=3D src
> > > >
> > > >
> > > Am I able to add my own bash scripts there?
> >
> > I don't understand this.
>
>
> What I meant with that is if I can add my bash instruction on every se= ction
> to be executed.For example if =A0I call 'ptxdist prepare MY_PACKAG= E' and I
> write 'echo "MY OWN PREPARE STRING" ' in the .make f= ile, it will write out
> "MY OWN PREPARE STRING" on the console output.
>
> Did you get what I try to say? Sorry.. it's my mistake if not.

The stages are just make targets. You can do anything you want there.=
Take a look at e.g. rules/python.make in ptxdist. It does some extra stuff<= br> before calling world/prepare (which then runs configure).

Michael

I will !! Thank you very much!=A0
--
Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 | =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 |
Industrial Linux Solutions =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 | http://www.pengutronix.de/ = =A0|
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 =A0 =A0|
Amtsgericht Hildesheim, HRA 2686 =A0 =A0 =A0 =A0 =A0 | Fax: =A0 +49-5121-206917-555= 5 |

--
ptxdist mailing list
ptxdist@pengutronix.de

--047d7bdc0b16f863cd04e98bebf5-- --===============0367882905== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0367882905==--