diff options
author | Bill Nottingham <notting@redhat.com> | 2003-08-08 19:09:41 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2003-08-08 19:09:41 +0000 |
commit | cc78f2f6159711900e1d42133b29f63c4c342411 (patch) | |
tree | 787aa539cbe50e5f33b6f2b201f423a3338a1253 /src/mkkerneldoth | |
parent | 670fbad9378ec67d8331160908d96a6becbf5a78 (diff) | |
download | initscripts-cc78f2f6159711900e1d42133b29f63c4c342411.tar initscripts-cc78f2f6159711900e1d42133b29f63c4c342411.tar.gz initscripts-cc78f2f6159711900e1d42133b29f63c4c342411.tar.bz2 initscripts-cc78f2f6159711900e1d42133b29f63c4c342411.tar.xz initscripts-cc78f2f6159711900e1d42133b29f63c4c342411.zip |
support kernel-hugememr7-28-EL
Diffstat (limited to 'src/mkkerneldoth')
-rw-r--r-- | src/mkkerneldoth | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mkkerneldoth b/src/mkkerneldoth index 02872814..1c3ee38a 100644 --- a/src/mkkerneldoth +++ b/src/mkkerneldoth @@ -3,8 +3,8 @@ # Generate a header that defines the boot kernel. # -KERNEL_TYPE=`uname -r | sed 's_^.*\(smp\|enterprise\|bigmem\)$_-\1_;t;s_.*__;'` -KERNEL_RELEASE=`uname -r | sed 's|smp\|enterprise\|bigmem||g'` +KERNEL_TYPE=`uname -r | sed 's_^.*\(smp\|enterprise\|bigmem\|hugemem\)$_-\1_;t;s_.*__;'` +KERNEL_RELEASE=`uname -r | sed 's|smp\|enterprise\|bigmem\|hugemem||g'` rpm -q kernel$KERNEL_TYPE-$KERNEL_RELEASE >/dev/null 2>&1 && KERNEL_ARCH=`rpm -q --qf '%{ARCH}' kernel$KERNEL_TYPE-$KERNEL_RELEASE 2>/dev/null` || KERNEL_ARCH=`uname -m` @@ -14,10 +14,12 @@ if [ -n "$KERNEL_ARCH" -a "$KERNEL_ARCH$KERNEL_TYPE" != "$OLD_KERNEL_ARCH_TYPE" SMP='0' UP='0' BIGMEM='0' + HUGEMEM='0' case "$KERNEL_TYPE" in -smp) SMP='1';; -enterprise) ENTERPRISE='1';; -bigmem) BIGMEM='1';; + -hugemem) HUGEMEM='1';; *) UP='1';; esac cat > /boot/kernel.h << EOF @@ -39,6 +41,10 @@ if [ -n "$KERNEL_ARCH" -a "$KERNEL_ARCH$KERNEL_TYPE" != "$OLD_KERNEL_ARCH_TYPE" #define __BOOT_KERNEL_BIGMEM $BIGMEM #endif +#ifndef __BOOT_KERNEL_HUGEMEM +#define __BOOT_KERNEL_HUGEMEM $HUGEMEM +#endif + #ifndef __BOOT_KERNEL_SMP #define __BOOT_KERNEL_SMP $SMP #endif |