* [Buildroot] [2010.02] Package infrastructure ready
@ 2009-11-28 23:36 Thomas Petazzoni
2009-12-07 21:18 ` Thomas Petazzoni
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2009-11-28 23:36 UTC (permalink / raw)
To: buildroot
Hello,
I've now completed the work I wanted to do on the new package
infrastructures, and consider it ready for inclusion into the next
version of Buildroot, 2010.02. I'm therefore asking people to review
the patches and give their opinion and comments.
Unless there are comments, I don't plan to make any further change
before officially sending these patches, right after the 2009.11
release.
The code is available at :
http://git.buildroot.net/~tpetazzoni/git/buildroot/log/?h=package-infrastructure
The documentation has been updated accordingly. I've put online the
corresponding version :
http://free-electrons.com/~thomas/buildroot.html#add_packages
There are a few points on which I'd like to have your input:
* The macro for the generic package infrastructure is named
PKGTARGETS, and for the autotools infrastructure, the macro is named
AUTOTARGETS. I don't particularly like this naming, but what's your
opinion ? Do you have other proposals ? Wouldn't something like
make-generic-package and make-autotools-package be more explicit ?
Too long ?
* The generic infrastructure is in package/Makefile.package.in. Maybe
I should put it into package/Makefile.generic.in. What's your
opinion ?
* I have a more complicated point about how the directory containing
the source code is referenced from the actions listed in the
PKG_xxxx_CMDS variables.
We can use $(@D), which is the directory that contains the stamp
file, so it is the directory that has been extracted by the tarball.
$(@D) is short and works well in most situations.
The situation where $(@D) doesn't work is when the
configure/Makefile stuff is in fact in a subdirectory of the tarball
(and not in the root directory). In this case, the package should
define PKG_SUBDIR = foo, and the package infrastructure will define
PKG_SRCDIR. Therefore, the package should use $$($$(PKG)_SRCDIR)
(double quoting needed otherwise the variable is evaluated before it
is defined). I find this rather ugly.
Therefore, my proposal is :
* In the generic infrastructure, to let the .mk developer handle
this problem. He has to use $(@D) or $(@D)/something.
* In the autotools infrastructure, keep the PKG_SUBDIR mechanism we
add, so that the $$($$(PKG)_SRCDIR) trick is hidden in
Makefile.autotools.in.
Thanks for your input,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread* [Buildroot] [2010.02] Package infrastructure ready
2009-11-28 23:36 [Buildroot] [2010.02] Package infrastructure ready Thomas Petazzoni
@ 2009-12-07 21:18 ` Thomas Petazzoni
2009-12-07 21:33 ` Peter Korsgaard
2009-12-08 10:22 ` Will Newton
0 siblings, 2 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2009-12-07 21:18 UTC (permalink / raw)
To: buildroot
Hello,
Le Sun, 29 Nov 2009 00:36:12 +0100,
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> a ?crit :
> I've now completed the work I wanted to do on the new package
> infrastructures, and consider it ready for inclusion into the next
> version of Buildroot, 2010.02. I'm therefore asking people to review
> the patches and give their opinion and comments.
>
> Unless there are comments, I don't plan to make any further change
> before officially sending these patches, right after the 2009.11
> release.
No comments ?
I will update the patch set for 2010.02 once, but if no news are given,
I'll give up with this patch set.
Cheers,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [2010.02] Package infrastructure ready
2009-12-07 21:18 ` Thomas Petazzoni
@ 2009-12-07 21:33 ` Peter Korsgaard
2009-12-10 18:51 ` Thomas Petazzoni
2009-12-08 10:22 ` Will Newton
1 sibling, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2009-12-07 21:33 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Hi,
Thomas> No comments ?
Sorry, my kids have been ill and I didn't got to read through your
series yet - Give me a day or two and I will.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [2010.02] Package infrastructure ready
2009-12-07 21:33 ` Peter Korsgaard
@ 2009-12-10 18:51 ` Thomas Petazzoni
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2009-12-10 18:51 UTC (permalink / raw)
To: buildroot
Le Mon, 07 Dec 2009 22:33:38 +0100,
Peter Korsgaard <jacmet@uclibc.org> a ?crit :
> Sorry, my kids have been ill and I didn't got to read through your
> series yet - Give me a day or two and I will.
No problem.
The most important thing I need is an answer to the few questions I've
asked in the initial e-mail of this thread (technical details on the
implementation).
Thanks,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [2010.02] Package infrastructure ready
2009-12-07 21:18 ` Thomas Petazzoni
2009-12-07 21:33 ` Peter Korsgaard
@ 2009-12-08 10:22 ` Will Newton
1 sibling, 0 replies; 5+ messages in thread
From: Will Newton @ 2009-12-08 10:22 UTC (permalink / raw)
To: buildroot
On Mon, Dec 7, 2009 at 9:18 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Hello,
>
> Le Sun, 29 Nov 2009 00:36:12 +0100,
> Thomas Petazzoni <thomas.petazzoni@free-electrons.com> a ?crit :
>
>> I've now completed the work I wanted to do on the new package
>> infrastructures, and consider it ready for inclusion into the next
>> version of Buildroot, 2010.02. I'm therefore asking people to review
>> the patches and give their opinion and comments.
>>
>> Unless there are comments, I don't plan to make any further change
>> before officially sending these patches, right after the 2009.11
>> release.
>
> No comments ?
>
> I will update the patch set for 2010.02 once, but if no news are given,
> I'll give up with this patch set.
I must have missed the patch the first time round. I'm in favour of
this change, it cleans up building host packages significantly and
adds some much needed documentation.
Thanks for working on this Thomas!
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-12-10 18:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-28 23:36 [Buildroot] [2010.02] Package infrastructure ready Thomas Petazzoni
2009-12-07 21:18 ` Thomas Petazzoni
2009-12-07 21:33 ` Peter Korsgaard
2009-12-10 18:51 ` Thomas Petazzoni
2009-12-08 10:22 ` Will Newton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox