-
Notifications
You must be signed in to change notification settings - Fork 7
/
build-gcc-cross-pass1.sh
executable file
·53 lines (49 loc) · 1.13 KB
/
build-gcc-cross-pass1.sh
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
49
50
51
52
53
#!/bin/bash -e
#
# Copyright 2015-2016 (c) Yousong Zhou
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
. "$PWD/utils-toolchain.sh"
toolchain_init_pkg gcc
PKG_NAME=gcc-cross-pass1
PKG_DEPENDS="gcc-pass0 binutils-cross"
. "$PWD/env.sh"
toolchain_init_vars_build_cross "$PKG_NAME"
CONFIGURE_ARGS+=(
--build="$TRI_BUILD"
--host="$TRI_HOST"
--target="$TRI_TARGET"
--with-newlib
--without-headers
--without-isl
--without-cloog
--enable-languages=c
--disable-multilib
--disable-nls
--disable-shared
--disable-decimal-float
--disable-threads
--disable-libatomic
--disable-libgomp
--disable-libmpx
--disable-libmudflap
--disable-libquadmath
--disable-libsanitizer
--disable-libssp
--disable-libstdcxx
--disable-libvtv
)
compile() {
# looks like all-target-libgcc depends on all-gcc to
# build gcc/xgcc but the dependency is not present in
# Makefile.tpl so that we cannot make them in a single
# command
cd "$PKG_BUILD_DIR"
build_compile_make 'all-gcc'
build_compile_make 'all-target-libgcc'
}
staging() {
build_staging 'install-gcc' 'install-target-libgcc'
}