From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [RFC] Package infrastructure: make variables or make targets ?
Date: Thu, 29 Oct 2009 16:39:16 +0100 [thread overview]
Message-ID: <20091029163916.49c81f50@surf> (raw)
In-Reply-To: <20091027090628.0aa7b0df@surf>
Hello,
Le Tue, 27 Oct 2009 09:06:28 +0100,
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> a ?crit :
> > I've already started prototyping a solution, but I'm facing a choice
> > on which I'd like to have the community opinion. Usually, I don't
> > like talking without showing patches, but as this choice is fairly
> > intrusive in the design of the new infrastructure, I don't want to
> > start the wrong way.
>
> I've pushed a set of commits to
> http://git.buildroot.net/~tpetazzoni/git/buildroot/log/?h=package-infrastructure
> which shows the current status of my work. Warning: it is currently in
> an ugly state: documentation not updated, the generic package
> infrastructure still contains some autotools-specific stuff, the
> autotools infrastructure ported over the generic infrastructure does
> not work yet.
>
> But it still allows you to see how the .mk files look like for three
> examples : icu, zlib and olsr (randomly choosen).
I've pushed more changes. Since my previous e-mails, the changes are
the following :
* Improved the autotools infrastructure on top of the new generic
package infrastructure. It now works for at least the few packages
I've tested ;
* Improved the generic infrastructure to support registration of
multiple hooks. The old hook mechanism is also kept for backward
compatibility, but if we agree on the new hook mechanism, I'd like
to slowly get rid of the old one ;
* The pkg-config for host build has been rewritten on top of the new
autotools infrastructure. Much simpler. But packages must now depend
on host-pkg-config instead of host-pkgconfig (a commit in my branch
updates all packages) ;
* directfb + directfb-examples build properly, which means that
pkg-config for host, libpng, libts, zlib, freetype, jpeg, directfb
and directfb-examples do work on top of the new infrastructure ;
* I've added a crappy package statistics script, which tries to guess
which package should be converted to autotools, to the new
infrastructure, both for target and host.
A lot more work remains:
* Cleanup
* Documentation
* Testing
I have one naming issue in the generic package infrastructure
(package/Makefile.package.in) on which I'd like to get your input. The
generic package infrastructure let the package specific .mk file
specify what the configure, build and install steps should do, by
defining variables :
<PKG>_CONFIGURE for configure
<PKG>_BUILD for build
for installation, I wanted to use
<PKG>_INSTALL_STAGING for staging installation
<PKG>_INSTALL_TARGET for target installation
but these variables are already existing boolean variables (YES/NO)
that allows the package to specify whether it wants TARGET installation
and/or STAGING installation. So we have a naming conflict, that I
solved by using
<PKG>_INSTALL_STAGING_CMDS
<PKG>_INSTALL_TARGET_CMDS
for the variables that a package specific .mk must define to list the
operations to be performed at staging install and target install. But I
don't like this naming since it isn't coherent with <PKG>_CONFIGURE and
<PKG>_BUILD.
Any suggestion ?
Sincerly,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2009-10-29 15:39 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-25 21:40 [Buildroot] [RFC] Package infrastructure: make variables or make targets ? Thomas Petazzoni
2009-10-25 23:51 ` Lionel Landwerlin
2009-10-26 8:35 ` Thomas Petazzoni
2009-10-27 8:06 ` Thomas Petazzoni
2009-10-29 15:39 ` Thomas Petazzoni [this message]
2009-10-29 17:11 ` H Hartley Sweeten
2009-10-29 21:01 ` Lionel Landwerlin
2009-10-29 17:41 ` Will Newton
2009-11-02 23:24 ` Thomas Petazzoni
2009-11-03 1:14 ` Lionel Landwerlin
2009-11-03 8:15 ` Thomas Petazzoni
2009-11-01 21:26 ` Lionel Landwerlin
2009-11-03 8:14 ` Thomas Petazzoni
2009-11-03 14:01 ` Lionel Landwerlin
2009-10-29 15:42 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091029163916.49c81f50@surf \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox