#!/bin/sh -xe # clean clean() { if ["${TARGET_OS}" != "ubuntu-32" ] && ["${TARGET_OS}" != "ubuntu-64" ] then exit 1 fi } # build build() { # for x86 (32bit) kernel ./build-x86.sh mv arch/x86/boot/bzImage ./bzImage.x86 make distclean # for x86-64 (64bit) kernel ./build-x86_64.sh mv arch/x86/boot/bzImage ./bzImage.x86_64 } # install install() { TIZEN_VERSIONS="5.0 4.0 3.0" for VER in ${TIZEN_VERSIONS} ; do KERNEL_DIR=$SRCDIR/package/${VER}-emulator-kernel-x86.package.${TARGET_OS}/data/platforms/tizen-${VER}/common/emulator/data/kernel mkdir -p $KERNEL_DIR cp ./bzImage.x86 $KERNEL_DIR/ cp ./bzImage.x86_64 $KERNEL_DIR/ done }