Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Managing circular dependencies
@ 2013-08-16 13:12 John OSullivan
  0 siblings, 0 replies; 3+ messages in thread
From: John OSullivan @ 2013-08-16 13:12 UTC (permalink / raw)
  To: buildroot

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>

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

end of thread, other threads:[~2013-08-19 14:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
2013-08-16 13:12 John OSullivan

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