Document option lvmraid= and make it imply dolvm (bug #153502)
[genkernel.git] / gen_arch.sh
index 387da50019cf91b689bf749d9d58eb422f35e432..079edb21862dc209449422bfa43d9105a1a2b646 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/bash
+# $Id$
 
 get_official_arch() {
        if [ "${CMD_ARCHOVERRIDE}" != '' ]
@@ -13,12 +14,15 @@ get_official_arch() {
                        case "${ARCH}" in
                                i?86)
                                        ARCH="x86"
-                               ;;
+                                       ;;
                                mips|mips64)
                                        ARCH="mips"
-                               ;;
+                                       ;;
+                               arm*)
+                                       ARCH=arm
+                                       ;;
                                *)
-                               ;;
+                                       ;;
                        esac
                fi
        fi
@@ -39,7 +43,7 @@ get_official_arch() {
                UTILS_ARCH='sparc'
        fi
        
-       ARCH_CONFIG="${GK_SHARE}/${ARCH}/config.sh"
+       ARCH_CONFIG="${GK_SHARE}/arch/${ARCH}/config.sh"
        [ -f "${ARCH_CONFIG}" ] || gen_die "${ARCH} not yet supported by genkernel. Please add the arch-specific config file, ${ARCH_CONFIG}"
 }