diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2018-05-23 11:27:14 +0200 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2018-05-23 11:38:34 +0200 |
commit | c9d45d267226ecad2d5ac4b91efa8740c3542589 (patch) | |
tree | 64ba43ea47126864f8df962cc0b343cabba92eed /config | |
parent | 0377a6e48a00bacd5ee270cfcc9a7372451536a5 (diff) |
modularized config
Diffstat (limited to 'config')
-rw-r--r-- | config/config.powerpc64le.sh | 47 | ||||
-rw-r--r-- | config/config.riscv64.sh | 46 | ||||
-rw-r--r-- | config/config.template.sh | 46 |
3 files changed, 139 insertions, 0 deletions
diff --git a/config/config.powerpc64le.sh b/config/config.powerpc64le.sh new file mode 100644 index 0000000..8490cd7 --- /dev/null +++ b/config/config.powerpc64le.sh @@ -0,0 +1,47 @@ +#!/bin/bash + ############################################################################## + # parabola-riscv64-bootstrap # + # # + # Copyright (C) 2018 Andreas Grapentin # + # Copyright (C) 2018 Bruno CichoĊ # + # # + # 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/>. # + ############################################################################## + +# the target host triplet +export CARCH=powerpc64le +export CHOST="$CARCH-unknown-linux-gnu" + +# the equivalent architecture name used by the linux kernel +export LINUX_ARCH=powerpc + +# flags added to the default CFLAGS in makepkg.conf +export PLATFORM_CFLAGS=("-mabi=elfv2") + +# flags added to the gcc PKGBUILD configure call +export GCC_CONFIG_FLAGS=("--with-long-double-128" "--enable-vsx") + +# multilib configuration, uncomment if applicable +#export MULTILIB=enable +#export CARCH32="" +#export CHOST32="" +#export PLATFORM32_CFLAGS=() + +# configure build directories +export TOPBUILDDIR="$startdir/build/$CHOST" +export TOPSRCDIR="$startdir"/src +export SRCDEST="$startdir"/build/sources + +# build options +export REGEN_CONFIG_FRAGMENTS=yes diff --git a/config/config.riscv64.sh b/config/config.riscv64.sh new file mode 100644 index 0000000..665f979 --- /dev/null +++ b/config/config.riscv64.sh @@ -0,0 +1,46 @@ +#!/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/>. # + ############################################################################## + +# the target host triplet +export CARCH=riscv64 +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=rv64gc" "-mabi=lp64d") + +# flags added to the gcc PKGBUILD configure call +export GCC_CONFIG_FLAGS=("--with-arch=rv64gc" "--with-abi=lp64d") + +# multilib configuration, uncomment if applicable +#export MULTILIB=enable +#export CARCH32="" +#export CHOST32="" +#export PLATFORM32_CFLAGS=() + +# configure build directories +export TOPBUILDDIR="$startdir/build/$CHOST" +export TOPSRCDIR="$startdir"/src +export SRCDEST="$startdir"/build/sources + +# build options +export REGEN_CONFIG_FRAGMENTS=yes diff --git a/config/config.template.sh b/config/config.template.sh new file mode 100644 index 0000000..66e61dd --- /dev/null +++ b/config/config.template.sh @@ -0,0 +1,46 @@ +#!/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/>. # + ############################################################################## + +# the target host triplet +export CARCH= +export CHOST="$CARCH-unknown-linux-gnu" + +# the equivalent architecture name used by the linux kernel +export LINUX_ARCH= + +# flags added to the default CFLAGS in makepkg.conf +export PLATFORM_CFLAGS=() + +# flags added to the gcc PKGBUILD configure call +export GCC_CONFIG_FLAGS=() + +# multilib configuration, uncomment if applicable +#export MULTILIB=enable +#export CARCH32="" +#export CHOST32="" +#export PLATFORM32_CFLAGS=() + +# configure build directories +export TOPBUILDDIR="$startdir/build/$CHOST" +export SRCDEST="$startdir"/build/sources + +# regenerate config.sub / config.guess during builds +export REGEN_CONFIG_FRAGMENTS=yes + |