--- /dev/null
+#!/bin/sh -e
+
+CURDIR=`pwd`
+SOURCE_TAR_DIR=${CURDIR}/sources
+GDB_SOURCE_TAR_FILE=${SOURCE_TAR_DIR}/gdb-linaro-7.2-2011.05-0.tar.bz2
+GDB_SOURCE_DIR=${CURDIR}/gdb-linaro-7.2-2011.05-0
+if [ "$1" ] ; then
+PREFIX_DIR=$1
+else
+PREFIX_DIR=${CURDIR}/install-i486-linux
+fi
+DEPENDENT_PKGS="quilt libncurses5-dev libexpat1-dev libreadline-dev"
+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 GDB source]"
+rm -rf ${GDB_SOURCE_DIR}
+tar xf ${GDB_SOURCE_TAR_FILE}
+if [ -d ${GDB_SOURCE_DIR} ]
+then
+ log "[checking gdb source.. ok]"
+else
+ log "[error: there is not gdb source]"
+ exit 1
+fi
+
+# Configure/Build/Install GDB
+log "[Configuring GDB...]"
+cd ${GDB_SOURCE_DIR}
+mkdir tmp_build
+cd tmp_build
+CFLAGS="-g -O2" CXXFLAGS="-g -O2 -g -Wall -O2" ../configure \
+ --prefix=${PREFIX_DIR} \
+ --disable-maintainer-mode \
+ --disable-dependency-tracking \
+ --disable-silent-rules \
+ --disable-gdbtk \
+ --disable-shared \
+ --with-system-readline \
+ --target=i486-linux-gnueabi \
+ --with-expat \
+ --without-python
+
+log "[Building GDB...]"
+make -j4
+log "[Installing GDB...]"
+make install
+cd ${CURDIR}
+
+# Configure/Build/Install GDB-SERVER
+log "[Configuring GDB SERVER...]"
+cd ${GDB_SOURCE_DIR}/gdb/gdbserver
+mkdir tmp_build
+cd tmp_build
+CC=i386-linux-gnueabi-gcc CFLAGS="--sysroot=${SYSROOT_DIR}" ../configure \
+ --prefix=${PREFIX_DIR} \
+ --host=i486-linux-gnueabi \
+ --target=i486-linux-gnueabi
+
+log "[Building GDB SERVER...]"
+make -j4
+log "[Installing GDB SERVER...]"
+make install
+cd ${CURDIR}
--- /dev/null
+#!/bin/sh -e
+
+CURDIR=`pwd`
+SOURCE_TAR_DIR=${CURDIR}/sources
+GDB_SOURCE_TAR_FILE=${SOURCE_TAR_DIR}/gdb-linaro-7.2-2011.05-0.tar.bz2
+GDB_SOURCE_DIR=${CURDIR}/gdb-linaro-7.2-2011.05-0
+if [ "$1" ] ; then
+PREFIX_DIR=$1
+else
+PREFIX_DIR=${CURDIR}/install-i486-windows
+fi
+DEPENDENT_PKGS="quilt libncurses5-dev libexpat1-dev libreadline-dev 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}
+
+# extract/patch GDB
+log "[Extracting GDB source]"
+rm -rf ${GDB_SOURCE_DIR}
+tar xf ${GDB_SOURCE_TAR_FILE}
+if [ -d ${GDB_SOURCE_DIR} ]
+then
+ log "[checking gdb source.. ok]"
+else
+ log "[error: there is not gdb source]"
+ exit 1
+fi
+
+# Configure/Build/Install GDB
+log "[Configuring GDB...]"
+cd ${GDB_SOURCE_DIR}
+mkdir tmp_build
+cd tmp_build
+CFLAGS="-g -O2" CXXFLAGS="-g -O2 -g -Wall -O2" ../configure \
+ LDFLAGS="-static" \
+ --prefix=${PREFIX_DIR} \
+ --disable-maintainer-mode \
+ --disable-dependency-tracking \
+ --disable-silent-rules \
+ --disable-gdbtk \
+ --disable-shared \
+ --build=i686-linux-gnu \
+ --host=i586-mingw32msvc \
+ --target=i486-linux-gnueabi \
+ --without-python
+
+log "[Building GDB...]"
+make -j4
+log "[Installing GDB...]"
+make install
+cd ${CURDIR}
+
+# Configure/Build/Install GDB-SERVER
+log "[Configuring GDB SERVER...]"
+cd ${GDB_SOURCE_DIR}/gdb/gdbserver
+mkdir tmp_build
+cd tmp_build
+CC=i386-linux-gnueabi-gcc CFLAGS="--sysroot=${SYSROOT_DIR}" ../configure \
+ --prefix=${PREFIX_DIR} \
+ --host=i486-linux-gnueabi \
+ --target=i486-linux-gnueabi
+
+log "[Building GDB SERVER...]"
+make -j4
+log "[Installing GDB SERVER...]"
+make install
+cd ${CURDIR}
export SYSROOT_DIR=${ROOTDIR}/SDK/build-system/rootstraps/tizen-emulator-1.0.base
export PATH=${ROOTDIR}/SDK/build-system/toolchains/i386-linux-gnueabi-gcc-4.5/bin:$ORG_PATH
./build-i386-${BUILD_TARGET_OS}.sh
+
+ ./build-i486-${BUILD_TARGET_OS}.sh
}
# install
install()
{
- INSTALL_DIR=$SRCDIR/package/cross-arm-gdb-7.2.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-gdb-7.2
+ arch_list="
+ arm
+ i386
+ i486
+ "
+
+ for arch in ${arch_list}
+ do
+ # Common parameter
+ INSTALL_DIR=$SRCDIR/package/cross-${arch}-gdb-7.2.package.${BUILD_TARGET_OS}
+
+ # Parameter for Build system
+ FOR_BUILDSYSTEM_DIR=${INSTALL_DIR}/data/SDK/build-system/toolchains
+
+ # Common parameter
+ TARGET_DIR=${FOR_BUILDSYSTEM_DIR}/${arch}-linux-gnueabi-gdb-7.2
+
+ # Install scripts for build system
+ mkdir -p $FOR_BUILDSYSTEM_DIR
+ mv $SRCDIR/install-${arch}-${BUILD_TARGET_OS} $TARGET_DIR
+
+ # Install scripts for IDE
+ INSTALL_DIR2=$SRCDIR/package/sdk-gdb-server.package.${BUILD_TARGET_OS}
+ FOR_IDE_DIR=${INSTALL_DIR2}/data/SDK/develop-tool/gdbserver
- INSTALL_DIR=$SRCDIR/package/cross-i386-gdb-7.2.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-gdb-7.2
+ mkdir -p $FOR_IDE_DIR
+ cp $TARGET_DIR/bin/${arch}-linux-gnueabi-gdbserver $FOR_IDE_DIR/gdbserver
+ case ${arch} in
+ arm)
+ architecture=armel
+ ;;
+ *)
+ architecture=${arch}
+ ;;
+ esac
+ cd ${FOR_IDE_DIR}/..
+ tar -cf ${FOR_IDE_DIR}/../gdbserver_7.2.0_${architecture}.tar gdbserver
+ rm -rf ${FOR_IDE_DIR}
+ done
}
+++ /dev/null
- #!/bin/sh
-
-rm -rf ${INSTALLED_PATH}/SDK/build-system/toolchains/cross-arm-gdb-7.2
+++ /dev/null
-:: delims is a TAB followed by a space
-SET installed_path=%INSTALLED_PATH%
-
-RMDIR /S /Q %installed_path%\SDK\build-system\toolchains\cross-arm-gdb-7.2
+++ /dev/null
- #!/bin/sh
-
-rm -rf ${INSTALLED_PATH}/SDK/build-system/toolchains/cross-i386-gdb-7.2
+++ /dev/null
-:: delims is a TAB followed by a space
-SET installed_path=%INSTALLED_PATH%
-
-RMDIR /S /Q %installed_path%\SDK\build-system\toolchains\cross-i386-gdb-7.2
Package : cross-arm-gdb-7.2
-Version : 0.20.11
+Version : 0.20.16
OS : linux
Build-host-os: linux
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>
Source : gdb-7.2
Package : cross-arm-gdb-7.2
-Version : 0.20.11
+Version : 0.20.16
OS : windows
Build-host-os: linux
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>
Package : cross-i386-gdb-7.2
-Version : 0.20.11
+Version : 0.20.16
OS : linux
Build-host-os: linux
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>
Source : gdb-7.2
Package : cross-i386-gdb-7.2
-Version : 0.20.11
+Version : 0.20.16
OS : windows
Build-host-os: linux
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>
Build-dependency : cross-i386-gcc-4.5 [linux], rootstrap-emulator.base[linux]
Source-dependency : gdb-linaro-7.2-2011.05-0.tar.bz2 [linux]
Source : gdb-7.2
+
+Package : cross-i486-gdb-7.2
+Version : 0.20.16
+OS : linux
+Build-host-os: linux
+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 debug tool 7.2 for SLP SDK
+Install-dependency :
+Build-dependency : cross-i386-gcc-4.5 [linux], rootstrap-emulator.base[linux]
+Source-dependency : gdb-linaro-7.2-2011.05-0.tar.bz2 [linux]
+Source : gdb-7.2
+
+Package : cross-i486-gdb-7.2
+Version : 0.20.16
+OS : windows
+Build-host-os: linux
+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 debug tool 7.2 for SLP SDK
+Install-dependency :
+Build-dependency : cross-i386-gcc-4.5 [linux], rootstrap-emulator.base[linux]
+Source-dependency : gdb-linaro-7.2-2011.05-0.tar.bz2 [linux]
+Source : gdb-7.2
+
+Package : sdk-gdb-server
+Version : 0.20.16
+OS : linux
+Build-host-os: linux
+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 debug tool 7.2 for SLP SDK
+Install-dependency :
+Build-dependency : cross-arm-gcc-4.5 [linux], rootstrap-device.base[linux], cross-i386-gcc-4.5 [linux]
+Source-dependency : gdb-linaro-7.2-2011.05-0.tar.bz2 [linux]
+Source : gdb-7.2
+