Browse Source

Stefan Fiedler:


			
			
				rocklinux
			
			
		
Stefan Fiedler 19 years ago
parent
commit
0057eaac14
1 changed files with 19 additions and 11 deletions
  1. +19
    -11
      package/base/linux/linux.conf

+ 19
- 11
package/base/linux/linux.conf

@ -483,18 +483,26 @@ main_lx() {
cp -vf System.map $root/boot/System.map-${lx_kernelrelease}
[ "$default" ] && cp -vf System.map $root/boot/System.map
echo "Building the modules ..."
eval $MAKE modules
echo "Installing the modules ..."
if [ $stagelevel -le 1 ] ; then
eval $MAKE modules_install \
INSTALL_MOD_PATH=$root DEPMOD=/bin/true
# only build modules if enabled in the kernel config,
# otherwise a build error will occur
if [ "`egrep "^CONFIG_MODULES=[ym]" .config`" ] ; then
echo "Building the modules ..."
eval $MAKE modules
echo "Installing the modules ..."
if [ $stagelevel -le 1 ] ; then
eval $MAKE modules_install \
INSTALL_MOD_PATH=$root DEPMOD=/bin/true
else
eval $MAKE modules_install DEPMOD=/bin/true
echo "Running 'depmod -a -q -F /boot/System.map ${lx_kernelrelease}' .."
depmod -a -q -F /boot/System.map-${lx_kernelrelease} ${lx_kernelrelease}
for x in /lib/modules/${lx_kernelrelease}/modules.*
do [ -f $x ] && add_flist $x; done
fi
else
eval $MAKE modules_install DEPMOD=/bin/true
echo "Running 'depmod -a -q -F /boot/System.map ${lx_kernelrelease}' .."
depmod -a -q -F /boot/System.map-${lx_kernelrelease} ${lx_kernelrelease}
for x in /lib/modules/${lx_kernelrelease}/modules.*
do [ -f $x ] && add_flist $x; done
echo "No module support configured for this kernel ..."
mkdir -p $root/lib/modules/${lx_kernelrelease}
fi
# fix /lib/modules/${ver}/{build,source} symlinks

Loading…
Cancel
Save