From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 7 15:49:53 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0DDB47DC for ; Sun, 7 Dec 2014 15:49:53 +0000 (UTC) Received: from server1.xenet.de (server1.xenet.de [213.221.94.201]) by mx1.freebsd.org (Postfix) with ESMTP id 92A2EF85 for ; Sun, 7 Dec 2014 15:49:51 +0000 (UTC) Received: from [10.1.0.50] (tubercel-gate.xenet.de [213.221.94.54]) (authenticated bits=0) by server1.xenet.de (8.12.5/8.12.5) with ESMTP id sB7FOv0Y009444 for ; Sun, 7 Dec 2014 16:25:01 +0100 (CET) (envelope-from Meyser@xenet.de) Message-ID: <54847206.8070107@xenet.de> Date: Sun, 07 Dec 2014 16:28:06 +0100 From: Matthias Meyser User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: cross installing freebsd? References: <5483AE21.8090306@freebsd.org> In-Reply-To: <5483AE21.8090306@freebsd.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.38 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 15:49:53 -0000 Hi all Am 07.12.2014 um 02:32 schrieb Alfred Perlstein: > Hey folks, > > 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" > > Steps are as follows: > > On amd64 host: > /usr/trees/freebsd.git % env TARGET=i386 make -j8 buildworld && env > TARGET=i386 make -j8 buildkernel > > On i386 host: > mount spigot:/usr/trees /usr/trees > mount spigot:/usr/obj /usr/obj > cd /usr/trees/freebsd.git > # install kernel: > env MAKEOBJDIRPREFIX=/usr/obj/i386.i386 CC=/usr/bin/cc \ > INSTALL=/usr/bin/install \ > make installkernel > # install world: > env MAKEOBJDIRPREFIX=/usr/obj/i386.i386 CC=/usr/bin/cc \ > INSTALL=/usr/bin/install STRIPBIN=/usr/bin/strip \ > MAKEWHATIS=/usr/bin/makewhatis \ > make installworld Thank you! You are my hero. This bothers me a long time. Even on arm. > Seems to work nicely. > Any objections if I add something like this target as > "cross-installworld" and "cross-installkernel" to top level Makefile? 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. Then normal install would just work. - Matthias -- 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