[Title] Add build scripts and package manifest file for new buildsystem
authorKitae Kim <kt920.kim@samsung.com>
Fri, 17 Feb 2012 08:20:06 +0000 (17:20 +0900)
committerKitae Kim <kt920.kim@samsung.com>
Fri, 17 Feb 2012 08:20:06 +0000 (17:20 +0900)
[Type]
[Module] emulator-kernel / build
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

package/build.linux [new file with mode: 0755]
package/pkginfo.manifest [new file with mode: 0644]

diff --git a/package/build.linux b/package/build.linux
new file mode 100755 (executable)
index 0000000..6bc95ae
--- /dev/null
@@ -0,0 +1,36 @@
+#!/bin/sh -xe
+# clean
+clean()
+{
+       echo "$SRCDIR"
+       make clean
+       rm -rf $SRCDIR/*.zip
+       rm -rf $SRCDIR/*.tar.gz
+}
+
+# build
+build() 
+{
+       make i386_emul_defconfig
+       make
+}
+
+# install
+install() 
+{
+    if [ "$BUILD_TARGET_OS" = "linux" ]
+    then
+               BIN_DIR=$SRCDIR/package/emulator-kernel.package.linux/data/Emulator/x86/data/kernel-img
+    else
+               BIN_DIR=$SRCDIR/package/emulator-kernel.package.windows/data/Emulator/x86/data/kernel-img
+    fi
+       mkdir -p $BIN_DIR
+
+       cp arch/x86/boot/bzImage $BIN_DIR
+}
+
+[ "$1" = "clean" ] && clean
+[ "$1" = "build" ] && build
+[ "$1" = "install" ] && install
+
+echo "success"
diff --git a/package/pkginfo.manifest b/package/pkginfo.manifest
new file mode 100644 (file)
index 0000000..e457876
--- /dev/null
@@ -0,0 +1,15 @@
+Package: emulator-kernel
+Version: 1.1.2
+OS: linux
+Build-host-os: linux
+Maintainer: Yeong-Kyoon, Lee <yeongkyoon.lee@samsung.com>
+Source: emulator-kernel
+Description: Tizen Emulator Kernel
+
+Package: emulator-kernel
+Version: 1.1.2
+OS: windows
+Build-host-os: linux
+Maintainer: Yeong-Kyoon, Lee <yeongkyoon.lee@samsung.com>
+Source: emulator-kernel
+Description: Tizen Emulator Kernel