blob: ea9d2fffc69d7d80b683932e45adcc4e8f36e87b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# 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
}
|