mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Different Scenario: how to solve it?
@ 2013-10-22 13:44 Javier Fileiv
  2013-10-22 22:49 ` Marc Kleine-Budde
  0 siblings, 1 reply; 9+ messages in thread
From: Javier Fileiv @ 2013-10-22 13:44 UTC (permalink / raw)
  To: ptxdist


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

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 "echo
TEST" after $(STATEDIR)/MyPackage.compile:  so it will execute that
instruction but it didnt work. Am I able to add my own bash scripts there?


Also, is it possible to get a package from git instead of from the web? How
can I do that?

Thank you very much

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

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

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Different Scenario: how to solve it?
  2013-10-22 13:44 [ptxdist] Different Scenario: how to solve it? Javier Fileiv
@ 2013-10-22 22:49 ` Marc Kleine-Budde
  2013-10-23  7:52   ` Javier Fileiv
  2013-10-23  7:52   ` Javier Fileiv
  0 siblings, 2 replies; 9+ messages in thread
From: Marc Kleine-Budde @ 2013-10-22 22:49 UTC (permalink / raw)
  To: ptxdist; +Cc: Javier Fileiv


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

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

    <PACKAGE>_SUBDIR := 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: 259 bytes --]

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

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Different Scenario: how to solve it?
  2013-10-22 22:49 ` Marc Kleine-Budde
@ 2013-10-23  7:52   ` Javier Fileiv
  2013-10-24  8:55     ` Michael Olbrich
  2013-10-23  7:52   ` Javier Fileiv
  1 sibling, 1 reply; 9+ messages in thread
From: Javier Fileiv @ 2013-10-23  7:52 UTC (permalink / raw)
  To: Marc Kleine-Budde; +Cc: ptxdist


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

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 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
>
>     <PACKAGE>_SUBDIR := src
>
>
Am I able to add my own bash scripts there?
Also, is it possible to get a package from git instead of from the web? How
can I do that?


> 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: Type: text/html, Size: 2171 bytes --]

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

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Different Scenario: how to solve it?
  2013-10-22 22:49 ` Marc Kleine-Budde
  2013-10-23  7:52   ` Javier Fileiv
@ 2013-10-23  7:52   ` Javier Fileiv
  1 sibling, 0 replies; 9+ messages in thread
From: Javier Fileiv @ 2013-10-23  7:52 UTC (permalink / raw)
  To: Marc Kleine-Budde; +Cc: ptxdist


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

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 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
>
>     <PACKAGE>_SUBDIR := src
>


Thank you so much!



> 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: Type: text/html, Size: 1878 bytes --]

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

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Different Scenario: how to solve it?
  2013-10-23  7:52   ` Javier Fileiv
@ 2013-10-24  8:55     ` Michael Olbrich
  2013-10-24  9:51       ` Javier Fileiv
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Olbrich @ 2013-10-24  8:55 UTC (permalink / raw)
  To: ptxdist

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 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
> >
> >     <PACKAGE>_SUBDIR := src
> >
> >
> Am I able to add my own bash scripts there?

I don't understand this.

> Also, is it possible to get a package from git instead of from the web? How
> can I do that?

<PACKAGE>_URL := git://git.some-host.net/foo.git;tag=v42

Note: this only works with fix versions you cannot track a branch.

Michael

-- 
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

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

* Re: [ptxdist] Different Scenario: how to solve it?
  2013-10-24  8:55     ` Michael Olbrich
@ 2013-10-24  9:51       ` Javier Fileiv
  2013-10-24 22:18         ` Michael Olbrich
  0 siblings, 1 reply; 9+ messages in thread
From: Javier Fileiv @ 2013-10-24  9:51 UTC (permalink / raw)
  To: m.olbrich; +Cc: ptxdist


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

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 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
> > >
> > >     <PACKAGE>_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.


>
> > Also, is it possible to get a package from git instead of from the web?
> How
> > can I do that?
>
> <PACKAGE>_URL := git://git.some-host.net/foo.git;tag=v42
>
> Note: this only works with fix versions you cannot track a branch.
>
> Michael
>
> --
> 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
>

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

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

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Different Scenario: how to solve it?
  2013-10-24  9:51       ` Javier Fileiv
@ 2013-10-24 22:18         ` Michael Olbrich
  2013-10-25  7:44           ` Javier Fileiv
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Olbrich @ 2013-10-24 22:18 UTC (permalink / raw)
  To: ptxdist

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 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
> > > >
> > > >     <PACKAGE>_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

-- 
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

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

* Re: [ptxdist] Different Scenario: how to solve it?
  2013-10-24 22:18         ` Michael Olbrich
@ 2013-10-25  7:44           ` Javier Fileiv
  2013-10-25  8:11             ` Javier Fileiv
  0 siblings, 1 reply; 9+ messages in thread
From: Javier Fileiv @ 2013-10-25  7:44 UTC (permalink / raw)
  To: ptxdist


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

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 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
> > > > >
> > > > >     <PACKAGE>_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
>

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

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

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Different Scenario: how to solve it?
  2013-10-25  7:44           ` Javier Fileiv
@ 2013-10-25  8:11             ` Javier Fileiv
  0 siblings, 0 replies; 9+ messages in thread
From: Javier Fileiv @ 2013-10-25  8:11 UTC (permalink / raw)
  To: ptxdist


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

2013/10/25 Javier Fileiv <javier.fileiv@gmail.com>

>
> 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 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
>> > > > >
>> > > > >     <PACKAGE>_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!
>

 Now I see that they add '@' at the beginning of the line!

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

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

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2013-10-25  8:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-22 13:44 [ptxdist] Different Scenario: how to solve it? Javier Fileiv
2013-10-22 22:49 ` Marc Kleine-Budde
2013-10-23  7:52   ` Javier Fileiv
2013-10-24  8:55     ` Michael Olbrich
2013-10-24  9:51       ` Javier Fileiv
2013-10-24 22:18         ` Michael Olbrich
2013-10-25  7:44           ` Javier Fileiv
2013-10-25  8:11             ` Javier Fileiv
2013-10-23  7:52   ` Javier Fileiv

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