]> xenbits.xensource.com Git - raisin.git/commitdiff
Don't build grub and qemu_traditional on ARM
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 12 Oct 2015 15:28:53 +0000 (16:28 +0100)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 12 Oct 2015 15:28:53 +0000 (16:28 +0100)
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
components/grub
components/qemu_traditional

index 3bb52548f6b80c1ee231fa83958a44411b5c70d5..703d681ea5fcfcddc467fb94083da5ba29da2cba 100644 (file)
@@ -28,6 +28,12 @@ function grub_check_package() {
 
 
 function grub_build() {
+    if [[ $RAISIN_ARCH != "x86_64" && $RAISIN_ARCH != "x86_32" ]]
+    then
+        verbose_echo grub is only supported on x86_32 and x86_64
+        return
+    fi
+
     cd "$BASEDIR"
     rm -f memdisk.tar
     tar cf memdisk.tar -C data grub.cfg
index a9609b1a6f8115247768cf69c6e838296e6bd65b..ddf3db966a97f15cbe8b4ba06e6c63f930062161 100644 (file)
@@ -5,18 +5,28 @@ function qemu_traditional_check_package() {
               libncurses5-dev"
     local DEP_Debian_x86_32="$DEP_Debian_common"
     local DEP_Debian_x86_64="$DEP_Debian_common"
-    local DEP_Debian_arm32="$DEP_Debian_common"
-    local DEP_Debian_arm64="$DEP_Debian_common"
 
     local DEP_Fedora_common="make gcc zlib-devel ncurses-devel pciutils-devel"
     local DEP_Fedora_x86_32="$DEP_Fedora_common"
     local DEP_Fedora_x86_64="$DEP_Fedora_common"
 
+    if [[ $RAISIN_ARCH != "x86_64" && $RAISIN_ARCH != "x86_32" ]]
+    then
+        verbose_echo qemu_traditional is only supported on x86_32 and x86_64
+        return
+    fi
+
     verbose_echo Checking QEMU dependencies
     eval check-package \$DEP_"$DISTRO"_"$RAISIN_ARCH"
 }
 
 function qemu_traditional_build() {
+    if [[ $RAISIN_ARCH != "x86_64" && $RAISIN_ARCH != "x86_32" ]]
+    then
+        verbose_echo qemu_traditional is only supported on x86_32 and x86_64
+        return
+    fi
+
     cd "$BASEDIR"
     git-checkout $QEMU_TRADITIONAL_URL $QEMU_TRADITIONAL_REVISION qemu_traditional-dir
     cd qemu_traditional-dir