* [Buildroot] Controlling dependencies for package with manual Makefile
@ 2010-07-07 17:22 Matthew Davison
2010-07-08 7:37 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Matthew Davison @ 2010-07-07 17:22 UTC (permalink / raw)
To: buildroot
I understand that for packages using the autotools infrastructure, that
the PACKAGENAME_DEPENDENCIES variable (replacing PACKAGENAME
appropriately) is used to tell buildroot to build these dependencies
first. Setting this variable in a manual Makefile (non-autotools based),
does not appear to work.
Is there a way to force buildroot to build package dependencies first,
without having to convert to an autotools compliant Makefile?
Thanks for your help.
Matt
**********************************************************************
This e-mail is the property of Lantronix. It is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential, or otherwise protected from disclosure. Distribution or copying of this e-mail, or the information contained herein, to anyone other than the intended recipient is prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100707/f1cf9957/attachment.html>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] Controlling dependencies for package with manual Makefile
2010-07-07 17:22 [Buildroot] Controlling dependencies for package with manual Makefile Matthew Davison
@ 2010-07-08 7:37 ` Thomas Petazzoni
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2010-07-08 7:37 UTC (permalink / raw)
To: buildroot
On Wed, 7 Jul 2010 10:22:25 -0700
"Matthew Davison" <matt.davison@lantronix.com> wrote:
> I understand that for packages using the autotools infrastructure, that
> the PACKAGENAME_DEPENDENCIES variable (replacing PACKAGENAME
> appropriately) is used to tell buildroot to build these dependencies
> first. Setting this variable in a manual Makefile (non-autotools based),
> does not appear to work.
>
> Is there a way to force buildroot to build package dependencies first,
> without having to convert to an autotools compliant Makefile?
As you later pointed out, it just a matter of doing:
yourpackage: yourdependency thetargetofyourpackage
However, do you have any reason for not using the AUTOTARGETS or
GENTARGETS infrastructures ? The <pkg>_DEPENDENCIES variable works with
both.
If your package is not autotools-based, you should definitely use the
GENTARGETS infrastructure. Manual Makefiles are no longer accepted in
Buildroot, and we're in the process of convering all existing packages
to GENTARGETS or AUTOTARGETS.
Don't hesitate to ask for any detail if needed.
Thanks!
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] Controlling dependencies for package with manual Makefile
@ 2010-07-07 22:26 Matthew Davison
2010-07-07 22:33 ` Yann E. MORIN
0 siblings, 1 reply; 4+ messages in thread
From: Matthew Davison @ 2010-07-07 22:26 UTC (permalink / raw)
To: buildroot
> I understand that for packages using the autotools infrastructure,
that the PACKAGENAME_DEPENDENCIES variable (replacing PACKAGENAME
appropriately) is used to tell buildroot to build these dependencies
first. Setting this variable in a manual Makefile (non-autotools based),
does not appear to work.
> Is there a way to force buildroot to build package dependencies first,
without having to convert to an autotools compliant Makefile?
It's a bit of a kludge, but I discovered that I can just add the
dependency package name directly into my package's target prerequisites.
So for dependency <lib1>, I can modify my primary package target (in
packagename.mk) to:
packagename: lib1 <existing prerequisites go here>
This is far from ideal, but it does appear to be working.
Matt
**********************************************************************
This e-mail is the property of Lantronix. It is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential, or otherwise protected from disclosure. Distribution or copying of this e-mail, or the information contained herein, to anyone other than the intended recipient is prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100707/0de28b59/attachment.html>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] Controlling dependencies for package with manual Makefile
2010-07-07 22:26 Matthew Davison
@ 2010-07-07 22:33 ` Yann E. MORIN
0 siblings, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2010-07-07 22:33 UTC (permalink / raw)
To: buildroot
Matthew, All,
On Thursday 08 July 2010 00:26:04 Matthew Davison wrote:
> > Is there a way to force buildroot to build package dependencies first,
> > without having to convert to an autotools compliant Makefile?
>
> It's a bit of a kludge, but I discovered that I can just add the
> dependency package name directly into my package's target prerequisites.
> So for dependency <lib1>, I can modify my primary package target (in
> packagename.mk) to:
> packagename: lib1 <existing prerequisites go here>
>
> This is far from ideal, but it does appear to be working.
From the docs, it seems it;s just the thing to do:
http://buildroot.org/buildroot.html#manual-tutorial
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-07-08 7:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-07 17:22 [Buildroot] Controlling dependencies for package with manual Makefile Matthew Davison
2010-07-08 7:37 ` Thomas Petazzoni
-- strict thread matches above, loose matches on Subject: below --
2010-07-07 22:26 Matthew Davison
2010-07-07 22:33 ` Yann E. MORIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox