2 rm -rf host_x86_64-linux-gnu target_sparc_glibc
4 mkdir host_x86_64-linux-gnu
5 mkdir target_sparc_glibc
7 tar xvf binutils-2.24.
tar.bz2
10 --prefix=/home
/wbx
/smoke
/host_x86_64-linux-gnu \
11 --target=sparc-openadk-linux-gnu \
12 --with-sysroot=/home
/wbx
/smoke
/target_sparc_glibc \
13 --disable-dependency-tracking \
14 --disable-libtool-lock \
18 --disable-libssp --disable-multilib
23 tar xvf gmp-5.1
.3.
tar.xz
25 cp configfsf.guess config.guess
26 PATH
="/home/wbx/smoke/host_x86_64-linux-gnu/usr/bin:$PATH" \
28 --prefix=/home
/wbx
/smoke
/host_x86_64-linux-gnu \
36 tar xvf mpfr-3.1
.2.
tar.xz
39 --prefix=/home
/wbx
/smoke
/host_x86_64-linux-gnu \
40 --with-gmp-build=/home
/wbx
/smoke
/gmp-5.1
.3 \
47 tar xvf mpc-0.8
.2.
tar.gz
50 --prefix=/home
/wbx
/smoke
/host_x86_64-linux-gnu \
51 --with-gmp=/home
/wbx
/smoke
/host_x86_64-linux-gnu \
59 tar xvf libelf-0.8
.13.
tar.gz
62 --prefix=/home
/wbx
/smoke
/host_x86_64-linux-gnu \
70 rm -rf host_x86_64-linux-gnu
/sparc-openadk-linux-gnu
/{lib
,sys-include
}
71 cd host_x86_64-linux-gnu
/sparc-openadk-linux-gnu
/
72 ln -sf ..
/..
/target_sparc_glibc
/usr
/include sys-include
73 ln -sf ..
/..
/target_sparc_glibc
/lib lib
80 PATH
="/home/wbx/smoke/host_x86_64-linux-gnu/bin:$PATH" \
82 --prefix=/home
/wbx
/smoke
/host_x86_64-linux-gnu
--build=x86_64-linux-gnu
--host=x86_64-linux-gnu
--target=sparc-openadk-linux-gnu
--with-gmp=/home
/wbx
/smoke
/host_x86_64-linux-gnu
--with-mpfr=/home
/wbx
/smoke
/host_x86_64-linux-gnu
--with-libelf=/home
/wbx
/smoke
/host_x86_64-linux-gnu
--disable-__cxa_atexit --with-gnu-ld --with-gnu-as --enable-tls --disable-libsanitizer --disable-libitm --disable-libmudflap --disable-libgomp --disable-decimal-float --disable-libstdcxx-pch --disable-ppl-version-check --disable-cloog-version-check --without-system-zlib --without-ppl --without-cloog --without-isl --disable-nls --enable-target-optspace \
83 --enable-languages=c \
89 PATH
="/home/wbx/smoke/host_x86_64-linux-gnu/bin:$PATH" make -j4 all-gcc
94 PATH
="/home/wbx/smoke/host_x86_64-linux-gnu/bin:$PATH" make install-gcc
102 make V
=1 ARCH
=sparc CROSS_COMPILE
="/home/wbx/smoke/host_x86_64-linux-gnu/bin/sparc-openadk-linux-gnu-" CC
="/home/wbx/smoke/host_x86_64-linux-gnu/bin/sparc-openadk-linux-gnu-gcc" HOSTCC
="cc" CONFIG_SHELL
='/bin/bash' HOSTCFLAGS
='-O2 -Wall' INSTALL_HDR_PATH
=/home
/wbx
/smoke
/target_sparc_glibc
/usr headers_install
106 libc_cv_forced_unwind
=yes \
107 libc_cv_cc_with_libunwind
=yes \
108 libc_cv_c_cleanup
=yes \
109 libc_cv_gnu99_inline
=yes \
110 libc_cv_initfini_array
=yes \
111 PATH
="/home/wbx/smoke/host_x86_64-linux-gnu/bin:$PATH" ..
/glibc-2.19
/configure \
112 --prefix=/home
/wbx
/smoke
/target_sparc_glibc
/usr \
113 --with-sysroot=/home
/wbx
/smoke
/target_sparc_glibc \
114 --build=x86_64-linux-gnu
--host=sparc-openadk-linux-gnu
--with-headers=/home
/wbx
/smoke
/target_sparc_glibc
/usr
/include
--disable-sanity-checks --disable-nls --without-cvs --disable-profile --disable-debug --without-gd --disable-nscd --with-__thread --with-tls --enable-kernel="2.6.32" --enable-add-ons
115 PATH
="/home/wbx/smoke/host_x86_64-linux-gnu/bin:$PATH" make cross-compiling
=yes PARALLELMFLAGS
="-j1" install-headers
121 touch target_sparc_glibc
/usr
/include
/gnu
/stubs.h
127 PATH
="/home/wbx/smoke/host_x86_64-linux-gnu/bin:$PATH" ..
/gcc
/configure \
128 --prefix=/home
/wbx
/smoke
/host_x86_64-linux-gnu
--build=x86_64-linux-gnu
--host=x86_64-linux-gnu
--target=sparc-openadk-linux-gnu
--with-gmp=/home
/wbx
/smoke
/host_x86_64-linux-gnu
--with-mpfr=/home
/wbx
/smoke
/host_x86_64-linux-gnu
--with-libelf=/home
/wbx
/smoke
/host_x86_64-linux-gnu
--disable-__cxa_atexit --with-gnu-ld --with-gnu-as --enable-tls --disable-libsanitizer --disable-libitm --disable-libmudflap --disable-libgomp --disable-decimal-float --disable-libstdcxx-pch --disable-ppl-version-check --disable-cloog-version-check --without-system-zlib --without-ppl --without-cloog --without-isl --disable-nls --enable-target-optspace \
129 --disable-biarch --disable-multilib --enable-libssp --enable-lto \
130 --enable-languages=c \
133 --with-sysroot=/home
/wbx
/smoke
/target_sparc_glibc
134 PATH
="/home/wbx/smoke/host_x86_64-linux-gnu/bin:$PATH" make all-gcc
139 PATH
="/home/wbx/smoke/host_x86_64-linux-gnu/bin:$PATH" make all-target-libgcc
144 PATH
="/home/wbx/smoke/host_x86_64-linux-gnu/bin:$PATH" make install-gcc install-target-libgcc
152 PATH
="/home/wbx/smoke/host_x86_64-linux-gnu/bin:$PATH" SHELL
='/bin/bash' BUILD_CC
=cc CFLAGS
="-mcpu=v8 -fwrapv -fno-ident -fomit-frame-pointer -O2 -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables -g3" CC
="/home/wbx/smoke/host_x86_64-linux-gnu/bin/sparc-openadk-linux-gnu-gcc" CXX
="/home/wbx/smoke/host_x86_64-linux-gnu/bin/sparc-openadk-linux-gnu-g++" AR
="/home/wbx/smoke/host_x86_64-linux-gnu/bin/sparc-openadk-linux-gnu-ar" RANLIB
="/home/wbx/smoke/host_x86_64-linux-gnu/bin/sparc-openadk-linux-gnu-ranlib" libc_cv_forced_unwind
=yes libc_cv_cc_with_libunwind
=yes libc_cv_c_cleanup
=yes libc_cv_gnu99_inline
=yes libc_cv_initfini_array
=yes \
153 ..
/glibc-2.19
/configure \
156 --enable-stackguard-randomization \
157 --build=x86_64-linux-gnu
--host=sparc-openadk-linux-gnu
--with-headers=/home
/wbx
/smoke
/target_sparc_glibc
/usr
/include
--disable-sanity-checks --disable-nls --without-cvs --disable-profile --disable-debug --without-gd --disable-nscd --with-__thread --with-tls --enable-kernel="2.6.32" --enable-add-ons
158 PATH
="/home/wbx/smoke/host_x86_64-linux-gnu/bin:$PATH" make all
159 PATH
="/home/wbx/smoke/host_x86_64-linux-gnu/bin:$PATH" make install_root
=/home
/wbx
/smoke
/target_sparc_glibc
install
169 --prefix=/home
/wbx
/smoke
/host_x86_64-linux-gnu
--with-bugurl="http://www.openadk.org/" --build=x86_64-linux-gnu
--host=x86_64-linux-gnu
--target=sparc-openadk-linux-gnu
--with-gmp=/home
/wbx
/smoke
/host_x86_64-linux-gnu
--with-mpfr=/home
/wbx
/smoke
/host_x86_64-linux-gnu
--with-libelf=/home
/wbx
/smoke
/host_x86_64-linux-gnu
--disable-__cxa_atexit --with-gnu-ld --with-gnu-as --enable-tls --disable-libsanitizer --disable-libitm --disable-libmudflap --disable-libgomp --disable-decimal-float --disable-libstdcxx-pch --disable-ppl-version-check --disable-cloog-version-check --without-system-zlib --without-ppl --without-cloog --without-isl --disable-nls --enable-target-optspace \
170 --disable-biarch --disable-multilib --enable-libssp --enable-lto \
171 --enable-languages=c
,c
++ \
172 --with-build-sysroot='${prefix}/../target_sparc_glibc' \
173 --with-sysroot='${prefix}/../target_sparc_glibc' \
188 cat > mini.config
<<EOF
197 CONFIG_NET_VENDOR_AMD=y
199 CONFIG_SERIAL_CONSOLE=y
200 CONFIG_SERIAL_SUNCORE=y
201 CONFIG_SERIAL_SUNZILOG=y
202 CONFIG_SERIAL_SUNZILOG_CONSOLE=y
205 PATH
="/home/wbx/smoke/host_x86_64-linux-gnu/bin:$PATH" make V
=1 ARCH
=sparc CROSS_COMPILE
="/home/wbx/smoke/host_x86_64-linux-gnu/bin/sparc-openadk-linux-gnu-" CC
="/home/wbx/smoke/host_x86_64-linux-gnu/bin/sparc-openadk-linux-gnu-gcc" HOSTCC
="cc" CONFIG_SHELL
='/bin/bash' HOSTCFLAGS
='-O2 -Wall' KCONFIG_ALLCONFIG
=mini.config allnoconfig
206 PATH
="/home/wbx/smoke/host_x86_64-linux-gnu/bin:$PATH" make V
=1 ARCH
=sparc CROSS_COMPILE
="/home/wbx/smoke/host_x86_64-linux-gnu/bin/sparc-openadk-linux-gnu-" CC
="/home/wbx/smoke/host_x86_64-linux-gnu/bin/sparc-openadk-linux-gnu-gcc" HOSTCC
="cc" CONFIG_SHELL
='/bin/bash' HOSTCFLAGS
='-O2 -Wall' -j4 zImage