blob: e92c8ca760530bf7d0ae5df2b6c2f67f9f364799 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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
|