From 5c592c4128bb346e361d9087a60715260e6d5245 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Fri, 27 Aug 2010 15:31:18 +0200 Subject: [PATCH] linux26: improved package to copy Module.symvers -> /lib/modules/${lx_kernelrelease}/build/ if CONFIG_MODVERSIONS is set (see note!) Note: If CONFIG_MODVERSIONS is enabled we need to copy 'Module.symvers' to be able to build external 3rd party kernel modules without rebuilding the whole kernel using the linux26-src package. --- base/linux26/linux26.conf | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/base/linux26/linux26.conf b/base/linux26/linux26.conf index 5649e2574..2f7eaea83 100644 --- a/base/linux26/linux26.conf +++ b/base/linux26/linux26.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../linux26/linux26.conf -# Copyright (C) 2007 - 2008 The OpenSDE Project +# Copyright (C) 2007 - 2010 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 1998 - 2003 Clifford Wolf # @@ -138,6 +138,14 @@ main_lx() { ln -snf ../../../usr/src/linux-${lx_kernelrelease} \ $root/lib/modules/${lx_kernelrelease}/$x done + + # if module versions is enabled we need to copy 'Module.symvers' + # to be able to build external 3rd party kernel modules without + # rebuilding the whole kernel using the linux26-src package + if grep -q "CONFIG_MODVERSIONS=y" .config ; then + echo "Copying Module.symvers -> /lib/modules/${lx_kernelrelease}/build/" + cp -v Module.symvers $root/lib/modules/${lx_kernelrelease}/build/ + fi fi }