Don't use KERN_OPTMZ or KERN_DBG on Linux 2.6
authorSimon Wilkinson <sxw@your-file-system.com>
Sun, 6 Mar 2011 17:22:14 +0000 (17:22 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 10 Mar 2011 14:44:02 +0000 (06:44 -0800)
With 2.6 Linux kernels, we just use the standard Kernel build system.
As this system pays no attention to our settings of KERN_OPTMZ or
KERN_DBG, don't bother setting values for these for 2.6 kernels.

Change-Id: Ibb2302d63ecf3e32a24321028df6a9aad45769fc
Reviewed-on: http://gerrit.openafs.org/4173
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

src/cf/osconf.m4

index 9f3b794..6f4c89e 100644 (file)
@@ -97,7 +97,6 @@ case $AFS_SYSNAME in
 
        alpha_linux_26)
                CCOBJ="${CC} -fPIC"
-               KERN_OPTMZ=-O2
                MT_CFLAGS='-pthread -D_REENTRANT'
                PAM_OPTMZ=-O2
                PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
@@ -119,7 +118,6 @@ case $AFS_SYSNAME in
 
        arm_linux26)
                CCOBJ="${CC} -fPIC"
-               KERN_OPTMZ=-O2
                MT_CFLAGS='-pthread -D_REENTRANT'
                PAM_OPTMZ=-O2
                PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
@@ -289,7 +287,6 @@ case $AFS_SYSNAME in
                ;;
 
        ppc64_linux26)
-               KERN_OPTMZ=-O2
                MT_CFLAGS='-pthread -D_REENTRANT'
                PAM_OPTMZ=-O2
                PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
@@ -338,10 +335,8 @@ case $AFS_SYSNAME in
                ;;
 
        i386_umlinux26)
-               KERN_OPTMZ=-O2
                MT_CFLAGS='-pthread -D_REENTRANT'
                DBG=-g
-               KERN_DBG=-g
                LWP_DBG=-g
                LWP_OPTMZ=-O2
                OPTMZ=-O2