X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fpkg%2Fmodule-init-tools;h=e7b8c1dc757ef0fba9bba7977aec65f29291ae67;hb=29db7d168ced2d524076370f72a9140521b11105;hp=44a2aa64c7de8a23392305d94b13f6229161d06d;hpb=b5bfb2006502b57fab234345a2393fd04e6d55ad;p=hvlinux.git diff --git a/stage2/pkg/module-init-tools b/stage2/pkg/module-init-tools old mode 100755 new mode 100644 index 44a2aa6..e7b8c1d --- a/stage2/pkg/module-init-tools +++ b/stage2/pkg/module-init-tools @@ -1,14 +1,23 @@ #!/bin/bash -# --enable-zlib-dynamic: To handle compressed kernel modules. -CONFIGURE_OPTS="\ - --enable-zlib-dynamic \ - --mandir=/usr/share/man \ - ${CONFIGURE_OPTS}" +hvconfig_pre() +{ + # To avoid a problem with regenerating the man pages when not needed, + # first rewrite a file that just points to another man page: + echo '.so man5/modprobe.conf.5' > ${LFS_TMP}/${PACKAGE}/modprobe.d.5 + + # --enable-zlib-dynamic: To handle compressed kernel modules. + CONFIGURE_OPTS="\ + --prefix=/usr \ + --bindir=/bin \ + --sbindir=/sbin \ + --sysconfdir=/etc \ + --enable-zlib-dynamic" +} hvbuild() { - make -j ${MAKEJOBS} + make # INSTALL=install # Normally, make install will not install the binaries if they already @@ -19,7 +28,5 @@ hvbuild() hvbuild_post() { - cat > /etc/modprobe.conf << "EOF" -# modprobe.conf -EOF + install -dv ${LFS}/etc/modprobe.d }