From: Dimitrios Siganos <dimitris@siganos.org>
To: buildroot@busybox.net
Subject: [Buildroot] crda and m2crypto
Date: Fri, 08 Feb 2013 09:03:07 +0000 [thread overview]
Message-ID: <5114BF4B.7080007@siganos.org> (raw)
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
next reply other threads:[~2013-02-08 9:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-08 9:03 Dimitrios Siganos [this message]
2013-02-08 9:15 ` [Buildroot] crda and m2crypto Thomas Petazzoni
2013-02-08 10:17 ` Gustavo Zacarias
2013-02-08 10:58 ` Dimitrios Siganos
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=5114BF4B.7080007@siganos.org \
--to=dimitris@siganos.org \
--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.