Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Dec 2014 13:30:23 +0000
From:      Baldur Gislason <baldur@foo.is>
To:        Alfred Perlstein <alfred@freebsd.org>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: cross installing freebsd?
Message-ID:  <20141208133023.GX2775@gremlin.foo.is>
In-Reply-To: <5483AE21.8090306@freebsd.org>
References:  <5483AE21.8090306@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
I used to install my Soekris by mounting its hard drive on my
desktop machine and doing a make kernel/world with the soekris hard drive as a
target directory. Granted this was on an i386 host, I guess I never tried
it on amd64.

Baldur

On Sat, Dec 06, 2014 at 05:32:17PM -0800, Alfred Perlstein wrote:
> 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
> _______________________________________________
> 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"



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