summaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-02-26 17:49:08 -0500
committermidipix <writeonce@midipix.org>2016-02-27 16:20:33 -0500
commit5d406f0629a6aa766e79722f2b0d1c7b4627dc93 (patch)
tree82edf2026247f1a35006eca7c65c364ca5dfe63f /configure
parent2c5c40ac004bb46456156a6066a7dc7cae6076bd (diff)
downloadntcon-5d406f0629a6aa766e79722f2b0d1c7b4627dc93.tar.bz2
ntcon-5d406f0629a6aa766e79722f2b0d1c7b4627dc93.tar.xz
build system: added fallback host recipe.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index 2cfe075..8ddf8b9 100755
--- a/configure
+++ b/configure
@@ -180,6 +180,17 @@ common_defaults()
if [ x"$mb_toolchain" = x ]; then
mb_toolchain='binutils'
fi
+
+ # fallback host recipe
+ if [ x"$mb_host" != x ]; then
+ if ! [ -f $mb_project_dir/sysinfo/host/$mb_host.mk ]; then
+ if [ -z "$mb_cross_compile" ]; then
+ mb_cross_compile=$mb_host-
+ fi
+
+ mb_host='any-host';
+ fi
+ fi
}