Date: Sun, 7 Dec 2014 20:35:01 -0800 From: Garrett Cooper <yaneurabeya@gmail.com> To: Alfred Perlstein <alfred@freebsd.org> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: cross installing freebsd? Message-ID: <D925B118-113F-42CB-8F1F-6B9087F0CF4D@gmail.com> In-Reply-To: <5483AE21.8090306@freebsd.org> References: <5483AE21.8090306@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_B907E66C-64C4-4F6D-B2F9-AC94CE64169D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Dec 6, 2014, at 17:32, Alfred Perlstein <alfred@freebsd.org> wrote: > 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 >=20 > Seems to work nicely. >=20 > Any objections if I add something like this target as = "cross-installworld" and "cross-installkernel" to top level Makefile? Hi Alfred, Reading your examples... 1. I=92m wondering if we should formalize CROSS_BUILD_TESTING in = Makefile.inc1: 188 .if ${MACHINE} =3D=3D ${TARGET} && ${MACHINE_ARCH} =3D=3D = ${TARGET_ARCH} && !defined(CROSS_BUILD_TESTING) 189 OBJTREE=3D ${MAKEOBJDIRPREFIX} 190 .else 191 OBJTREE=3D ${MAKEOBJDIRPREFIX}/${TARGET}.${TARGET_ARCH} 192 .endif 2. MAKEWHATIS seems like it should be added to ITOOLS. Do you = agree? 3. Seems like strip should be added to ITOOLS if = CROSS_BUILD_TESTING is defined (or at the very least LOCAL_ITOOLS). 4. Why did you need to explicitly define the path to INSTALL? Thanks! --Apple-Mail=_B907E66C-64C4-4F6D-B2F9-AC94CE64169D Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJUhSp1AAoJEMZr5QU6S73ekdYH/3DFuLOzZTm9ewc9/512iB6F BCPYoM9Q3bO/59qaN92PBUsSToq+EZVIJSA8F+6mTL+NYt8uWmUyuyYpCZHU1m5/ TuiBSiVU1w+IWmvh6M7Ufp7pnkbnjn3skVp53mV1k+Iv0gWYREtXS8JX3+aKUDF3 PBJeQ0c6jTh3UetxWeDuetwX/TTZ15X7Cgu8xrv/E9CHoDJI1U6itpRoa5pvzlv1 tLWN4Yq4CrFuKYhcO4oxROeCbBxHQUtOIrvZTv6vRhp+bg872KVNhOrvDyzyTTZ0 cAod70Ddxu+70XU6yRF5N3hipdA79VCw4wegR1FG4IGTKubhE38iOkfDCLJsJjE= =HLld -----END PGP SIGNATURE----- --Apple-Mail=_B907E66C-64C4-4F6D-B2F9-AC94CE64169D--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D925B118-113F-42CB-8F1F-6B9087F0CF4D>