Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] crda and m2crypto
@ 2013-02-08  9:03 Dimitrios Siganos
  2013-02-08  9:15 ` Thomas Petazzoni
  2013-02-08 10:17 ` Gustavo Zacarias
  0 siblings, 2 replies; 4+ messages in thread
From: Dimitrios Siganos @ 2013-02-08  9:03 UTC (permalink / raw)
  To: buildroot

Hi,

I am integrating crda with buildroot and I have run into a problem that
I'd like some feedback on.

The crda makefile depends on python-m2crypto to translate a key to a C
file representation. However, when I run the crda makefile using
TARGET_CONFIGURE_OPTS like this:

$(TARGET_CONFIGURE_OPTS) $(MAKE) all_noverify -C $(@D)

It fails.

It fails because TARGET_CONFIGURE_OPTS places the HOST_BIN directory in
the PATH and the python installed there doesn't have the m2crypto
library, which is needed during compilation.

I can workaround the problem by not using TARGET_CONFIGURE_OPTS and
hence not using the python interpreter in HOST_DIR. Instead the
workaround can use the python installed on the host computer where it is
easy to install the m2python library (apt-get install pyhton-m2crypto).
For example:

CC="$(TARGET_CC)" LD="$(TARGET_LD)" \
CPPFLAGS="$(TARGET_CPPFLAGS)" CFLAGS="$(TARGET_CFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" $(MAKE) all_noverify -C $(@D)

Is such a solution acceptable?

In general what is the buildroot approach to such problems? Should all
the resources needed to build a package exist in the HOST_DIR?

Regards,
Dimitris

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

end of thread, other threads:[~2013-02-08 10:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-08  9:03 [Buildroot] crda and m2crypto Dimitrios Siganos
2013-02-08  9:15 ` Thomas Petazzoni
2013-02-08 10:17 ` Gustavo Zacarias
2013-02-08 10:58   ` Dimitrios Siganos

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