aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>2021-07-09 14:21:14 +0200
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>2021-08-02 14:45:57 +0200
commitd1b22d1d1907e0707eb42dbd966711c7a20fad82 (patch)
tree9394aedec65b31145087c0b3109703cb0c0dfd0a
parent90e81fc9a9a44759525304db609563851451a0f0 (diff)
downloadneard-d1b22d1d1907e0707eb42dbd966711c7a20fad82.tar.gz
bootstrap: parse CROSS_COMPILE and set proper configure option
Makes cross compiling in CI easier. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
-rwxr-xr-xbootstrap-configure6
1 files changed, 6 insertions, 0 deletions
diff --git a/bootstrap-configure b/bootstrap-configure
index 7cb1458..0652e3b 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 "$@"