From owner-freebsd-arch@FreeBSD.ORG Mon Jan 12 18:13:57 2009 Return-Path: Delivered-To: arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56AF610656BB; Mon, 12 Jan 2009 18:13:57 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.freebsd.org (Postfix) with ESMTP id B7E488FC21; Mon, 12 Jan 2009 18:13:56 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from thor.farley.org (HPooka@thor.farley.org [192.168.1.5]) by mail.farley.org (8.14.3/8.14.3) with ESMTP id n0CHlfdO080740; Mon, 12 Jan 2009 11:47:41 -0600 (CST) (envelope-from scf@FreeBSD.org) Date: Mon, 12 Jan 2009 11:47:41 -0600 (CST) From: "Sean C. Farley" To: David Schultz In-Reply-To: <20090111191251.GA74450@zim.MIT.EDU> Message-ID: References: <20090111.095109.-1112748421.imp@bsdimp.com> <20090111172427.GD89178@hoeg.nl> <20090111191251.GA74450@zim.MIT.EDU> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-4.4 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail.farley.org Cc: Ed Schouten , arch@FreeBSD.org Subject: Re: Quick hack to make fast kernel builds easier X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2009 18:13:57 -0000 On Sun, 11 Jan 2009, David Schultz wrote: > On Sun, Jan 11, 2009, Ed Schouten wrote: >> I often just run `make' in /usr/obj/..., >> which also saves some typing, but unfortunately that doesn't work >> when cross compiling. > > Also, as far as I know, there's no convenient way to rebuild a single > module for another architecture. I use the following script called > 'arch' to set the appropriate environment variables, so if I've > already run 'make universe' and I want to rebuild libc for sparc64, I > say: > > cd /usr/src/lib/libc && arch sparc64 make > > It would be nice if there were a better mechanism for this that's > integrated into the build system. *snip shell script* When I am building or installing a kernel and/or world, I use a shell script[1] I wrote awhile back. It could be better ("automatic" option probably does not work and should be removed), but it makes building and installing easier for me. I wonder how many build scripts have been written over the years. Sean 1. http://www.farley.org/freebsd/fbinst.sh -- scf@FreeBSD.org