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

Subversion Repositories zipcpu

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

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
mkdir -p ${INSTALL_BASE}/cross-tools
19
mkdir -p ${INSTALL_BASE}/tools/lib
20
mkdir -p ${INSTALL_BASE}/usr/include
21
mkdir -p build-gcc
22
cd build-gcc
23
 
24
AR_FOR_TARGET=${INSTALL_BASE}/cross-tools/zip-ar
25
AS_FOR_TARGET=${INSTALL_BASE}/cross-tools/zip-as
26
LD_FOR_TARGET=${INSTALL_BASE}/cross-tools/zip-ld
27
NM_FOR_TARGET=${INSTALL_BASE}/cross-tools/zip-nm
28
OBJCOPY_FOR_TARGET=${INSTALL_BASE}/cross-tools/zip-objcopy
29
OBJDUMP_FOR_TARGET=${INSTALL_BASE}/cross-tools/zip-objdump
30
READELF_FOR_TARGET=${INSTALL_BASE}/cross-tools/zip-readelf
31
STRIP_FOR_TARGET=${INSTALL_BASE}/cross-tools/zip-strip
32
 
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
        --disable-decimal-float --disable-fixed-point  \
47
        --disable-lto --disable-canonical-system-headers
48
 
49
make
50
make install

powered by: WebSVN 2.1.0

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