Makoto MATSUSHITA wrote:
>
> % make -j 2 modules
> cd ../../modules && env MAKEOBJDIRPREFIX=/usr/src/sys/compile/GENERIC/modules
>KMODDIR=/boot/kernel make obj all
> ===> 3dfx
> ===> 3dfx
> Warning: Object directory not changed from original /usr/src/sys/modules/3dfx
> (... ok, break it ...)
The problem is in the fact that the Makefile (the one in /sys/conf)
contains something like:
${MAKE} obj all
and
${MAKE} obj depend
The net effect is that these targets are built in parallel, which
obviously isn't right. The following solves the problem (i386 only):
Index: Makefile.i386
===================================================================
RCS file: /home/ncvs/src/sys/conf/Makefile.i386,v
retrieving revision 1.212
diff -u -r1.212 Makefile.i386
--- Makefile.i386 2000/10/29 09:47:50 1.212
+++ Makefile.i386 2000/11/13 07:49:00
@@ -271,11 +271,13 @@
modules:
@mkdir -p ${.OBJDIR}/modules
- cd $S/modules && env ${MKMODULESENV} ${MAKE} obj all
+ cd $S/modules && env ${MKMODULESENV} ${MAKE} obj && \
+ env ${MKMODULESENV} ${MAKE} all
modules-depend:
@mkdir -p ${.OBJDIR}/modules
- cd $S/modules && env ${MKMODULESENV} ${MAKE} obj depend
+ cd $S/modules && env ${MKMODULESENV} ${MAKE} obj $$ \
+ env ${MKMODULESENV} ${MAKE} depend
modules-clean:
cd $S/modules && env ${MKMODULESENV} ${MAKE} clean
--
Marcel Moolenaar
mail: [EMAIL PROTECTED] / [EMAIL PROTECTED]
tel: (408) 447-4222
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message