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 }