From owner-p4-projects@FreeBSD.ORG Fri Feb 25 07:24:20 2005 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D5EA016A4D0; Fri, 25 Feb 2005 07:24:19 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B021B16A4CE for ; Fri, 25 Feb 2005 07:24:19 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 989B243D39 for ; Fri, 25 Feb 2005 07:24:19 +0000 (GMT) (envelope-from jmg@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j1P7OJqT037664 for ; Fri, 25 Feb 2005 07:24:19 GMT (envelope-from jmg@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j1P7OJaN037661 for perforce@freebsd.org; Fri, 25 Feb 2005 07:24:19 GMT (envelope-from jmg@freebsd.org) Date: Fri, 25 Feb 2005 07:24:19 GMT Message-Id: <200502250724.j1P7OJaN037661@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jmg@freebsd.org using -f From: John-Mark Gurney To: Perforce Change Reviews Subject: PERFORCE change 71798 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Feb 2005 07:24:20 -0000 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}