Browse Source

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.
user/karasz/next/updates
Christian Wiese 14 years ago
parent
commit
5c592c4128
  1. 10
      base/linux26/linux26.conf

10
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
}

Loading…
Cancel
Save