From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 8 04:35:04 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 09994C19; Mon, 8 Dec 2014 04:35:04 +0000 (UTC) Received: from mail-pd0-x235.google.com (mail-pd0-x235.google.com [IPv6:2607:f8b0:400e:c02::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C7281100; Mon, 8 Dec 2014 04:35:03 +0000 (UTC) Received: by mail-pd0-f181.google.com with SMTP id v10so4392110pde.12 for ; Sun, 07 Dec 2014 20:35:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=Isj+dHQyCiA7fwR1g7HygDTN/JiuScE8m+92EWcFIxU=; b=GzA/A0HAoeXjECQGcULOc9jM7AF24yO9phFmDQHH9P00w9OucV9sawnL7MTvM/6ct0 wzkoZ+z/brLTn6sJqu9PPRyP6/ib28JEHgYzFJvfKbl0uD6EgVw1Ix3KT5wh0wPopmDf wmZ+TP2FWbOvdpQ20mqex6/r8RFu7WPe8Vg3oTwSq76gX0G3zFvvqTAuvCbXdqyxBwZa EMk323+dLPge2Yb7lKR3DugykIU886HXuShh2RCVpfVyxv5aIjsblrYOiyL4DDBE0atR Ur8MXtxtka0QERmlLDdezj1ACrPHNQbQPOMhx4K9JamkcfjmSSY8RFYy40sgHqwuuiqe E3ig== X-Received: by 10.69.16.69 with SMTP id fu5mr57224293pbd.159.1418013303109; Sun, 07 Dec 2014 20:35:03 -0800 (PST) Received: from ?IPv6:2601:8:ab80:7d6:f855:3c8d:38d3:b94b? ([2601:8:ab80:7d6:f855:3c8d:38d3:b94b]) by mx.google.com with ESMTPSA id qd2sm19225016pdb.0.2014.12.07.20.35.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 07 Dec 2014 20:35:02 -0800 (PST) Content-Type: multipart/signed; boundary="Apple-Mail=_B907E66C-64C4-4F6D-B2F9-AC94CE64169D"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: cross installing freebsd? From: Garrett Cooper In-Reply-To: <5483AE21.8090306@freebsd.org> Date: Sun, 7 Dec 2014 20:35:01 -0800 Message-Id: References: <5483AE21.8090306@freebsd.org> To: Alfred Perlstein X-Mailer: Apple Mail (2.1878.6) Cc: FreeBSD Hackers 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: Mon, 08 Dec 2014 04:35:04 -0000 --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 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--