Fix leftover of problem with missing .config file (bug #271528)
authorSebastian Pipping <sebastian@pipping.org>
Thu, 20 Jan 2011 01:12:38 +0000 (02:12 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Thu, 20 Jan 2011 01:16:12 +0000 (02:16 +0100)
gen_configkernel.sh
gen_determineargs.sh

index b56228768ed0ed9c2eec5419c0fb7dc6f273205a..990975c1481883f079cf7db02c7a3f6703f44f7f 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/bash
 # $Id$
 
+# Fills variable KERNEL_CONFIG
 determine_config_file() {
        if [ "${CMD_KERNEL_CONFIG}" != "" ]
        then
index 548f55b6616bbe2720fa46d09458ce6d3d18a0aa..a55ccecf9cc85e39633fe31b02e70f1195f24ff4 100755 (executable)
@@ -58,7 +58,8 @@ get_KV() {
                        LOV=`echo ${UTS_RELEASE}|sed -e "s/${VER}.${PAT}.${SUB}${EXV}//"`
                        KV=${VER}.${PAT}.${SUB}${EXV}${LOV}
                else
-                       LCV=`grep ^CONFIG_LOCALVERSION= ${KERNEL_DIR}/.config | sed -r -e "s/.*=\"(.*)\"/\1/"`
+                       determine_config_file
+                       LCV=`grep ^CONFIG_LOCALVERSION= "${KERNEL_CONFIG}" | sed -r -e "s/.*=\"(.*)\"/\1/"`
                        KV=${VER}.${PAT}.${SUB}${EXV}${LCV}
                fi
        fi