make install (kernel) without /modules dir

Roman Kurakin rik at cronyx.ru
Thu Mar 11 13:35:50 PST 2004


Hi,

    It seems that I've found another problem. If /modules dir would be 
removed,
make install (of kernel and kernel modules) will not create modules dir 
and you'll
get /modules file with one of the modules inside.

One of the variants is to add flag -d to install or other to mkdir -p 
explicitly:

--- Makefile.old        Fri Mar 12 00:13:45 2004
+++ Makefile    Fri Mar 12 00:15:03 2004
@@ -626,6 +626,7 @@
                cp -p ${DESTDIR}/modules/* ${DESTDIR}/modules.old; \
        fi;
 .endif
+       mkdir -p ${DESTDIR}/modules
         cd $S/modules ; env ${MKMODULESENV} ${MAKE} install

 modules-reinstall modules-reinstall.debug:


Best regards,
                            Roman Kurakin






More information about the freebsd-hackers mailing list