[linux-nfc] [neard][PATCH v2 02/11] bootstrap: parse CROSS_COMPILE and set proper configure option
Krzysztof Kozlowski <[email protected]> Wed, 4 Aug 2021 10:42:09 +0200
| Newsgroups | org.01.lists.linux-nfc,dev.linux.lists.oe-linux-nfc |
|---|---|
| Message-ID | <[email protected]> |
Makes cross compiling in CI easier. Signed-off-by: Krzysztof Kozlowski <[email protected]> --- bootstrap-configure | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bootstrap-configure b/bootstrap-configure index 7cb14588f816..0652e3b223b6 100755 --- a/bootstrap-configure +++ b/bootstrap-configure @@ -4,6 +4,11 @@ if [ -f config.status ]; then make maintainer-clean fi +CONFIGURE_CROSS="" +if [ "$CROSS_COMPILE" ]; then + CONFIGURE_CROSS="--host=${CROSS_COMPILE}" +fi + ./bootstrap && \ ./configure --enable-maintainer-mode \ --enable-debug \ @@ -11,4 +16,5 @@ fi --prefix=/usr \ --enable-ese \ --sysconfdir=/etc \ + "$CONFIGURE_CROSS" \ --enable-tools "$@" -- 2.30.2 _______________________________________________ Linux-nfc mailing list -- [email protected] To unsubscribe send an email to [email protected] %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s