# build_common prepare_common() { if [ "$JAVA_HOME" = "" ] then echo "Make sure that you have installed JDK" echo "and then set installed JDK/bin path into JAVA_HOME" echo "as a system environment variable on your PC!!" exit 1 fi } build_common() { prepare_common prepare TIZEN_SDK_DEV_PATH=${ROOTDIR} PATH=${TIZEN_SDK_DEV_PATH}/bin:${PATH} cd ${SRCDIR}/tizen TIZEN_SDK_DEV_PATH=${TIZEN_SDK_DEV_PATH} ./emulator_configure.sh x86_64 make clean PATH=${PATH} make all -j8 make install if [ $? -eq 0 ] then echo "x86 build success" else echo "x86 build failure" exit 1 fi } # install_common install_common() { TIZEN_VERSIONS="4.0 3.0 2.4 2.3.2" for VER in ${TIZEN_VERSIONS} ; do # emulator EMULATOR_COMMON_DIR=$SRCDIR/package/$VER-emulator-qemu-common.package.${TARGET_OS}/data/platforms/tizen-$VER/common mkdir -p $EMULATOR_COMMON_DIR # we have nothing for common now EMULATOR_X86_DIR=$SRCDIR/package/$VER-emulator-qemu-x86.package.${TARGET_OS}/data/platforms/tizen-$VER/common mkdir -p $EMULATOR_X86_DIR cp -pPR $SRCDIR/tizen/emulator $EMULATOR_X86_DIR/emulator # make install/remove script, depending on the version ORIGIN_INSTALL_FILE=$SRCDIR/package/emulator-qemu-x86.install.$TARGET_OS_CATEGORY ORIGIN_REMOVE_FILE=$SRCDIR/package/emulator-qemu-x86.remove.$TARGET_OS_CATEGORY TARTGET_INSTALL_FILE=$SRCDIR/package/$VER-emulator-qemu-x86.install.$TARGET_OS_CATEGORY TARTGET_REMOVE_FILE=$SRCDIR/package/$VER-emulator-qemu-x86.remove.$TARGET_OS_CATEGORY if [ -e "$ORIGIN_INSTALL_FILE" ] ; then cp -p "$ORIGIN_INSTALL_FILE" "$TARTGET_INSTALL_FILE" # Replace existing version to inputted version. # To apply some variables to 'sed' command, # you must enclose expressions in double quotes(""). # -i'' option means that does not make backup file, it must have an extension in macOS. sed -i'' -e "s/tizen-x.x/tizen-$VER/g" "$TARTGET_INSTALL_FILE" fi if [ -e "$ORIGIN_REMOVE_FILE" ] ; then cp -p "$ORIGIN_REMOVE_FILE" "$TARTGET_REMOVE_FILE" # Replace existing version to inputted version. # Now it is not necessary. Uncomment the line below if necessary. #sed -i'' -e "s/tizen-x.x/tizen-$VER/g" "$TARTGET_INSTALL_FILE" fi done }