Modified the build script for arm emulator.
The previous script was wrong. The reason why x86 emulator package was empty before
is that arm emulator build was failed.
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
build()
{
cd $SRCDIR/tizen/
- ./emulator_configure.sh
+ ./emulator_configure.sh x86
make all_dibs
if [ $? -eq 0 ]
then
- echo "build success"
+ echo "x86 build success"
else
- echo "build failure"
+ echo "x86 build failure"
exit 1
fi
+ make install_dibs
+ make clean
+
+ ./emulator_configure.sh arm
+ make all_dibs
+ if [ $? -eq 0 ]
+ then
+ echo "arm build success"
+ else
+ echo "arm build failure"
+ exit 1
+ fi
+ make install_dibs
}
# install
mkdir -p $COMMON_BIN_DIR
cd $SRCDIR/tizen
- make install_dibs
mv x86 $X86_BIN_DIR/emulator
mv arm $ARM_BIN_DIR/emulator
cd $SRCDIR/tizen
if test -e "Makefile"
then
- ./emulator_configure.sh x86
+ ./emulator_configure.sh
make distclean
fi
rm -rf $SRCDIR/*.zip
echo "x86 build failure"
exit 1
fi
+ make install_dibs
+ make clean
-# ./emulator_configure.sh arm
-# make all_dibs
-
-# if [ $? -eq 0 ]
-# then
-# echo "arm build success"
-# else
-# echo "arm build failure"
-# exit 1
-# fi
+ ./emulator_configure.sh arm
+ make all_dibs
+ if [ $? -eq 0 ]
+ then
+ echo "arm build success"
+ else
+ echo "arm build failure"
+ exit 1
+ fi
+ make install_dibs
}
# install
mkdir -p $COMMON_BIN_DIR
cd $SRCDIR/tizen
- make install_dibs
mv x86 $X86_BIN_DIR/emulator
mv arm $ARM_BIN_DIR/emulator
cd $SRCDIR/tizen
if test -e "Makefile"
then
- ./emulator_configure.sh x86
+ ./emulator_configure.sh
make distclean
fi
rm -rf $SRCDIR/*.zip
echo "x86 build failure"
exit 1
fi
+ make install_dibs
+ make clean
-# ./emulator_configure.sh arm
-# make all_dibs
-
-# if [ $? -eq 0 ]
-# then
-# echo "arm build success"
-# else
-# echo "arm build failure"
-# exit 1
-# fi
+ ./emulator_configure.sh arm
+ make all_dibs
+ if [ $? -eq 0 ]
+ then
+ echo "arm build success"
+ else
+ echo "arm build failure"
+ exit 1
+ fi
+ make install_dibs
}
# install
mkdir -p $COMMON_BIN_DIR
cd $SRCDIR/tizen
- make install_dibs
mv x86 $X86_BIN_DIR/emulator
mv arm $ARM_BIN_DIR/emulator
echo "x86 build failure"
exit 1
fi
+ make install_dibs
+ make clean
-# ./emulator_configure.sh arm -e "$BUILD_CFLAGS $BUILD_LDFLAGS"
-# make all_dibs
-# if [ $? -eq 0 ]
-# then
-# echo "arm build success"
-# else
-# echo "arm build failure"
-# exit 1
-# fi
-
+ ./emulator_configure.sh arm -e "$BUILD_CFLAGS $BUILD_LDFLAGS"
+ make all_dibs
+ if [ $? -eq 0 ]
+ then
+ echo "arm build success"
+ else
+ echo "arm build failure"
+ exit 1
+ fi
+ make install_dibs
}
# install
mkdir -p $COMMON_BIN_DIR
cd $SRCDIR/tizen
- make install_dibs
mv x86 $X86_BIN_DIR/emulator
mv arm $ARM_BIN_DIR/emulator