--- /dev/null
+DongHee Yang <donghee.yang@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+HyunGoo Kang <hyungoo1.kang@samsung.com>
--- /dev/null
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
--- /dev/null
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
--- /dev/null
+#!/bin/sh -e
+
+CURDIR=`pwd`
+SOURCE_TAR_DIR=${CURDIR}/sources
+GCC_SOURCE_TAR_FILE=${SOURCE_TAR_DIR}/gcc-linaro-4.5-2012.01.tar.bz2
+GCC_SOURCE_DIR=${CURDIR}/gcc-linaro-4.5-2012.01
+BINUTILS_SOURCE_TAR_FILE=${SOURCE_TAR_DIR}/binutils-2.22.tar.gz
+BINUTILS_SOURCE_DIR=${CURDIR}/binutils-2.22
+GMP_SOURCE_TAR_FILE=${SOURCE_TAR_DIR}/gmp-5.0.1.tar.gz
+GMP_SOURCE_DIR=${CURDIR}/gmp-5.0.1
+MPFR_SOURCE_TAR_FILE=${SOURCE_TAR_DIR}/mpfr-3.0.1.tar.gz
+MPFR_SOURCE_DIR=${CURDIR}/mpfr-3.0.1
+MPC_SOURCE_TAR_FILE=${SOURCE_TAR_DIR}/mpc-0.9.tar.gz
+MPC_SOURCE_DIR=${CURDIR}/mpc-0.9
+
+if [ "$1" ] ; then
+PREFIX_DIR=$1
+else
+PREFIX_DIR=${CURDIR}/install-arm-linux
+fi
+DEPENDENT_PKGS="quilt texinfo bison flex"
+CI=
+CE=
+CX=
+CN=
+
+color_setting()
+{
+# tput setting when 0 and 1 file descriptor is set and tput exist
+ TPUT="`which tput`"
+ if [ -t 0 -a -t 1 -a -n "$TPUT" ]
+ then
+ CI="`$TPUT setf 6 || true`"
+ CE="`$TPUT setf 4 || true`"
+ CX="`$TPUT setf 2 || true`"
+ CN="`$TPUT sgr0 || true`"
+ fi
+}
+
+log()
+{
+ echo "$CI $@ $CN"
+}
+
+color_setting
+
+
+# checking dependency package
+log "[Checking ${DEPENDENT_PKGS}]"
+for pkg in ${DEPENDENT_PKGS}
+do
+ dpkg -s ${pkg} > /dev/null
+ if [ "x$?" = "x0" ]
+ then
+ log "[checking ${pkg}.. ok]"
+ else
+ log "[checking ${pkg}.. failed]"
+ exit 1
+ fi
+done
+
+
+# clean directories
+log "[remove prefix, build dir]"
+rm -rf ${PREFIX_DIR}
+
+
+# extract/patch GCC
+log "[Extracting GCC source]"
+rm -rf ${GCC_SOURCE_DIR}
+tar xf ${GCC_SOURCE_TAR_FILE}
+if [ -d ${GCC_SOURCE_DIR} ]
+then
+ log "[checking gcc source.. ok]"
+else
+ log "[error: there is not gcc source]"
+ exit 1
+fi
+
+
+# copy mpc/mpfr/gmp
+log "[Copying mpc/mpfr/gmp to gcc source]"
+tar xf ${MPC_SOURCE_TAR_FILE}
+mv ${MPC_SOURCE_DIR} ${GCC_SOURCE_DIR}/mpc
+tar xf ${MPFR_SOURCE_TAR_FILE}
+mv ${MPFR_SOURCE_DIR} ${GCC_SOURCE_DIR}/mpfr
+tar xf ${GMP_SOURCE_TAR_FILE}
+mv ${GMP_SOURCE_DIR} ${GCC_SOURCE_DIR}/gmp
+
+
+# Extract Binutils
+log "[Extracting binutils]"
+rm -rf ${BINUTILS_SOURCE_DIR}
+tar xf ${BINUTILS_SOURCE_TAR_FILE}
+
+if [ -d ${BINUTILS_SOURCE_DIR} ]
+then
+ log "[checking binutils.. ok]"
+else
+ log "[error: there is not binutils source]"
+ exit 1
+fi
+
+# Configure/Build/Install Binutils
+log "[Configuring Binutils...]"
+cd ${BINUTILS_SOURCE_DIR}
+mkdir tmp_build
+cd tmp_build
+../configure \
+ --with-sysroot=${SYSROOT_DIR} \
+ --disable-shared \
+ --enable-plugin \
+ --prefix=${PREFIX_DIR} \
+ --target=arm-linux-gnueabi \
+ --enable-ld=default \
+ --enable-gold
+log "[Building Binutils...]"
+make -j4
+log "[Installing Binutils...]"
+make install
+cd ${CURDIR}
+
+# Configure/Build/Install GCC
+log "[Configuring GCC...]"
+cd ${GCC_SOURCE_DIR}
+mkdir tmp_build
+cd tmp_build
+../configure -v \
+ --enable-languages=c,c++ \
+ --prefix=${PREFIX_DIR} \
+ --enable-shared \
+ --enable-multiarch \
+ --with-multiarch-defaults=i386-linux-gnu \
+ --enable-linker-build-id \
+ --with-system-zlib \
+ --without-included-gettext \
+ --enable-threads=posix \
+ --enable-nls \
+ --disable-bootstrap \
+ --enable-clocale=gnu \
+ --enable-libstdcxx-debug \
+ --enable-libstdcxx-time=yes \
+ --enable-plugin \
+ --enable-gold \
+ --enable-ld=default \
+ --with-plugin-ld=ld.gold \
+ --disable-sjlj-exceptions \
+ --with-arch=armv7-a \
+ --with-tune=cortex-a8 \
+ --with-float=softfp \
+ --with-fpu=vfp \
+ --enable-checking=release \
+ --program-prefix=arm-linux-gnueabi- \
+ --target=arm-linux-gnueabi \
+ --with-sysroot=${SYSROOT_DIR}
+
+log "[Building GCC...]"
+make -j4
+log "[Installing GCC...]"
+make install
+cd ${CURDIR}
--- /dev/null
+#!/bin/sh -e
+
+CURDIR=`pwd`
+SOURCE_TAR_DIR=${CURDIR}/sources
+GCC_SOURCE_TAR_FILE=${SOURCE_TAR_DIR}/gcc-linaro-4.5-2012.01.tar.bz2
+GCC_SOURCE_DIR=${CURDIR}/gcc-linaro-4.5-2012.01
+BINUTILS_SOURCE_TAR_FILE=${SOURCE_TAR_DIR}/binutils-2.22.tar.gz
+BINUTILS_SOURCE_DIR=${CURDIR}/binutils-2.22
+GMP_SOURCE_TAR_FILE=${SOURCE_TAR_DIR}/gmp-5.0.1.tar.gz
+GMP_SOURCE_DIR=${CURDIR}/gmp-5.0.1
+MPFR_SOURCE_TAR_FILE=${SOURCE_TAR_DIR}/mpfr-3.0.1.tar.gz
+MPFR_SOURCE_DIR=${CURDIR}/mpfr-3.0.1
+MPC_SOURCE_TAR_FILE=${SOURCE_TAR_DIR}/mpc-0.9.tar.gz
+MPC_SOURCE_DIR=${CURDIR}/mpc-0.9
+
+if [ "$1" ] ; then
+PREFIX_DIR=$1
+else
+PREFIX_DIR=${CURDIR}/install-arm-windows
+fi
+DEPENDENT_PKGS="quilt texinfo bison flex mingw32"
+CI=
+CE=
+CX=
+CN=
+
+color_setting()
+{
+# tput setting when 0 and 1 file descriptor is set and tput exist
+ TPUT="`which tput`"
+ if [ -t 0 -a -t 1 -a -n "$TPUT" ]
+ then
+ CI="`$TPUT setf 6 || true`"
+ CE="`$TPUT setf 4 || true`"
+ CX="`$TPUT setf 2 || true`"
+ CN="`$TPUT sgr0 || true`"
+ fi
+}
+
+log()
+{
+ echo "$CI $@ $CN"
+}
+
+color_setting
+
+
+# checking dependency package
+log "[Checking ${DEPENDENT_PKGS}]"
+for pkg in ${DEPENDENT_PKGS}
+do
+ dpkg -s ${pkg} > /dev/null
+ if [ "x$?" = "x0" ]
+ then
+ log "[checking ${pkg}.. ok]"
+ else
+ log "[checking ${pkg}.. failed]"
+ exit 1
+ fi
+done
+
+
+# clean directories
+log "[remove prefix, build dir]"
+rm -rf ${PREFIX_DIR}
+
+# Prepare SYSROOT
+log "[Preparing SYSROOT...]"
+log "[Paching SYSROOT...]"
+cd ${SYSROOT_DIR}
+patch -p0 < ${CURDIR}/windows_sysroot.patch
+cd ${CURDIR}
+
+# extract/patch GCC
+log "[Extracting GCC source]"
+rm -rf ${GCC_SOURCE_DIR}
+tar xf ${GCC_SOURCE_TAR_FILE}
+if [ -d ${GCC_SOURCE_DIR} ]
+then
+ log "[checking gcc source.. ok]"
+else
+ log "[error: there is not gcc source]"
+ exit 1
+fi
+
+
+# copy mpc/mpfr/gmp
+log "[Copying mpc/mpfr/gmp to gcc source]"
+tar xf ${MPC_SOURCE_TAR_FILE}
+mv ${MPC_SOURCE_DIR} ${GCC_SOURCE_DIR}/mpc
+tar xf ${MPFR_SOURCE_TAR_FILE}
+mv ${MPFR_SOURCE_DIR} ${GCC_SOURCE_DIR}/mpfr
+tar xf ${GMP_SOURCE_TAR_FILE}
+mv ${GMP_SOURCE_DIR} ${GCC_SOURCE_DIR}/gmp
+
+
+# Extract Binutils
+log "[Extracting binutils]"
+rm -rf ${BINUTILS_SOURCE_DIR}
+tar xf ${BINUTILS_SOURCE_TAR_FILE}
+
+if [ -d ${BINUTILS_SOURCE_DIR} ]
+then
+ log "[checking binutils.. ok]"
+else
+ log "[error: there is not binutils source]"
+ exit 1
+fi
+
+# Configure/Build/Install Binutils
+log "[Configuring Binutils...]"
+cd ${BINUTILS_SOURCE_DIR}
+mkdir tmp_build
+cd tmp_build
+../configure \
+ --with-sysroot=${SYSROOT_DIR} \
+ --disable-shared \
+ --enable-plugin \
+ --prefix=${PREFIX_DIR} \
+ --build=i686-linux-gnu \
+ --host=i586-mingw32msvc \
+ --target=arm-linux-gnueabi \
+ --enable-ld=default
+log "[Building Binutils...]"
+make -j4
+log "[Installing Binutils...]"
+make install
+cd ${CURDIR}
+
+# Configure/Build/Install GCC
+log "[Configuring GCC...]"
+export PATH=${ARM_LINUX_GCC_DIR}/bin:${PATH}
+cd ${GCC_SOURCE_DIR}
+mkdir tmp_build
+cd tmp_build
+../configure -v \
+ --enable-languages=c,c++ \
+ --prefix=${PREFIX_DIR} \
+ --enable-shared \
+ --enable-multiarch \
+ --with-multiarch-defaults=i386-linux-gnu \
+ --enable-linker-build-id \
+ --without-included-gettext \
+ --enable-threads=posix \
+ --enable-nls \
+ --disable-bootstrap \
+ --enable-clocale=gnu \
+ --enable-libstdcxx-debug \
+ --enable-libstdcxx-time=yes \
+ --disable-libstdcxx-pch \
+ --enable-gold \
+ --enable-ld=default \
+ --with-plugin-ld=ld.gold \
+ --disable-sjlj-exceptions \
+ --with-arch=armv7-a \
+ --with-tune=cortex-a8 \
+ --with-float=softfp \
+ --with-fpu=vfp \
+ --enable-checking=release \
+ --program-prefix=arm-linux-gnueabi- \
+ --build=i686-linux-gnu \
+ --host=i586-mingw32msvc \
+ --target=arm-linux-gnueabi \
+ --with-sysroot=${SYSROOT_DIR}
+
+log "[Building GCC...]"
+make -j4
+log "[Installing GCC...]"
+make install
+cd ${CURDIR}
+
+# remove symbolic links
+tar chf temp.tar `basename ${PREFIX_DIR}`
+rm -rf ${PREFIX_DIR}
+tar xf temp.tar
+rm -rf temp.tar
+
--- /dev/null
+#!/bin/sh -e
+
+CURDIR=`pwd`
+SOURCE_TAR_DIR=${CURDIR}/sources
+GCC_SOURCE_TAR_FILE=${SOURCE_TAR_DIR}/gcc-linaro-4.5-2012.01.tar.bz2
+GCC_SOURCE_DIR=${CURDIR}/gcc-linaro-4.5-2012.01
+BINUTILS_SOURCE_TAR_FILE=${SOURCE_TAR_DIR}/binutils-2.22.tar.gz
+BINUTILS_SOURCE_DIR=${CURDIR}/binutils-2.22
+GMP_SOURCE_TAR_FILE=${SOURCE_TAR_DIR}/gmp-5.0.1.tar.gz
+GMP_SOURCE_DIR=${CURDIR}/gmp-5.0.1
+MPFR_SOURCE_TAR_FILE=${SOURCE_TAR_DIR}/mpfr-3.0.1.tar.gz
+MPFR_SOURCE_DIR=${CURDIR}/mpfr-3.0.1
+MPC_SOURCE_TAR_FILE=${SOURCE_TAR_DIR}/mpc-0.9.tar.gz
+MPC_SOURCE_DIR=${CURDIR}/mpc-0.9
+
+if [ "$1" ] ; then
+PREFIX_DIR=$1
+else
+PREFIX_DIR=${CURDIR}/install-i386-linux
+fi
+DEPENDENT_PKGS="quilt texinfo bison flex"
+CI=
+CE=
+CX=
+CN=
+
+color_setting()
+{
+# tput setting when 0 and 1 file descriptor is set and tput exist
+ TPUT="`which tput`"
+ if [ -t 0 -a -t 1 -a -n "$TPUT" ]
+ then
+ CI="`$TPUT setf 6 || true`"
+ CE="`$TPUT setf 4 || true`"
+ CX="`$TPUT setf 2 || true`"
+ CN="`$TPUT sgr0 || true`"
+ fi
+}
+
+log()
+{
+ echo "$CI $@ $CN"
+}
+
+color_setting
+
+
+# checking dependency package
+log "[Checking ${DEPENDENT_PKGS}]"
+for pkg in ${DEPENDENT_PKGS}
+do
+ dpkg -s ${pkg} > /dev/null
+ if [ "x$?" = "x0" ]
+ then
+ log "[checking ${pkg}.. ok]"
+ else
+ log "[checking ${pkg}.. failed]"
+ exit 1
+ fi
+done
+
+
+# clean directories
+log "[remove prefix, build dir]"
+rm -rf ${PREFIX_DIR}
+
+# extract/patch GCC
+log "[Extracting GCC source]"
+rm -rf ${GCC_SOURCE_DIR}
+tar xf ${GCC_SOURCE_TAR_FILE}
+if [ -d ${GCC_SOURCE_DIR} ]
+then
+ log "[checking gcc source.. ok]"
+else
+ log "[error: there is not gcc source]"
+ exit 1
+fi
+
+
+# copy mpc/mpfr/gmp
+log "[Copying mpc/mpfr/gmp to gcc source]"
+tar xf ${MPC_SOURCE_TAR_FILE}
+mv ${MPC_SOURCE_DIR} ${GCC_SOURCE_DIR}/mpc
+tar xf ${MPFR_SOURCE_TAR_FILE}
+mv ${MPFR_SOURCE_DIR} ${GCC_SOURCE_DIR}/mpfr
+tar xf ${GMP_SOURCE_TAR_FILE}
+mv ${GMP_SOURCE_DIR} ${GCC_SOURCE_DIR}/gmp
+
+
+# Extract Binutils
+log "[Extracting binutils]"
+rm -rf ${BINUTILS_SOURCE_DIR}
+tar xf ${BINUTILS_SOURCE_TAR_FILE}
+
+if [ -d ${BINUTILS_SOURCE_DIR} ]
+then
+ log "[checking binutils.. ok]"
+else
+ log "[error: there is not binutils source]"
+ exit 1
+fi
+
+# Configure/Build/Install Binutils
+log "[Configuring Binutils...]"
+cd ${BINUTILS_SOURCE_DIR}
+mkdir tmp_build
+cd tmp_build
+../configure \
+ --with-sysroot=${SYSROOT_DIR} \
+ --disable-shared \
+ --enable-plugin \
+ --prefix=${PREFIX_DIR} \
+ --target=i386-linux-gnueabi \
+ --enable-ld=default \
+ --enable-gold
+log "[Building Binutils...]"
+make -j4
+log "[Installing Binutils...]"
+make install
+cd ${CURDIR}
+
+# Configure/Build/Install GCC
+log "[Configuring GCC...]"
+cd ${GCC_SOURCE_DIR}
+mkdir tmp_build
+cd tmp_build
+../configure -v \
+ --enable-languages=c,c++ \
+ --prefix=${PREFIX_DIR} \
+ --enable-shared \
+ --enable-multiarch \
+ --with-multiarch-defaults=i386-linux-gnu \
+ --enable-linker-build-id \
+ --with-system-zlib \
+ --without-included-gettext \
+ --enable-threads=posix \
+ --disable-bootstrap \
+ --enable-clocale=gnu \
+ --enable-libstdcxx-debug \
+ --enable-libstdcxx-time=yes \
+ --enable-gold \
+ --enable-plugin \
+ --enable-ld=default \
+ --with-plugin-ld=ld.gold \
+ --with-arch-32=i386 \
+ --with-tune=generic \
+ --enable-checking=release \
+ --program-prefix=i386-linux-gnueabi- \
+ --target=i386-linux-gnueabi \
+ --with-sysroot=${SYSROOT_DIR}
+
+log "[Building GCC...]"
+make -j4
+log "[Installing GCC...]"
+make install
+cd ${CURDIR}
--- /dev/null
+#!/bin/sh -e
+
+CURDIR=`pwd`
+SOURCE_TAR_DIR=${CURDIR}/sources
+GCC_SOURCE_TAR_FILE=${SOURCE_TAR_DIR}/gcc-linaro-4.5-2012.01.tar.bz2
+GCC_SOURCE_DIR=${CURDIR}/gcc-linaro-4.5-2012.01
+BINUTILS_SOURCE_TAR_FILE=${SOURCE_TAR_DIR}/binutils-2.22.tar.gz
+BINUTILS_SOURCE_DIR=${CURDIR}/binutils-2.22
+GMP_SOURCE_TAR_FILE=${SOURCE_TAR_DIR}/gmp-5.0.1.tar.gz
+GMP_SOURCE_DIR=${CURDIR}/gmp-5.0.1
+MPFR_SOURCE_TAR_FILE=${SOURCE_TAR_DIR}/mpfr-3.0.1.tar.gz
+MPFR_SOURCE_DIR=${CURDIR}/mpfr-3.0.1
+MPC_SOURCE_TAR_FILE=${SOURCE_TAR_DIR}/mpc-0.9.tar.gz
+MPC_SOURCE_DIR=${CURDIR}/mpc-0.9
+
+if [ "$1" ] ; then
+PREFIX_DIR=$1
+else
+PREFIX_DIR=${CURDIR}/install-i386-windows
+fi
+DEPENDENT_PKGS="quilt texinfo bison flex mingw32"
+CI=
+CE=
+CX=
+CN=
+
+color_setting()
+{
+# tput setting when 0 and 1 file descriptor is set and tput exist
+ TPUT="`which tput`"
+ if [ -t 0 -a -t 1 -a -n "$TPUT" ]
+ then
+ CI="`$TPUT setf 6 || true`"
+ CE="`$TPUT setf 4 || true`"
+ CX="`$TPUT setf 2 || true`"
+ CN="`$TPUT sgr0 || true`"
+ fi
+}
+
+log()
+{
+ echo "$CI $@ $CN"
+}
+
+color_setting
+
+
+# checking dependency package
+log "[Checking ${DEPENDENT_PKGS}]"
+for pkg in ${DEPENDENT_PKGS}
+do
+ dpkg -s ${pkg} > /dev/null
+ if [ "x$?" = "x0" ]
+ then
+ log "[checking ${pkg}.. ok]"
+ else
+ log "[checking ${pkg}.. failed]"
+ exit 1
+ fi
+done
+
+
+# clean directories
+log "[remove prefix, build dir]"
+rm -rf ${PREFIX_DIR}
+
+# Prepare SYSROOT
+log "[Preparing SYSROOT...]"
+log "[Paching SYSROOT...]"
+cd ${SYSROOT_DIR}
+patch -p0 < ${CURDIR}/windows_sysroot.patch
+cd ${CURDIR}
+
+# extract/patch GCC
+log "[Extracting GCC source]"
+rm -rf ${GCC_SOURCE_DIR}
+tar xf ${GCC_SOURCE_TAR_FILE}
+if [ -d ${GCC_SOURCE_DIR} ]
+then
+ log "[checking gcc source.. ok]"
+else
+ log "[error: there is not gcc source]"
+ exit 1
+fi
+
+
+# copy mpc/mpfr/gmp
+log "[Copying mpc/mpfr/gmp to gcc source]"
+tar xf ${MPC_SOURCE_TAR_FILE}
+mv ${MPC_SOURCE_DIR} ${GCC_SOURCE_DIR}/mpc
+tar xf ${MPFR_SOURCE_TAR_FILE}
+mv ${MPFR_SOURCE_DIR} ${GCC_SOURCE_DIR}/mpfr
+tar xf ${GMP_SOURCE_TAR_FILE}
+mv ${GMP_SOURCE_DIR} ${GCC_SOURCE_DIR}/gmp
+
+
+# Extract Binutils
+log "[Extracting binutils]"
+rm -rf ${BINUTILS_SOURCE_DIR}
+tar xf ${BINUTILS_SOURCE_TAR_FILE}
+
+if [ -d ${BINUTILS_SOURCE_DIR} ]
+then
+ log "[checking binutils.. ok]"
+else
+ log "[error: there is not binutils source]"
+ exit 1
+fi
+
+# Configure/Build/Install Binutils
+log "[Configuring Binutils...]"
+cd ${BINUTILS_SOURCE_DIR}
+mkdir tmp_build
+cd tmp_build
+../configure \
+ --with-sysroot=${SYSROOT_DIR} \
+ --disable-shared \
+ --enable-plugin \
+ --prefix=${PREFIX_DIR} \
+ --build=i686-linux-gnu \
+ --host=i586-mingw32msvc \
+ --target=i386-linux-gnueabi \
+ --enable-ld=default
+log "[Building Binutils...]"
+make -j4
+log "[Installing Binutils...]"
+make install
+cd ${CURDIR}
+
+# Configure/Build/Install GCC
+log "[Configuring GCC...]"
+export PATH=${I386_LINUX_GCC_DIR}/bin:${PATH}
+cd ${GCC_SOURCE_DIR}
+mkdir tmp_build
+cd tmp_build
+../configure -v \
+ --enable-languages=c,c++ \
+ --prefix=${PREFIX_DIR} \
+ --enable-shared \
+ --enable-multiarch \
+ --with-multiarch-defaults=i386-linux-gnu \
+ --enable-linker-build-id \
+ --without-included-gettext \
+ --enable-threads=posix \
+ --disable-bootstrap \
+ --enable-clocale=gnu \
+ --enable-libstdcxx-debug \
+ --enable-libstdcxx-time=yes \
+ --disable-libstdcxx-pch \
+ --enable-gold \
+ --enable-ld=default \
+ --with-plugin-ld=ld.gold \
+ --with-arch-32=i386 \
+ --with-tune=generic \
+ --enable-checking=release \
+ --program-prefix=i386-linux-gnueabi- \
+ --build=i686-linux-gnu \
+ --host=i586-mingw32msvc \
+ --target=i386-linux-gnueabi \
+ --with-sysroot=${SYSROOT_DIR}
+
+log "[Building GCC...]"
+make -j4
+log "[Installing GCC...]"
+make install
+cd ${CURDIR}
+
+# remove symbolic links
+tar chf temp.tar `basename ${PREFIX_DIR}`
+rm -rf ${PREFIX_DIR}
+tar xf temp.tar
+rm -rf temp.tar
+
--- /dev/null
+#!/bin/sh -xe
+# clean
+clean()
+{
+ rm -rf $SRCDIR/*.zip
+ rm -rf $SRCDIR/*.tar.gz
+ rm -rf $SRCDIR/install-*
+ rm -rf $SRCDIR/binutils-2.22
+ rm -rf $SRCDIR/gcc-linaro-4.5-2012.01
+ rm -rf $SRCDIR/tizen-device-1.0.base
+ rm -rf $SRCDIR/tizen-emulator-1.0.base
+}
+
+
+# build
+build()
+{
+ # prepare source files
+ SOURCE_TAR_DIR=${SRCDIR}/sources
+ mkdir ${SOURCE_TAR_DIR}
+ cp $ROOTDIR/gcc-linaro-4.5-2012.01.tar.bz2 $SOURCE_TAR_DIR/
+ cp $ROOTDIR/binutils-2.22.tar.gz $SOURCE_TAR_DIR/
+ cp $ROOTDIR/gmp-5.0.1.tar.gz $SOURCE_TAR_DIR/
+ cp $ROOTDIR/mpfr-3.0.1.tar.gz $SOURCE_TAR_DIR/
+ cp $ROOTDIR/mpc-0.9.tar.gz $SOURCE_TAR_DIR/
+
+
+ # prepare
+ if [ ${BUILD_TARGET_OS} = "windows" ] ; then
+ export ARM_LINUX_GCC_DIR=${ROOTDIR}/SDK/build-system/toolchains/arm-linux-gnueabi-gcc-4.5
+ export I386_LINUX_GCC_DIR=${ROOTDIR}/SDK/build-system/toolchains/i386-linux-gnueabi-gcc-4.5
+ cp -rf ${ROOTDIR}/SDK/build-system/rootstraps/tizen-device-1.0.base ${SRCDIR}/
+ cp -rf ${ROOTDIR}/SDK/build-system/rootstraps/tizen-emulator-1.0.base ${SRCDIR}/
+ export SYSROOT_DIR=${SRCDIR}/tizen-device-1.0.base
+ ./build-armel-${BUILD_TARGET_OS}.sh
+ export SYSROOT_DIR=${SRCDIR}/tizen-emulator-1.0.base
+ ./build-i386-${BUILD_TARGET_OS}.sh
+ else
+ export SYSROOT_DIR=${ROOTDIR}/SDK/build-system/rootstraps/tizen-device-1.0.base
+ ./build-armel-${BUILD_TARGET_OS}.sh
+ export SYSROOT_DIR=${ROOTDIR}/SDK/build-system/rootstraps/tizen-emulator-1.0.base
+ ./build-i386-${BUILD_TARGET_OS}.sh
+ fi
+}
+
+# install
+install()
+{
+ INSTALL_DIR=$SRCDIR/package/cross-arm-gcc-4.5.package.${BUILD_TARGET_OS}/data/SDK/build-system/toolchains
+ mkdir -p $INSTALL_DIR
+ mv $SRCDIR/install-arm-${BUILD_TARGET_OS} $INSTALL_DIR/arm-linux-gnueabi-gcc-4.5
+
+ INSTALL_DIR=$SRCDIR/package/cross-i386-gcc-4.5.package.${BUILD_TARGET_OS}/data/SDK/build-system/toolchains
+ mkdir -p $INSTALL_DIR
+ mv $SRCDIR/install-i386-${BUILD_TARGET_OS} $INSTALL_DIR/i386-linux-gnueabi-gcc-4.5
+}
+
+
+
+[ "$1" = "clean" ] && clean
+[ "$1" = "build" ] && build
+[ "$1" = "install" ] && install
+echo "success"
--- /dev/null
+#!/bin/sh -x
+if [ "$WORKSPACE" ]
+then
+ CURDIR=$WORKSPACE/smart-build-interface
+ CURDIR="`echo $CURDIR | tr '\\' '/' | sed 's/C:/\/c/'`"
+ echo $CURDIR
+ cd $CURDIR
+else
+ CURDIR=`pwd`
+fi
+
+rm -rf $CURDIR/package
+mkdir -p $CURDIR/package
+
+#pkginfo file copy
+cp $CURDIR/pkginfo.manifest $CURDIR/package/pkginfo.manifest
+#copy remove script
+cp $CURDIR/remove.bat $CURDIR/package/remove.bat
+#add remove script section for pkginfo.manifest
+echo "Remove-script : remove.bat" >> $CURDIR/package/pkginfo.manifest
+
+VERSION=`cat "$CURDIR"/package/pkginfo.manifest | grep Version | cut -d ':' -f2 | tr -d ' ' `
+
+#init
+rm -rf *.zip
+rm -rf "$CURDIR"/package/data
+mkdir -p "$CURDIR"/package/data/SDK/build-system/bin
+mkdir -p "$CURDIR"/package/data/SDK/build-system/plugins
+
+make clean ; make
+
+#copy
+cp "$CURDIR"/bin/sbi.exe $CURDIR/package/data/SDK/build-system/bin/
+cp "$CURDIR"/bin/sbi_build.exe $CURDIR/package/data/SDK/build-system/bin/
+cp "$CURDIR"/libxml2/usr/bin/*.dll $CURDIR/package/data/SDK/build-system/bin/
+cp "$CURDIR"/sbi-build.bat $CURDIR/package/data/SDK/build-system/bin/
+
+#packaging
+cd "$CURDIR"/package
+zip -r "$CURDIR"/smart-build-interface_${VERSION}_windows.zip *
--- /dev/null
+#!/bin/sh
+
+rm -f ${INSTALLED_PATH}/SDK/build-system/plugins/*_*
--- /dev/null
+:: delims is a TAB followed by a space
+
+SET installed_path=%INSTALLED_PATH%
+DEL %installed_path%\SDK\build-system\plguins\*_*
--- /dev/null
+#!/bin/sh
+
+rm -f ${INSTALLED_PATH}/SDK/build-system/plugins/*_*
--- /dev/null
+:: delims is a TAB followed by a space
+
+SET installed_path=%INSTALLED_PATH%
+DEL %installed_path%\SDK\build-system\plguins\*_*
--- /dev/null
+Package : cross-arm-gcc-4.5
+Version : 0.20.13
+OS : linux
+Build-host-os : linux
+Install-dependency :
+Build-dependency : rootstrap-device.base [linux]
+Source-dependency : gcc-linaro-4.5-2012.01.tar.bz2 [linux], binutils-2.22.tar.gz [linux], gmp-5.0.1.tar.gz [linux], mpc-0.9.tar.gz [linux], mpfr-3.0.1.tar.gz [linux]
+Source : gcc-4.5
+Maintainer : Taejun Ha <taejun.ha@samsung.com>, Jiil Hyoun <jiil.hyoun@samsung.com>, Donghyuk Yang <donghyuk.yang@samsung.com>, Donghee Yang<donghee.yang@samsung.com>
+Description : gnu compiler 4.5 for Tizen SDK
+
+Package : cross-arm-gcc-4.5
+Version : 0.20.13
+OS : windows
+Build-host-os : linux
+Install-dependency :
+Build-dependency : rootstrap-device.base [linux]
+Source-dependency : gcc-linaro-4.5-2012.01.tar.bz2 [linux], binutils-2.22.tar.gz [linux], gmp-5.0.1.tar.gz [linux], mpc-0.9.tar.gz [linux], mpfr-3.0.1.tar.gz [linux]
+Source : gcc-4.5
+Maintainer : Taejun Ha <taejun.ha@samsung.com>, Jiil Hyoun <jiil.hyoun@samsung.com>, Donghyuk Yang <donghyuk.yang@samsung.com>, Donghee Yang<donghee.yang@samsung.com>
+Description : gnu compiler 4.5 for Tizen SDK
+
+Package : cross-i386-gcc-4.5
+Version : 0.20.13
+OS : linux
+Build-host-os : linux
+Install-dependency :
+Build-dependency : rootstrap-emulator.base [linux]
+Source-dependency : gcc-linaro-4.5-2012.01.tar.bz2 [linux], binutils-2.22.tar.gz [linux], gmp-5.0.1.tar.gz [linux], mpc-0.9.tar.gz [linux], mpfr-3.0.1.tar.gz [linux]
+Source : gcc-4.5
+Maintainer : Taejun Ha <taejun.ha@samsung.com>, Jiil Hyoun <jiil.hyoun@samsung.com>, Donghyuk Yang <donghyuk.yang@samsung.com>, Donghee Yang<donghee.yang@samsung.com>
+Description : gnu compiler 4.5 for Tizen SDK
+
+Package : cross-i386-gcc-4.5
+Version : 0.20.13
+OS : windows
+Build-host-os : linux
+Install-dependency :
+Build-dependency : rootstrap-emulator.base [linux]
+Source-dependency : gcc-linaro-4.5-2012.01.tar.bz2 [linux], binutils-2.22.tar.gz [linux], gmp-5.0.1.tar.gz [linux], mpc-0.9.tar.gz [linux], mpfr-3.0.1.tar.gz [linux]
+Source : gcc-4.5
+Maintainer : Taejun Ha <taejun.ha@samsung.com>, Jiil Hyoun <jiil.hyoun@samsung.com>, Donghyuk Yang <donghyuk.yang@samsung.com>, Donghee Yang<donghee.yang@samsung.com>
+Description : gnu compiler 4.5 for Tizen SDK
--- /dev/null
+svn-updates.diff -p1
+gcc-textdomain.diff -p1
+gcc-driver-extra-langs.diff -p1
+gcc-hash-style-both.diff -p1
+libstdc++-pic.diff -p1
+libstdc++-doclink.diff -p1
+libstdc++-man-3cxx.diff -p1
+libstdc++-test-installed.diff -p1
+libjava-stacktrace.diff -p1
+libjava-subdir.diff -p1
+libjava-jnipath.diff -p1
+libjava-sjlj.diff -p1
+libjava-disable-plugin.diff -p1
+alpha-no-ev4-directive.diff -p1
+boehm-gc-getnprocs.diff -p1
+note-gnu-stack.diff -p1
+m68k-allow-gnu99.diff -p1
+libgomp-omp_h-multilib.diff -p1
+sparc-force-cpu.diff -p1
+pr41848.diff -p1
+gcc-plugindir.diff -p1
+gcc-java-align-data.diff -p1
+linux-atomic-builtin-expect.diff -p1
+pr24619.diff -p1
+pr45979.diff -p1
+no_fpr_in_libgcc.diff -p1
+pr44364.diff -p1
+pr48183.diff -p1
+pr48325.diff -p1
+pr48226.diff -p1
+gcc-dw2-loc-tracking.diff -p1
+libobjc-gc.diff -p1
+pr40521-sequel.diff -p1
+libjava-armel-unwind.diff -p1
+gcc-ice-hack.diff -p1
+gcc-ice-apport.diff -p1
+gcc-arm-earlyclobbers.diff -p1
+libjava-disable-static.diff -p1
+libjava-fixed-symlinks.diff -p1
+libstdc++-arm-wno-abi.diff -p1
+libstdc++-no-testsuite.diff -p1
+ada-mips.diff -p1
+arm-unbreak-eabi-armv4t.diff -p1
+gcc-multiarch.diff -p1
+mips-triarch.diff -p1
+libjava-nobiarch-check.diff -p1
+config-ml.diff -p1
+s390-biarch.diff -p1
+gcc-powerpc-nof.diff -p1
+gcc-powerpc-undef.diff -p1
+gcc-no-add-needed.diff -p1
+gcc-as-needed.diff -p1
+mips-fix-loongson2f-nop.diff -p1
+gcc-system-root.diff -p1
+armhf-triplet-backport.diff -p1
--- /dev/null
+svn-updates.diff -p1
+gcc-textdomain.diff -p1
+gcc-driver-extra-langs.diff -p1
+gcc-hash-style-both.diff -p1
+libstdc++-pic.diff -p1
+libstdc++-doclink.diff -p1
+libstdc++-man-3cxx.diff -p1
+libstdc++-test-installed.diff -p1
+libjava-stacktrace.diff -p1
+libjava-subdir.diff -p1
+libjava-jnipath.diff -p1
+libjava-sjlj.diff -p1
+libjava-disable-plugin.diff -p1
+alpha-no-ev4-directive.diff -p1
+boehm-gc-getnprocs.diff -p1
+note-gnu-stack.diff -p1
+m68k-allow-gnu99.diff -p1
+libgomp-omp_h-multilib.diff -p1
+sparc-force-cpu.diff -p1
+pr41848.diff -p1
+gcc-plugindir.diff -p1
+gcc-java-align-data.diff -p1
+linux-atomic-builtin-expect.diff -p1
+pr24619.diff -p1
+pr45979.diff -p1
+no_fpr_in_libgcc.diff -p1
+pr44364.diff -p1
+pr48183.diff -p1
+pr48325.diff -p1
+pr48226.diff -p1
+gcc-dw2-loc-tracking.diff -p1
+libobjc-gc.diff -p1
+pr40521-sequel.diff -p1
+libjava-armel-unwind.diff -p1
+gcc-ice-apport.diff -p1
+gcc-arm-earlyclobbers.diff -p1
+libjava-disable-static.diff -p1
+libjava-fixed-symlinks.diff -p1
+libstdc++-arm-wno-abi.diff -p1
+libstdc++-no-testsuite.diff -p1
+ada-mips.diff -p1
+arm-unbreak-eabi-armv4t.diff -p1
+gcc-multiarch.diff -p1
+mips-triarch.diff -p1
+libjava-nobiarch-check.diff -p1
+config-ml.diff -p1
+s390-biarch.diff -p1
+gcc-powerpc-nof.diff -p1
+gcc-powerpc-undef.diff -p1
+gcc-no-add-needed.diff -p1
+gcc-as-needed.diff -p1
+mips-fix-loongson2f-nop.diff -p1
+gcc-system-root.diff -p1
+armhf-triplet-backport.diff -p1
--- /dev/null
+--- usr/include/sys/types.h.org 2012-01-18 15:05:32.187940726 +0900
++++ usr/include/sys/types.h 2012-01-18 14:59:42.623568358 +0900
+@@ -114,7 +114,7 @@
+ #ifdef __USE_BSD
+ # ifndef __daddr_t_defined
+ typedef __daddr_t daddr_t;
+-typedef __caddr_t caddr_t;
++//typedef __caddr_t caddr_t;
+ # define __daddr_t_defined
+ # endif
+ #endif