From 1e7b14abe9aeae28626b4a226e863518f057b56e Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Thu, 27 Nov 2008 13:26:59 +0200 Subject: [PATCH] linux26: renamed $ver_n to $lx_ver, and set before lx_cpu and friends --- base/linux26/linux-conf.in | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/base/linux26/linux-conf.in b/base/linux26/linux-conf.in index 0b999dc62..cce389eb1 100644 --- a/base/linux26/linux-conf.in +++ b/base/linux26/linux-conf.in @@ -16,6 +16,11 @@ treever=$(echo $ver | cut -d. -f1-2 | tr -d .) +lx_ver=0 +for x in $(echo "$ver" | cut -d. -f1-3 | tr '.' ' '); do + lx_ver=$( expr $lx_ver \* 1000 + $x ) +done + [ "$lx_cpu" ] || # powerpc and mips share the same arch for 32/64, maybe more follow lx_cpu=`echo $arch | arch2uname | sed -e s/ppc.*/powerpc/ -e s/mips64/mips/` @@ -30,11 +35,7 @@ lx_customconf="$base/config/$config/linux.cfg" # $lx_mergedarch is 1 if the kernel has x86 and x86_64 arches merged lx_mergedarch= -ver_n=0 -for x in $( echo "$ver" | cut -d. -f1-3 | tr '.' ' ' ); do - ver_n=$( expr $ver_n \* 1000 + $x ) -done -if [ $ver_n -ge 2006024 ]; then +if [ $lx_ver -ge 2006024 ]; then lx_mergedarch=1 fi # $lx_confmerge list of config snaps gets merged to .config.3 on auto_config()