#!/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 . # ############################################################################## # this configuration targets the TalosII systems # 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=() # flags added to the gcc PKGBUILD configure call export GCC_CONFIG_FLAGS=( "--with-cpu=power8" "--with-long-double-128" "--enable-targets=powerpcle-linux") # multilib configuration, uncomment if applicable export MULTILIB=enable export CARCH32="powerpcle" export CHOST32="$CARCH32-unknown-linux-gnu" export PLATFORM32_CFLAGS=("-m32") # configure build directories export TOPBUILDDIR="$startdir/build/$CARCH" export TOPSRCDIR="$startdir"/src export SRCDEST="$startdir"/sources # build options export REGEN_CONFIG_FRAGMENTS=yes