From: John OSullivan <john.osullivan@cloudiumsystems.com>
To: buildroot@busybox.net
Subject: [Buildroot] Managing circular dependencies
Date: Fri, 16 Aug 2013 14:12:41 +0100 [thread overview]
Message-ID: <001101ce9a82$4cc6b540$e6541fc0$@osullivan@cloudiumsystems.com> (raw)
Hi,
I have some code which I have inherited and I am in the process of
integrating into a buildroot-2012.05 based build system. The problem is that
package (A) creates a static library, in creating this it references headers
in package (B). Package (B) has a dependency on the static library built by
package (A).
The code I have is a bit of a mess but at the moment I just need to get it
building within buildroot. I can think of a number of ugly hacks but I was
wondering what approach I should take to this in buildroot. I had thought
that the staging area in output/staging might help but I am not sure what
its intended purpose is.
In terms of the package files.
I set packageA.mk to have a dependency with PACKAGEA_DEPENDENCIES =
host-cmake packageB
And also
I set packageB.mk to have a dependency with PACKAGEB_DEPENDENCIES =
host-cmake packageA
As it build package (A) I see a message Package (B) dependency dropped.
I had tried a line like:
#define PACKAGEA_INSTALL_STAGING_CMDS
$(INSTALL) -D -m 0755 $(@)/packagealib.a
$(STAGING_DIR)/usr/lib/packagealib.a
But this just deposits the file in output/host/usr
I had thought that if I got the necessary header files into
output/usr/include or some such location then it might be the basis of a
solution.
Is there a particular approach I need to take here?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130816/b1d2ab4e/attachment.html>
next reply other threads:[~2013-08-16 13:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-16 13:12 John OSullivan [this message]
[not found] <520e26aa.84ff440a.1af4.4538SMTPIN_ADDED_BROKEN@mx.google.com>
2013-08-17 19:56 ` [Buildroot] Managing circular dependencies Thomas De Schampheleire
2013-08-19 14:22 ` John OSullivan
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='001101ce9a82$4cc6b540$e6541fc0$@osullivan@cloudiumsystems.com' \
--to=john.osullivan@cloudiumsystems.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.