Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Feb 2005 07:24:19 GMT
From:      John-Mark Gurney <jmg@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 71798 for review
Message-ID:  <200502250724.j1P7OJaN037661@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=71798

Change 71798 by jmg@jmg_carbon on 2005/02/25 07:24:13

	first bit of letting you define a makeoptions MFS_IMAGE that will
	auto populate your kernel with said image.. it doesn't warn/fail
	if the mfs image is too large, but that is easy enough to fix..

Affected files ...

.. //depot/projects/arm/src/sys/conf/kern.post.mk#2 edit

Differences ...

==== //depot/projects/arm/src/sys/conf/kern.post.mk#2 (text+ko) ====

@@ -66,6 +66,9 @@
 FULLKERNEL=	${KERNEL_KO}.debug
 ${KERNEL_KO}: ${FULLKERNEL}
 	${OBJCOPY} --strip-debug ${FULLKERNEL} ${KERNEL_KO}
+.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
+.endif
 install.debug reinstall.debug: gdbinit
 	cd ${.CURDIR}; ${MAKE} -DINSTALL_DEBUG ${.TARGET:R}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502250724.j1P7OJaN037661>