From 9757759507cf3a30f967cddb4f339fbcb5766cde Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 26 Feb 2016 17:49:08 -0500 Subject: build system: added fallback host recipe. --- configure | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'configure') 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 } -- cgit v1.2.3