Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Dec 2014 17:32:17 -0800
From:      Alfred Perlstein <alfred@freebsd.org>
To:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   cross installing freebsd?
Message-ID:  <5483AE21.8090306@freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5483AE21.8090306>