Hopefully fix the "aicasm" build-tool issue when using ${KERNSRCDIR}

different from ${.CURDIR}.

Reported by:	jhb
This commit is contained in:
ru 2004-11-23 09:09:47 +00:00
parent 63baa64f51
commit 6c9c5ddd52

View File

@ -684,7 +684,7 @@ buildkernel:
# XXX - Gratuitously builds aicasm in the ``makeoptions NO_MODULES'' case.
.if !defined(MODULES_WITH_WORLD) && !defined(NO_MODULES) && exists(${KERNSRCDIR}/modules)
.for target in obj depend all
cd ${.CURDIR}/sys/modules/aic7xxx/aicasm; \
cd ${KERNSRCDIR}/modules/aic7xxx/aicasm; \
MAKEOBJDIRPREFIX=${KRNLOBJDIR}/${_kernel}/modules \
${MAKE} -DNO_CPU_CFLAGS ${target}
.endfor