#!/bin/sh -xe
# clean
+SCRIPT_DIR=${SRCDIR}/scripts
clean()
{
rm -rf $SRCDIR/*.zip
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
+ rm -rf ${SCRIPT_DIR}
}
{
# prepare source files
SOURCE_TAR_DIR=${SRCDIR}/sources
+ rm -rf ${SOURCE_TAR_DIR}
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/
# 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
+ # copy sysroot for applying patch
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
+
+ # Generate scripts for call cross compiler
+ rm -rf ${SCRIPT_DIR}
+ mkdir -p ${SCRIPT_DIR}
+ 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
+ export ARM_SYSROOT_DIR=${SRCDIR}/tizen-device-1.0.base
+ export I386_SYSROOT_DIR=${SRCDIR}/tizen-emulator-1.0.base
+ echo "${ARM_LINUX_GCC_DIR}/bin/arm-linux-gnueabi-gcc --sysroot=${ARM_SYSROOT_DIR} \$@" > ${SCRIPT_DIR}/arm-linux-gnueabi-gcc
+ echo "${ARM_LINUX_GCC_DIR}/bin/arm-linux-gnueabi-g++ --sysroot=${ARM_SYSROOT_DIR} \$@" > ${SCRIPT_DIR}/arm-linux-gnueabi-g++
+ echo "${I386_LINUX_GCC_DIR}/bin/i386-linux-gnueabi-gcc --sysroot=${I386_SYSROOT_DIR} \$@" > ${SCRIPT_DIR}/i386-linux-gnueabi-gcc
+ echo "${I386_LINUX_GCC_DIR}/bin/i386-linux-gnueabi-g++ --sysroot=${I386_SYSROOT_DIR} \$@" > ${SCRIPT_DIR}/i386-linux-gnueabi-g++
+ chmod +x ${SCRIPT_DIR}/arm-linux-gnueabi-gcc
+ chmod +x ${SCRIPT_DIR}/arm-linux-gnueabi-g++
+ chmod +x ${SCRIPT_DIR}/i386-linux-gnueabi-gcc
+ chmod +x ${SCRIPT_DIR}/i386-linux-gnueabi-g++
+ export PATH=${SCRIPT_DIR}:${PATH}
+
+ # build
+ export SYSROOT_DIR=${ARM_SYSROOT_DIR}
./build-armel-${BUILD_TARGET_OS}.sh
- export SYSROOT_DIR=${SRCDIR}/tizen-emulator-1.0.base
+ export SYSROOT_DIR=${I386_SYSROOT_DIR}
./build-i386-${BUILD_TARGET_OS}.sh
else
export SYSROOT_DIR=${ROOTDIR}/SDK/build-system/rootstraps/tizen-device-1.0.base
Package : cross-arm-gcc-4.5
-Version : 0.20.13
+Version : 0.20.16
OS : linux
Build-host-os : linux
Install-dependency :
Description : gnu compiler 4.5 for Tizen SDK
Package : cross-arm-gcc-4.5
-Version : 0.20.13
+Version : 0.20.16
OS : windows
Build-host-os : linux
Install-dependency :
-Build-dependency : rootstrap-device.base [linux]
+Build-dependency : rootstrap-device.base [linux], cross-arm-gcc-4.5 [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
+Version : 0.20.16
OS : linux
Build-host-os : linux
Install-dependency :
Description : gnu compiler 4.5 for Tizen SDK
Package : cross-i386-gcc-4.5
-Version : 0.20.13
+Version : 0.20.16
OS : windows
Build-host-os : linux
Install-dependency :
-Build-dependency : rootstrap-emulator.base [linux]
+Build-dependency : rootstrap-emulator.base [linux],cross-i386-gcc-4.5 [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>