aboutsummaryrefslogtreecommitdiff
path: root/configure_binutils.sh
diff options
context:
space:
mode:
authorXavier ASUS <xavi92psx@gmail.com>2019-10-29 01:20:21 +0100
committerXavier ASUS <xavi92psx@gmail.com>2019-10-29 01:20:21 +0100
commit394922bfd2c9182f3268bff664d4c46a1a6590f7 (patch)
treea47bfafc4d2ec8a3b06020ae2570e4837bb6bee6 /configure_binutils.sh
downloadstm8-binutils-gdb-394922bfd2c9182f3268bff664d4c46a1a6590f7.tar.gz
First commit, forked from sourceforge tar
Diffstat (limited to 'configure_binutils.sh')
-rwxr-xr-xconfigure_binutils.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure_binutils.sh b/configure_binutils.sh
new file mode 100755
index 0000000..3c17d01
--- /dev/null
+++ b/configure_binutils.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+cd binutils-2.30
+if [ x$HOST=x"" ]; then
+ _HOST=$(./config.guess)
+else
+ _HOST=$HOST
+fi
+if [ x$PREFIX != x"" ]; then
+ _PREFIX="-prefix=$PREFIX"
+fi
+
+./configure --host=$_HOST --target=stm8-none-elf32 $_PREFIX --program-prefix=stm8-