From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 7 17:36:52 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 78115504 for ; Sun, 7 Dec 2014 17:36:52 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [IPv6:2001:470:1f05:b76::196]) by mx1.freebsd.org (Postfix) with ESMTP id 66A17C59 for ; Sun, 7 Dec 2014 17:36:52 +0000 (UTC) Received: from [10.0.1.20] (c-76-21-10-192.hsd1.ca.comcast.net [76.21.10.192]) by elvis.mu.org (Postfix) with ESMTPSA id D1681341F84E; Sun, 7 Dec 2014 09:36:51 -0800 (PST) Subject: Re: cross installing freebsd? Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Alfred Perlstein In-Reply-To: <54847206.8070107@xenet.de> Date: Sun, 7 Dec 2014 09:36:50 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <73D1FFAD-4E79-4561-B383-5D1F794C4688@mu.org> References: <5483AE21.8090306@freebsd.org> <54847206.8070107@xenet.de> To: Matthias Meyser X-Mailer: Apple Mail (2.1283) Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Dec 2014 17:36:52 -0000 On Dec 7, 2014, at 7:28 AM, Matthias Meyser wrote: > Hi all >=20 > Am 07.12.2014 um 02:32 schrieb Alfred Perlstein: >> Hey folks, >>=20 >> In order to make installation of a new world/kernel on my i386 = soekris a LOT faster/easier I've taken to doing builds on an amd64 host = and then "cross-installing" >>=20 >> Steps are as follows: >>=20 >> On amd64 host: >> /usr/trees/freebsd.git % env TARGET=3Di386 make -j8 buildworld && env = TARGET=3Di386 make -j8 buildkernel >>=20 >> On i386 host: >> mount spigot:/usr/trees /usr/trees >> mount spigot:/usr/obj /usr/obj >> cd /usr/trees/freebsd.git >> # install kernel: >> env MAKEOBJDIRPREFIX=3D/usr/obj/i386.i386 CC=3D/usr/bin/cc \ >> INSTALL=3D/usr/bin/install \ >> make installkernel >> # install world: >> env MAKEOBJDIRPREFIX=3D/usr/obj/i386.i386 CC=3D/usr/bin/cc \ >> INSTALL=3D/usr/bin/install STRIPBIN=3D/usr/bin/strip \ >> MAKEWHATIS=3D/usr/bin/makewhatis \ >> make installworld > Thank you! You are my hero. > This bothers me a long time. Even on arm. >=20 >=20 >> Seems to work nicely. >> Any objections if I add something like this target as = "cross-installworld" and "cross-installkernel" to top level Makefile? >=20 > It would be much nicer if the normal install* would handle this = automatically. > Someone should teach the Makesystem to build the = installboottrapbinaries > not only for the HOST system but also for the Targetsystem. >=20 > Then normal install would just work. I wish I had time to do that, but I really do not have time to sort how = to determine that reliably, also people have been pretty upset if = anything in the build changes lately and anything breaks. So I am very = afraid to touch any defaults. Due to time and the pressure to not break anything I can do one of two = things: 1) clean up the two targets I've submitted and put them in a = Makefile.cross-install, then document them in the main Makefile. 2) Keep this code in my own repo. Sorry. Let me know if there is a way forward with 1 for the time being? -Alfred >=20 >=20 >=20 > - Matthias >=20 > --=20 > Matthias Meyser | XeNET GmbH > Tel.: +49-5323-9489050 | 38678 Clausthal-Zellerfeld, Marktstrasse = 40 > Fax: +49-5323-9489059 | Registergericht: Amtsgericht Braunschweig = HRB 110823 > Email: Meyser@xenet.de | Geschaeftsfuehrer: Matthias Meyser >=20 > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to = "freebsd-hackers-unsubscribe@freebsd.org" >=20