diff options
author | cognet <cognet@FreeBSD.org> | 2006-06-13 00:57:10 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2006-06-13 00:57:10 +0000 |
commit | 9e9a1ba51330635bfd50a15d1fcc1da17615ffef (patch) | |
tree | e3bbfdbcb90b4eb074972faf9ed488ae49c26107 /sys/conf/kern.post.mk | |
parent | bc433053d020be7e4d507d8db69d68d5544548d8 (diff) | |
download | FreeBSD-src-9e9a1ba51330635bfd50a15d1fcc1da17615ffef.zip FreeBSD-src-9e9a1ba51330635bfd50a15d1fcc1da17615ffef.tar.gz |
Handle MFS_IMAGE in the ${FULLKERNEL} target, so that we can build kernel
with MFS root without debugging.
Diffstat (limited to 'sys/conf/kern.post.mk')
-rw-r--r-- | sys/conf/kern.post.mk | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk index 3acd43f..58d6794 100644 --- a/sys/conf/kern.post.mk +++ b/sys/conf/kern.post.mk @@ -68,15 +68,6 @@ ${KERNEL_KO}: ${FULLKERNEL} ${KERNEL_KO}.symbols ${FULLKERNEL} ${.TARGET} ${KERNEL_KO}.symbols: ${FULLKERNEL} ${OBJCOPY} --only-keep-debug ${FULLKERNEL} ${.TARGET} -.if defined(MFS_IMAGE) - @dd if="${MFS_IMAGE}" ibs=8192 of="${KERNEL_KO}" \ - obs=`strings -at d "${KERNEL_KO}" | \ - grep "MFS Filesystem goes here" | awk '{print $$1}'` \ - oseek=1 conv=notrunc 2>/dev/null && \ - strings ${KERNEL_KO} | \ - grep 'MFS Filesystem had better STOP here' > /dev/null || \ - (rm ${KERNEL_KO} && echo 'MFS image too large' && false) -.endif install.debug reinstall.debug: gdbinit cd ${.CURDIR}; ${MAKE} ${.TARGET:R} @@ -99,6 +90,15 @@ ${FULLKERNEL}: ${SYSTEM_DEP} vers.o ${OBJCOPY} --strip-debug ${.TARGET} .endif ${SYSTEM_LD_TAIL} +.if defined(MFS_IMAGE) + @dd if="${MFS_IMAGE}" ibs=8192 of="${KERNEL_KO}" \ + obs=`strings -at d "${KERNEL_KO}" | \ + grep "MFS Filesystem goes here" | awk '{print $$1}'` \ + oseek=1 conv=notrunc 2>/dev/null && \ + strings ${KERNEL_KO} | \ + grep 'MFS Filesystem had better STOP here' > /dev/null || \ + (rm ${KERNEL_KO} && echo 'MFS image too large' && false) +.endif .if !exists(${.OBJDIR}/.depend) ${SYSTEM_OBJS}: assym.s vnode_if.h ${BEFORE_DEPEND:M*.h} ${MFILES:T:S/.m$/.h/} |