From owner-freebsd-current Mon Sep 24 20:21:40 2001 Delivered-To: freebsd-current@freebsd.org Received: from kayak.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by hub.freebsd.org (Postfix) with ESMTP id DA07E37B41D; Mon, 24 Sep 2001 20:21:12 -0700 (PDT) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by kayak.xcllnt.net (8.11.4/8.11.4) with ESMTP id f8P3LBI23416; Mon, 24 Sep 2001 20:21:11 -0700 (PDT) (envelope-from marcel@kayak.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.11.6/8.11.3) id f8P3LOj02651; Mon, 24 Sep 2001 20:21:24 -0700 (PDT) (envelope-from marcel) Date: Mon, 24 Sep 2001 20:21:23 -0700 From: Marcel Moolenaar To: Takahashi Yoshihiro Cc: current@FreeBSD.org Subject: Re: Fix sysinstall problem Message-ID: <20010924202123.A2151@dhcp01.pn.xcllnt.net> References: <20010924.165316.74191154.yosihiro@cc.kogakuin.ac.jp> <20010924120009.A32943@gauss.cup.hp.com> <20010925.112758.68560699.yosihiro@cc.kogakuin.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20010925.112758.68560699.yosihiro@cc.kogakuin.ac.jp> User-Agent: Mutt/1.3.21i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Sep 25, 2001 at 11:27:58AM +0900, Takahashi Yoshihiro wrote: > > > > > > It uses the boot programs in /boot. So, even if we change boot0 and/or > > > mbr, the new sysinstall includes old one. And, it breaks cross > > > building, too. > > > > > > > I'm not sure this is the right way to do it. Aren't we already building > > sys/boot as part of buildworld? > > The boot0 and mbr images are needed for making makedevs.c. And, > makedes.c is made by depend target. So, we need building boot images > before running depend target (of course, before all target). I'd rather we remove the ordering constraint so that we don't have to introduce a new mini-phase and thus keep the build clean. The boot code is already being built, just not when it's needed by sysinstall's depend target. Idea 1: Since we know how large the binaries are going to be, is it viable to backpatch the boot0 and mbr images into the binary and only reserve the space during compilation? This is probably less portable than the following: Idea 2: We could link boot0.o and mbr.o into sysinstall. Currently both object files contain a global symbol 'start'. It doesn't look to me that those symbols should be named start, so we can rename them to 'boot0_start' and 'mbr_start'. These symbols can then be used in sysinstall to get to the bits. Thoughts? -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message