package : modified build dibs script.
authorKitae Kim <kt920.kim@samsung.com>
Mon, 17 Dec 2012 08:52:28 +0000 (17:52 +0900)
committerKitae Kim <kt920.kim@samsung.com>
Mon, 17 Dec 2012 09:00:33 +0000 (18:00 +0900)
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>
package/build.macos-64
package/build.ubuntu-32
package/build.ubuntu-64
package/build.windows-32

index a8dccf0..7fed7a0 100755 (executable)
@@ -30,15 +30,28 @@ prepare()
 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
@@ -52,7 +65,6 @@ install()
        mkdir -p $COMMON_BIN_DIR
 
        cd $SRCDIR/tizen
-       make install_dibs
 
        mv x86 $X86_BIN_DIR/emulator
        mv arm $ARM_BIN_DIR/emulator
index 0bded26..7fed7a0 100755 (executable)
@@ -7,7 +7,7 @@ clean()
        cd $SRCDIR/tizen
        if test -e "Makefile"
        then
-               ./emulator_configure.sh x86
+               ./emulator_configure.sh
                make distclean
        fi
        rm -rf $SRCDIR/*.zip
@@ -39,17 +39,19 @@ build()
                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
@@ -63,7 +65,6 @@ install()
        mkdir -p $COMMON_BIN_DIR
 
        cd $SRCDIR/tizen
-       make install_dibs
 
        mv x86 $X86_BIN_DIR/emulator
        mv arm $ARM_BIN_DIR/emulator
index 0bded26..7fed7a0 100755 (executable)
@@ -7,7 +7,7 @@ clean()
        cd $SRCDIR/tizen
        if test -e "Makefile"
        then
-               ./emulator_configure.sh x86
+               ./emulator_configure.sh
                make distclean
        fi
        rm -rf $SRCDIR/*.zip
@@ -39,17 +39,19 @@ build()
                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
@@ -63,7 +65,6 @@ install()
        mkdir -p $COMMON_BIN_DIR
 
        cd $SRCDIR/tizen
-       make install_dibs
 
        mv x86 $X86_BIN_DIR/emulator
        mv arm $ARM_BIN_DIR/emulator
index 2d5a697..600cedd 100755 (executable)
@@ -58,17 +58,19 @@ build()
                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
@@ -84,7 +86,6 @@ install()
        mkdir -p $COMMON_BIN_DIR
 
        cd $SRCDIR/tizen
-       make install_dibs
 
        mv x86 $X86_BIN_DIR/emulator
        mv arm $ARM_BIN_DIR/emulator