upload tizen1.0 source 17/17/1 2.0alpha master
authorSungho Park <chywoo.park@samsung.com>
Mon, 30 Apr 2012 09:06:20 +0000 (18:06 +0900)
committerSungho Park <chywoo.park@samsung.com>
Mon, 30 Apr 2012 09:06:20 +0000 (18:06 +0900)
Change-Id: I8e731ebc8b22179d3eb4b8307106390bff23e736

build-i486-linux.sh [new file with mode: 0755]
build-i486-windows.sh [new file with mode: 0755]
package/build.linux
package/cross-arm-gdb-7.2.remove.linux [deleted file]
package/cross-arm-gdb-7.2.remove.windows [deleted file]
package/cross-i386-gdb-7.2.remove.linux [deleted file]
package/cross-i386-gdb-7.2.remove.windows [deleted file]
package/pkginfo.manifest

diff --git a/build-i486-linux.sh b/build-i486-linux.sh
new file mode 100755 (executable)
index 0000000..0e5f191
--- /dev/null
@@ -0,0 +1,107 @@
+#!/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}
diff --git a/build-i486-windows.sh b/build-i486-windows.sh
new file mode 100755 (executable)
index 0000000..b2f51fe
--- /dev/null
@@ -0,0 +1,108 @@
+#!/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}
index 167a76a..1b8277a 100755 (executable)
@@ -28,18 +28,52 @@ build()
        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
 }
 
 
diff --git a/package/cross-arm-gdb-7.2.remove.linux b/package/cross-arm-gdb-7.2.remove.linux
deleted file mode 100644 (file)
index bc47d5f..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
- #!/bin/sh 
-
-rm -rf ${INSTALLED_PATH}/SDK/build-system/toolchains/cross-arm-gdb-7.2
diff --git a/package/cross-arm-gdb-7.2.remove.windows b/package/cross-arm-gdb-7.2.remove.windows
deleted file mode 100644 (file)
index 9ff5efc..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-:: 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
diff --git a/package/cross-i386-gdb-7.2.remove.linux b/package/cross-i386-gdb-7.2.remove.linux
deleted file mode 100644 (file)
index d1c78b3..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
- #!/bin/sh 
-
-rm -rf ${INSTALLED_PATH}/SDK/build-system/toolchains/cross-i386-gdb-7.2
diff --git a/package/cross-i386-gdb-7.2.remove.windows b/package/cross-i386-gdb-7.2.remove.windows
deleted file mode 100644 (file)
index 1f7d79d..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-:: 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
index 2b34e81..43e2452 100644 (file)
@@ -1,5 +1,5 @@
 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>
@@ -10,7 +10,7 @@ Source-dependency : gdb-linaro-7.2-2011.05-0.tar.bz2 [linux]
 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>
@@ -22,7 +22,7 @@ Source : gdb-7.2
 
 
 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>
@@ -33,7 +33,7 @@ Source-dependency : gdb-linaro-7.2-2011.05-0.tar.bz2 [linux]
 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>
@@ -42,3 +42,37 @@ 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 : 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
+