summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2002-11-03 23:48:14 +0000
committerscottl <scottl@FreeBSD.org>2002-11-03 23:48:14 +0000
commit974996d4b915760f1e3b6ec4ed8ed8e96628b940 (patch)
treecd6f59bd1009a739b31efb23814cb6022f101aba /Makefile.inc1
parenta743b5e38f147e7abd37782544a0cabf73fdb6cc (diff)
downloadFreeBSD-src-974996d4b915760f1e3b6ec4ed8ed8e96628b940.zip
FreeBSD-src-974996d4b915760f1e3b6ec4ed8ed8e96628b940.tar.gz
Hook the aic7xxx modules up. This requires some extra care since aicasm
is a compiler tool and needs to be compiled by the host compiler. I've tested this in i386->sparc cross-build, 4.7->current upgrade, normal buildkernel target, and normal /sys/i386/compile/GENERIC configurations. Submitted by: ru
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc119
1 files changed, 16 insertions, 3 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index a72e529..7074d05 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -492,12 +492,21 @@ buildkernel:
cd ${KRNLOBJDIR}/${_kernel}; \
MAKESRCPATH=${KRNLSRCDIR}/dev/aic7xxx/aicasm \
${MAKE} -DNO_CPU_CFLAGS -f ${KRNLSRCDIR}/dev/aic7xxx/aicasm/Makefile
+.if !defined(MODULES_WITH_WORLD) && !defined(NO_MODULES) && exists(${KRNLSRCDIR}/modules)
+ cd ${KRNLOBJDIR}/${_kernel}; \
+ ${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} modules-obj
+ cd ${.CURDIR}/sys/modules/aic7xxx/aicasm; \
+ MAKEOBJDIRPREFIX=${KRNLOBJDIR}/${_kernel}/modules \
+ ${MAKE} -DNO_CPU_CFLAGS depend; \
+ MAKEOBJDIRPREFIX=${KRNLOBJDIR}/${_kernel}/modules \
+ ${MAKE} -DNO_CPU_CFLAGS all
+.endif
.if !defined(NO_KERNELDEPEND)
cd ${KRNLOBJDIR}/${_kernel}; \
- ${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} depend
+ ${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} depend -DNO_MODULES_OBJ
.endif
cd ${KRNLOBJDIR}/${_kernel}; \
- ${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} all
+ ${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} all -DNO_MODULES_OBJ
@echo "--------------------------------------------------------------"
@echo ">>> Kernel build for ${_kernel} completed on `LC_ALL=C date`"
@echo "--------------------------------------------------------------"
@@ -608,6 +617,10 @@ bootstrap-tools:
#
# build-tools: Build special purpose build tools
#
+.if defined(MODULES_WITH_WORLD) && exists(${KRNLSRCDIR}/modules)
+_aicasm= sys/modules/aic7xxx/aicasm
+.endif
+
.if exists(${.CURDIR}/share) && !defined(NOSHARE)
_share= share/syscons/scrnmaps
.endif
@@ -630,7 +643,7 @@ _libkrb5= kerberos5/lib/libroken kerberos5/lib/libvers \
build-tools:
.for _tool in bin/csh bin/sh gnu/usr.bin/cc/cc_tools ${_fortran} \
${_libroken4} ${_libkrb5} lib/libncurses ${_share} \
- usr.bin/awk usr.bin/file usr.sbin/sysinstall
+ ${_aicasm} usr.bin/awk usr.bin/file usr.sbin/sysinstall
${ECHODIR} "===> ${_tool}"; \
cd ${.CURDIR}/${_tool}; ${MAKE} DIRPRFX=${_tool}/ build-tools
.endfor
OpenPOWER on IntegriCloud