|
|
@ -20,27 +20,29 @@ |
|
|
|
# |
|
|
|
# --- ROCK-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
inst_mod_conf() { |
|
|
|
if false ; then |
|
|
|
rm -f $root/etc/modules.conf |
|
|
|
depmod -a -F $root/boot/System.map |
|
|
|
modprobe -c | grep -v '^Note: ' > $root/etc/modules.conf |
|
|
|
else |
|
|
|
cp -vf $confdir/modules.conf.data $root/etc/modules.conf |
|
|
|
modutils_pm() { |
|
|
|
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 |
|
|
|
# correct the symlink destination |
|
|
|
rm $root/bin/lsmod$postfix |
|
|
|
ln -sfv ../sbin/modprobe$postfix $root/bin/lsmod$postfix |
|
|
|
fi |
|
|
|
add_flist $root/etc/modules.conf |
|
|
|
} |
|
|
|
|
|
|
|
postmake="inst_mod_conf" |
|
|
|
postmake="modutils_pm" |
|
|
|
confopt="$confopt --sbindir=\$root/sbin --enable-insmod-static" |
|
|
|
var_remove GCC_WRAPPER_APPEND " " "-s" |
|
|
|
|
|
|
|
postfix="" |
|
|
|
|
|
|
|
if [ -f $root/var/adm/flists/module-init-tools ] ; then |
|
|
|
var_append patchfiles " " $confdir/use_old_postfix.diff |
|
|
|
# we need to break the flist-del variable name so Check-PkgFormat |
|
|
|
# doesn't think that we would add something to the variable ... |
|
|
|
var_remove flist''del '|' ".*\\.old" |
|
|
|
postinstall="ln -sfv genksyms.old $root/sbin/genksyms" |
|
|
|
postfix=".old" |
|
|
|
fi |
|
|
|
|
|
|
|
export CFLAGS="$CFLAGS -I$root/usr/src/linux/include" |
|
|
|