genkernel: Add --kconfig to set specific kernel config options
[genkernel.git] / gen_arch.sh
index 079edb21862dc209449422bfa43d9105a1a2b646..866a40f2ca575e8b5067ea4d5c1a2c416688326d 100755 (executable)
@@ -42,7 +42,7 @@ get_official_arch() {
        then
                UTILS_ARCH='sparc'
        fi
-       
+
        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}"
 }
@@ -51,7 +51,10 @@ set_kernel_arch() {
        KERNEL_ARCH=${ARCH}
        case ${ARCH} in
                ppc|ppc64)
-                       if [ "${VER}" -eq "2" -a "${PAT}" -ge "6" ]
+                       if [ "${VER}" -ge "3" ]
+                       then
+                                       KERNEL_ARCH=powerpc
+                       elif [ "${VER}" -eq "2" -a "${PAT}" -ge "6" ]
                        then
                                if [ "${PAT}" -eq "6" -a "${SUB}" -ge "16" ] || [ "${PAT}" -gt "6" ]
                                then
@@ -60,7 +63,10 @@ set_kernel_arch() {
                        fi
                        ;;
                x86)
-                       if [ "${VER}" -eq "2" -a "${PAT}" -ge "6" ] || [ "${VER}" -gt "2" ]
+                       if [ "${VER}" -ge "3" ]
+                       then
+                                       KERNEL_ARCH=x86
+                       elif [ "${VER}" -eq "2" -a "${PAT}" -ge "6" ] || [ "${VER}" -gt "2" ]
                        then
                                if [ "${PAT}" -eq "6" -a "${SUB}" -ge "24" ] || [ "${PAT}" -gt "6" ]
                                then
@@ -71,7 +77,10 @@ set_kernel_arch() {
                        fi
                        ;;
                x86_64)
-                       if [ "${VER}" -eq "2" -a "${PAT}" -ge "6" ] || [ "${VER}" -gt "2" ]
+                       if [ "${VER}" -ge "3" ]
+                       then
+                                       KERNEL_ARCH=x86
+                       elif [ "${VER}" -eq "2" -a "${PAT}" -ge "6" ] || [ "${VER}" -gt "2" ]
                        then
                                if [ "${PAT}" -eq "6" -a "${SUB}" -ge "24" ] || [ "${PAT}" -gt "6" ]
                                then