[Type]
[Module] emulator-kernel / build
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]
--- /dev/null
+#!/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"
--- /dev/null
+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