OpenCores
URL https://opencores.org/ocsvn/zipcpu/zipcpu/trunk

Subversion Repositories zipcpu

[/] [zipcpu/] [trunk/] [sw/] [gcc-script.sh] - Blame information for rev 128

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 103 dgisselq
#!/bin/bash
2
 
3
if [[ ! -d gcc-5.3.0-zip ]]
4
then
5
  tar -xjf ./gcc-5.3.0.tar.bz2 --transform s,gcc-5.3.0,gcc-5.3.0-zip,
6
  cd gcc-5.3.0-zip
7
  patch -p1 <../gcc-5.3.0-specs-1.patch
8
  rm gcc/config/rs6000/sysv4.h.orig
9
  patch -p1 <../gcc-zippatch.patch
10
  cd ..
11
fi
12
 
13
set +h
14
set -e
15
CLFS_HOST="x86_64-cross-linux-gnu"
16
CLFS_TARGET="zip"
17
INSTALL_BASE=`pwd`/install
18 111 dgisselq
mkdir -p ${INSTALL_BASE}/cross-tools/bin
19 103 dgisselq
mkdir -p ${INSTALL_BASE}/tools/lib
20
mkdir -p ${INSTALL_BASE}/usr/include
21
mkdir -p build-gcc
22
cd build-gcc
23
 
24 111 dgisselq
AR_FOR_TARGET=${INSTALL_BASE}/cross-tools/bin/zip-ar
25
AS_FOR_TARGET=${INSTALL_BASE}/cross-tools/bin/zip-as
26
LD_FOR_TARGET=${INSTALL_BASE}/cross-tools/bin/zip-ld
27
NM_FOR_TARGET=${INSTALL_BASE}/cross-tools/bin/zip-nm
28
OBJCOPY_FOR_TARGET=${INSTALL_BASE}/cross-tools/bin/zip-objcopy
29
OBJDUMP_FOR_TARGET=${INSTALL_BASE}/cross-tools/bin/zip-objdump
30
READELF_FOR_TARGET=${INSTALL_BASE}/cross-tools/bin/zip-readelf
31
STRIP_FOR_TARGET=${INSTALL_BASE}/cross-tools/bin/zip-strip
32 103 dgisselq
 
33
AS=as AR=ar ../gcc-5.3.0-zip/configure --with-gas      \
34
        --prefix=${INSTALL_BASE}/cross-tools           \
35
        --target=${CLFS_TARGET} --host=${CLFS_HOST}    \
36
        --with-sysroot=${INSTALL_BASE}                 \
37
        --with-lib-path=${INSTALL_BASE}/tools/lib      \
38
        --with-local-prefix=${INSTALL_BASE}/usr        \
39
        --with-pkgversion=zip-gcc-`date +%y%m%d`       \
40
        --disable-shared --disable-multilib            \
41
        --disable-threads --disable-tls                \
42
        --disable-libada --disable-libsanitizer        \
43
        --disable-libssp --disable-libquadmath         \
44
        --disable-libgomp --disable-libvtv             \
45
        --enable-checking --disable-nls                \
46 104 dgisselq
        --disable-sjlj-exceptions                      \
47 103 dgisselq
        --disable-decimal-float --disable-fixed-point  \
48
        --disable-lto --disable-canonical-system-headers
49
 
50 104 dgisselq
make || true
51
cd gcc; make || true
52
cd ../; make all-libcc1 || true
53
cd libcc1; make || true
54
cd ../gcc; make || true
55
make install || true
56
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.