From owner-freebsd-arm@freebsd.org Sun Oct 15 18:12:55 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A265BE481F9 for ; Sun, 15 Oct 2017 18:12:55 +0000 (UTC) (envelope-from eddy.petrisor@gmail.com) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 24F8081EBC; Sun, 15 Oct 2017 18:12:55 +0000 (UTC) (envelope-from eddy.petrisor@gmail.com) Received: by mail-wm0-x22b.google.com with SMTP id f4so30301761wme.0; Sun, 15 Oct 2017 11:12:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=GgaA1p0fckS/xkVcv6xLVDzsEsvBNZIgKR6q+KUe7ZU=; b=lQtQhyojgO8HxC+FGaUsyYwlWOrCCK1lfFegG/cI2ZXxEl32ZydXINg2RqbZo8itB/ k1v4eb9Naih+tbErH9CLnqBDJFvTEMexjSxQgiDVxTNAku8x5VekbelUPdx030TPPuGo nxK3UtUNTpQjgjfX7FkDZDvo2gatb3IF3iJMhW9EuJYF/+ht3IFRmkAVnHDj8xY1EJVu D6iikcyNeQDPjirObNd9+31U3zaESovHtp9Su463keH73afcdVYvU1qcozQoYzBW5gJQ jN6evAD2IxfyOWlHD4QhpKPC6VsjYV3KKMQVMBPRKgzENfLVicYOiCkOA1c7erd9VE7D KgiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=GgaA1p0fckS/xkVcv6xLVDzsEsvBNZIgKR6q+KUe7ZU=; b=LPvOPB3mMMSKrKCJUaBBQn86DXDX8R02pe5Ps6C2JemOipqeoIbqRYsD8SH1L76yFW rCDyVJaLDs/TaTx3keQ7+AgTiUe0TsNyCL8CN42Sf8v8H1VH0kaSRdac5+G/e+Q09MLB tiInJ/DUnKg6dgGzDXzgrD0GWBX82TuCihL2OK36tkOqqDxpvPWtfI13DXfhto6GHusT v+qx2kBdmt48wSS350sBBS6cE03X+X1aUxwO4tDy8DOq8EGMhiybaAJdxoCWqblfiOt4 VxsrBpvUcVJu52CWTpi8UihMXBkdy6hWzY8IucrwemhUqmIQmQr6U8UIM/04v+qzNESw az9w== X-Gm-Message-State: AMCzsaWK0JT3DFW+W4gYD2KoxgkLKXkP0ekGt7bZ0Z4mOBNX+XR11iDV lCu771ERJCDypfmApDiEGb+/fEC2uPzLheaRts0= X-Google-Smtp-Source: ABhQp+QWZHyIWWZlUOucntjQM4e64ona4FACTBNDHN2BKs8WxccLJjaFo00fOuiBpTiCl6F6GNd6isUfm0RphFnfX1M= X-Received: by 10.28.92.136 with SMTP id q130mr5387293wmb.35.1508091173541; Sun, 15 Oct 2017 11:12:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.173.129 with HTTP; Sun, 15 Oct 2017 11:12:52 -0700 (PDT) Received: by 10.223.173.129 with HTTP; Sun, 15 Oct 2017 11:12:52 -0700 (PDT) In-Reply-To: References: <1507573171.84167.9.camel@freebsd.org> <20171011023356.GA57571@www.zefox.net> <20171011030021.GB57571@www.zefox.net> <20171013020604.GA70845@www.zefox.net> <20171013175943.GA74121@www.zefox.net> <20171014010713.GA75288@www.zefox.net> <254A2C41-59A9-4E4E-8982-ADDBAE2B5F91@dsl-only.net> <20171014021133.GB75288@www.zefox.net> <39f6419f-48f3-aaec-dfa4-3048c8a893d8@freebsd.org> From: =?UTF-8?Q?Eddy_Petri=C8=99or?= Date: Sun, 15 Oct 2017 21:12:52 +0300 Message-ID: Subject: Re: Difficulty with armv6 to v7 transition. To: Warner Losh Cc: mmel@freebsd.org, freebsd-arm@freebsd.org, bob prohaska Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Oct 2017 18:12:55 -0000 Pe 14 oct. 2017 7:54 PM, "Warner Losh" a scris: On Oct 14, 2017 10:43 AM, "Eddy Petri=C8=99or" wr= ote: Pe 14 oct. 2017 7:28 AM, "Michal Meloun" a scris: On 14.10.2017 4:11, bob prohaska wrote: > On Fri, Oct 13, 2017 at 06:27:22PM -0700, Mark Millard wrote: >> On 2017-Oct-13, at 6:07 PM, bob prohaska wrote: >> >>> Seems it would have been better to replace >>> BUILD_ARCH!=3D uname -p >>> with >>> BUILD_ARCH!=3D echo armv7 >>> for present purposes. >> >> Are you starting under armv6 ? armv7 ? > I'm afraid it's a mix, due to some untimely foot-shooting. > > Uname - p reports armv7, but clang -v reports > FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0) > Target: armv6-unknown-freebsd12.0-gnueabihf > Thread model: posix > InstalledDir: /usr/bin > > I'll keep trying to unscramble the mess I've made until an armv7 RPI2 > snapshot is released, then start over if necessary. > > Thanks for reading! > > bob prohaska > Bob, can you please try this? setenv MACHINE_ARCH armv7; make buildworld TARGET=3Darm TARGET_ARCH=3Darmv7 I have been trying recently to add support for cross building FreeBSD from Linux and concluded that MACHINE is the system on which the build is done. At the start of the build, yes. But we set it while doing the actual cross build to the target. You mean that although at the beginning of the cross build MACHINE* relates to the build system, later it relates to some other different meaning? I don't think I found BUILD* meaning yet. That's because they are internal and should never be messed with. They are a detail we don't commit to keeping. If they matter, we have done something wrong. What are the ones "set in stone"? The ones documented in the meanwhile? Unfortunately I concluded the FreeBSD build system would really benefit from a clean-up in terms of variables and documenting their use. May I suggest creating a wiki page documenting the usage a clean up can be done? We do document most of them in build man page. That's what should be updated. It spells this stuff out. Where can I find this in the source tree? Warner Eddy Petri=C8=99or