From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 8 10:04:09 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 C052494C; Mon, 8 Dec 2014 10:04:09 +0000 (UTC) Received: from mail-pa0-x22a.google.com (mail-pa0-x22a.google.com [IPv6:2607:f8b0:400e:c03::22a]) (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 872469F6; Mon, 8 Dec 2014 10:04:09 +0000 (UTC) Received: by mail-pa0-f42.google.com with SMTP id et14so4976401pad.1 for ; Mon, 08 Dec 2014 02:04:09 -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=wh7HwlJj1sWKymiKz/edDr5vXH6FsUh7seRw2p8cCpE=; b=h5p7sucfhxJcy3wZL4TA6c6MQTE1Xn3Vo6H6eT5pyVeR5Dh7cp4NyobapWdAtrZLQz Wt768DmeULn4nA9e56GTM5qwa5y9HzTOJ6EgSy7H11KZv4/GssVUC8cKknz9UR3tihtc Se6pPt8KZmIhWcXNr/7D+IqjR2Lgl00iVmNpNZA4gS+CPQUS1Yh2k5xpIrwgdU5s197D 6ovs4zfYgR7HMyzTuTXiYAllD6msQkLVII+qrKTiGvL/rZBz40WLCklU2QXICyYNHUNH fkQ0zjixQXjkyJdC9ttjJ4vTNmBlvl3ONZbeVXa77maA2Cq4WHc7nQS8JrQg09x24Zu/ k8/w== X-Received: by 10.66.138.41 with SMTP id qn9mr52198646pab.82.1418033049056; Mon, 08 Dec 2014 02:04:09 -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 fb7sm36205665pab.10.2014.12.08.02.04.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 08 Dec 2014 02:04:08 -0800 (PST) Content-Type: multipart/signed; boundary="Apple-Mail=_01A83CEE-0155-488F-8325-AE4CF7676EB6"; 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: <613884DA-F978-4D9F-9E37-D39581EFEA61@freebsd.org> Date: Mon, 8 Dec 2014 02:04:06 -0800 Message-Id: <26F569E9-3E70-4CE7-810F-5427FF1C7EA0@gmail.com> References: <5483AE21.8090306@freebsd.org> <613884DA-F978-4D9F-9E37-D39581EFEA61@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 10:04:09 -0000 --Apple-Mail=_01A83CEE-0155-488F-8325-AE4CF7676EB6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Dec 7, 2014, at 21:48, Alfred Perlstein wrote: >> Hi Alfred, >> Reading your examples... >> 1. I=92m wondering if we should formalize CROSS_BUILD_TESTING in = Makefile.inc1: >>=20 >> 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 >>=20 >> 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! >=20 > To be honest I have a gist as to what you're saying but I think the = build is suffering from shibboleth-itis. Meaning it's not serviceable = unless you're intimately familiar with it=85 Right. I didn=92t know about all of these magic things until I started = reading the Makefiles :). > I *guess* that ITOOLS or maybe LOCAL_ITOOLS means programs needed to = installworld/installkernel? Yes. Basically for things that can be replaced while make installworld = is run, or as Makefile.inc1 says=85 "# Required install tools to be saved in a scratch dir for safety.=94 All the libraries for the tools are backed up so if the tools get = replaced while make distributeworld/installworld is running, your system = won=92t be hosed (that=92s why make installworld works for me the = majority of the time, if cp gets replaced and ABI changes =97 not = always, but oftentimes). > If so, then yes, makewhatis needs to be added to that. Review opened for that issue: https://reviews.freebsd.org/D1280 > As far as everything else written: > no idea what "CROSS_BUILD_TESTING" means, it's not documented anywhere = I can see in the makefile. It=92s something that ru@ introduced (probably to do comparisons between = architectures). I haven=92t quite tracked down why make tinderbox works = with TARGET_ARCH/TARGET set to the host values, but I=92ll probably = figure it out soon. > I can't decode if there will be a target that "just works" for doing a = cross-install, will there be? What will it be named and how will people = invoke it? >=20 > Can we have cross-installworld and cross-installkernel targets please? Setting TARGET/TARGET_ARCH should be sufficient in an ideal world. = Jumping through hoops to do this with a myriad of variables which should = be automatically determined via sane defaults seems wrong/unusable=85 = there shouldn=92t be a reason for why we need to introduce autoconf = variable style hell for building/installing world, unless someone is = intentionally skating around sane defaults. I think that creating more custom targets will only complicate/muddle = the build process, and create more potential for bugs like the one that = I just addressed with xdev. Thanks! --Apple-Mail=_01A83CEE-0155-488F-8325-AE4CF7676EB6 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 iQEcBAEBCgAGBQJUhXeWAAoJEMZr5QU6S73edM0H/iuNhF/ZGdu8+NvVzr6krQ3s rkzNWELvsL/mDDgs6ItZqGW3gbE0y9sej3tsKjFmkn/d3AZNygZDSyaIjjLRla6d iSi1dc8uhE1oDEAZuChr7qhudEQ2IEcb0WbGhPoHgdO4Ts0KK6PWku6ZikdhJKoI KVtsm56cO0UjpqCoLoviBdEyloecpbYYGFkGl5zexuHgAbMmM4jB4KHtsLUX3uH0 Zih2K89MxBrE5kxaBpSAawylDo2TEz8W6Bp6v0Hcn7E+QlTDS8HOhJ9OYWLz7r14 ibtVUiBGKOA1D7jWDm/y9zdyZOe0xzurbrDteiMeyxQcDaZNygQ7Cfxelhpy+vo= =HtXj -----END PGP SIGNATURE----- --Apple-Mail=_01A83CEE-0155-488F-8325-AE4CF7676EB6--