diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2018-05-23 22:34:04 +0200 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2018-05-23 22:34:04 +0200 |
commit | 4e0223ba90e229cfe066194ce2f4189bfcbf9e7a (patch) | |
tree | d0dfece247fba00c40a50a50241a5a70cfe923d6 /config | |
parent | c9d45d267226ecad2d5ac4b91efa8740c3542589 (diff) |
beware of the monster - this commit unifies the separate porting efforts into one source tree
Diffstat (limited to 'config')
-rw-r--r-- | config/config.powerpc64le.sh | 6 | ||||
-rw-r--r-- | config/config.riscv32.sh | 48 | ||||
-rw-r--r-- | config/config.riscv64.sh | 6 | ||||
-rw-r--r-- | config/config.sparc.sh | 48 | ||||
-rw-r--r-- | config/config.template.sh | 4 |
5 files changed, 106 insertions, 6 deletions
diff --git a/config/config.powerpc64le.sh b/config/config.powerpc64le.sh index 8490cd7..a7637e8 100644 --- a/config/config.powerpc64le.sh +++ b/config/config.powerpc64le.sh @@ -19,6 +19,8 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################## +# this configuration targets the TalosII systems + # the target host triplet export CARCH=powerpc64le export CHOST="$CARCH-unknown-linux-gnu" @@ -39,9 +41,9 @@ export GCC_CONFIG_FLAGS=("--with-long-double-128" "--enable-vsx") #export PLATFORM32_CFLAGS=() # configure build directories -export TOPBUILDDIR="$startdir/build/$CHOST" +export TOPBUILDDIR="$startdir/build/$CARCH" export TOPSRCDIR="$startdir"/src -export SRCDEST="$startdir"/build/sources +export SRCDEST="$startdir"/sources # build options export REGEN_CONFIG_FRAGMENTS=yes diff --git a/config/config.riscv32.sh b/config/config.riscv32.sh new file mode 100644 index 0000000..b964407 --- /dev/null +++ b/config/config.riscv32.sh @@ -0,0 +1,48 @@ +#!/bin/bash + ############################################################################## + # parabola-riscv64-bootstrap # + # # + # Copyright (C) 2018 Andreas Grapentin # + # # + # This program is free software: you can redistribute it and/or modify # + # it under the terms of the GNU General Public License as published by # + # the Free Software Foundation, either version 3 of the License, or # + # (at your option) any later version. # + # # + # This program is distributed in the hope that it will be useful, # + # but WITHOUT ANY WARRANTY; without even the implied warranty of # + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # + # GNU General Public License for more details. # + # # + # You should have received a copy of the GNU General Public License # + # along with this program. If not, see <http://www.gnu.org/licenses/>. # + ############################################################################## + +# this configuration targets the PULP platform + +# the target host triplet +export CARCH=riscv32 +export CHOST="$CARCH-unknown-linux-gnu" + +# the equivalent architecture name used by the linux kernel +export LINUX_ARCH=riscv + +# flags added to the default CFLAGS in makepkg.conf +export PLATFORM_CFLAGS=("-march=rv32g" "-mabi=ilp32d") + +# flags added to the gcc PKGBUILD configure call +export GCC_CONFIG_FLAGS=("--with-arch=rv32g" "--with-abi=ilp32d") + +# multilib configuration, uncomment if applicable +#export MULTILIB=enable +#export CARCH32="" +#export CHOST32="" +#export PLATFORM32_CFLAGS=() + +# configure build directories +export TOPBUILDDIR="$startdir/build/$CARCH" +export SRCDEST="$startdir"/sources + +# regenerate config.sub / config.guess during builds +export REGEN_CONFIG_FRAGMENTS=yes + diff --git a/config/config.riscv64.sh b/config/config.riscv64.sh index 665f979..45d14d5 100644 --- a/config/config.riscv64.sh +++ b/config/config.riscv64.sh @@ -18,6 +18,8 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################## +# this configuration targets the HiFive boards + # the target host triplet export CARCH=riscv64 export CHOST="$CARCH-unknown-linux-gnu" @@ -38,9 +40,9 @@ export GCC_CONFIG_FLAGS=("--with-arch=rv64gc" "--with-abi=lp64d") #export PLATFORM32_CFLAGS=() # configure build directories -export TOPBUILDDIR="$startdir/build/$CHOST" +export TOPBUILDDIR="$startdir/build/$CARCH" export TOPSRCDIR="$startdir"/src -export SRCDEST="$startdir"/build/sources +export SRCDEST="$startdir"/sources # build options export REGEN_CONFIG_FRAGMENTS=yes diff --git a/config/config.sparc.sh b/config/config.sparc.sh new file mode 100644 index 0000000..e92c8ca --- /dev/null +++ b/config/config.sparc.sh @@ -0,0 +1,48 @@ +#!/bin/bash + ############################################################################## + # parabola-riscv64-bootstrap # + # # + # Copyright (C) 2018 Andreas Grapentin # + # # + # This program is free software: you can redistribute it and/or modify # + # it under the terms of the GNU General Public License as published by # + # the Free Software Foundation, either version 3 of the License, or # + # (at your option) any later version. # + # # + # This program is distributed in the hope that it will be useful, # + # but WITHOUT ANY WARRANTY; without even the implied warranty of # + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # + # GNU General Public License for more details. # + # # + # You should have received a copy of the GNU General Public License # + # along with this program. If not, see <http://www.gnu.org/licenses/>. # + ############################################################################## + +# this configuration targets the OpenSPARC platform + +# the target host triplet +export CARCH=sparc +export CHOST="$CARCH-unknown-linux-gnu" + +# the equivalent architecture name used by the linux kernel +export LINUX_ARCH=sparc + +# flags added to the default CFLAGS in makepkg.conf +export PLATFORM_CFLAGS=("-mcpu=v9") + +# flags added to the gcc PKGBUILD configure call +export GCC_CONFIG_FLAGS=("--with-cpu=v9") + +# multilib configuration, uncomment if applicable +#export MULTILIB=enable +#export CARCH32="" +#export CHOST32="" +#export PLATFORM32_CFLAGS=() + +# configure build directories +export TOPBUILDDIR="$startdir/build/$CARCH" +export SRCDEST="$startdir"/sources + +# regenerate config.sub / config.guess during builds +export REGEN_CONFIG_FRAGMENTS=yes + diff --git a/config/config.template.sh b/config/config.template.sh index 66e61dd..7260940 100644 --- a/config/config.template.sh +++ b/config/config.template.sh @@ -38,8 +38,8 @@ export GCC_CONFIG_FLAGS=() #export PLATFORM32_CFLAGS=() # configure build directories -export TOPBUILDDIR="$startdir/build/$CHOST" -export SRCDEST="$startdir"/build/sources +export TOPBUILDDIR="$startdir/build/$CARCH" +export SRCDEST="$startdir"/sources # regenerate config.sub / config.guess during builds export REGEN_CONFIG_FRAGMENTS=yes |