From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 7 01:32:44 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 DF33E892 for ; Sun, 7 Dec 2014 01:32:44 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [IPv6:2001:470:1f05:b76::196]) by mx1.freebsd.org (Postfix) with ESMTP id CCA4BBD0 for ; Sun, 7 Dec 2014 01:32:44 +0000 (UTC) Received: from AlfredMacbookAir.local (c-76-21-10-192.hsd1.ca.comcast.net [76.21.10.192]) by elvis.mu.org (Postfix) with ESMTPSA id 83C2D341F867 for ; Sat, 6 Dec 2014 17:32:44 -0800 (PST) Message-ID: <5483AE21.8090306@freebsd.org> Date: Sat, 06 Dec 2014 17:32:17 -0800 From: Alfred Perlstein Organization: FreeBSD User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: FreeBSD Hackers Subject: cross installing freebsd? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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 01:32:45 -0000 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 Seems to work nicely. Any objections if I add something like this target as "cross-installworld" and "cross-installkernel" to top level Makefile? -Alfred