summaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-02-26 17:09:04 -0500
committermidipix <writeonce@midipix.org>2016-02-27 16:07:27 -0500
commitf470355f6cc3c5e176f475111a754cebdedcb297 (patch)
tree04f5806b88a603a50ce508bf85803e80e5b758a0 /configure
parentd81ca41c11d1948b8ef1296ca63e6f82df52eb7c (diff)
downloaddalist-f470355f6cc3c5e176f475111a754cebdedcb297.tar.bz2
dalist-f470355f6cc3c5e176f475111a754cebdedcb297.tar.xz
build system: --toolchain: initial implementation.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index 0fd9f26..2cfe075 100755
--- a/configure
+++ b/configure
@@ -45,6 +45,7 @@ init_vars()
mb_target=$TARGET
mb_arch=$ARCH
mb_compiler=$COMPILER
+ mb_toolchain=$TOOLCHAIN
mb_sysroot=$SYSROOT
mb_cross_compile=$CROSS_COMPILE
mb_shell=$SHELL
@@ -118,6 +119,7 @@ common_defaults()
[ -z "$mb_target" ] && mb_target=$mb_default_target
[ -z "$mb_arch" ] && mb_arch=$mb_default_arch
[ -z "$mb_compiler" ] && mb_compiler=$mb_default_compiler
+ [ -z "$mb_toolchain" ] && mb_toolchain=$mb_default_toolchain
[ -z "$mb_sysroot" ] && mb_sysroot=$mb_default_sysroot
[ -z "$mb_cross_compile" ] && mb_cross_compile=$mb_default_cross_compile
[ -z "$mb_shell" ] && mb_shell=$mb_default_shell
@@ -173,6 +175,11 @@ common_defaults()
mb_native_cc=$mb_compiler
fi
fi
+
+ # toolchain
+ if [ x"$mb_toolchain" = x ]; then
+ mb_toolchain='binutils'
+ fi
}
@@ -276,6 +283,7 @@ config_copy()
-e 's^@target@^'"$mb_target"'^g' \
-e 's^@arch@^'"$mb_arch"'^g' \
-e 's^@compiler@^'"$mb_compiler"'^g' \
+ -e 's^@toolchain@^'"$mb_toolchain"'^g' \
-e 's^@sysroot@^'"$mb_sysroot"'^g' \
-e 's^@cross_compile@^'"$mb_cross_compile"'^g' \
-e 's^@shell@^'"$mb_shell"'^g' \
@@ -394,6 +402,9 @@ for arg ; do
--compiler=*)
mb_compiler=${arg#*=}
;;
+ --toolchain=*)
+ mb_toolchain=${arg#*=}
+ ;;
--sysroot=*)
mb_sysroot=${arg#*=}
;;