Browse Source

Andreas V. Meier:


			
			
				rocklinux
			
			
		
Andreas V. 'netrunner' Meier 20 years ago
parent
commit
38107b5be0
1 changed files with 10 additions and 4 deletions
  1. +10
    -4
      package/base/modutils/modutils.conf

+ 10
- 4
package/base/modutils/modutils.conf

@ -20,7 +20,7 @@
#
# --- ROCK-COPYRIGHT-NOTE-END ---
modutils_pm() {
modutils_postm() {
cp -vf $confdir/modules.conf.data $root/etc/modules.conf
mv -fv $root/sbin/lsmod$postfix $root/bin/
if [ -h $root/bin/lsmod$postfix ] ; then
@ -30,8 +30,14 @@ modutils_pm() {
fi
}
postmake="modutils_pm"
confopt="$confopt --sbindir=\$root/sbin --enable-insmod-static"
modutils_prem() {
find . -type f -exec sed -i -e 's,STRIP,DOSTRIP,' '{}' \;
}
hook_add postmake 3 "modutils_postm"
hook_add premake 3 "modutils_prem"
var_append confopt " " "--sbindir=\$root/sbin --enable-insmod-static"
var_remove GCC_WRAPPER_APPEND " " "-s"
postfix=""
@ -45,7 +51,7 @@ if [ -f $root/var/adm/flists/module-init-tools ] ; then
postfix=".old"
fi
export CFLAGS="$CFLAGS -I$root/usr/src/linux/include"
var_append CFLAGS "-I$root/usr/src/linux/include"
# modutils is using $(STRIP) for install -s option
var_remove makeopt " " 'STRIP="$STRIP"'

Loading…
Cancel
Save