From owner-freebsd-arm@freebsd.org Sun Oct 15 18:16:16 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 25146E483BB for ; Sun, 15 Oct 2017 18:16:16 +0000 (UTC) (envelope-from eddy.petrisor@gmail.com) Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (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 A50A0820E7; Sun, 15 Oct 2017 18:16:15 +0000 (UTC) (envelope-from eddy.petrisor@gmail.com) Received: by mail-wm0-x22f.google.com with SMTP id i124so29603115wmf.3; Sun, 15 Oct 2017 11:16:15 -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=dPWru0A4v1gdrxKWLPxodx/ZaZQjbJPib214vNqO9eI=; b=eShDwxkY+T+SFv5x0NTEFcYf6hesBBI7Nlucpa6Zhde+lHs2Fu2jisd8Xlfg2o23zQ NBJcbImNh4k7H0ayr7Ju7cgRceTryxGVjIATGd7sYIveeRuab8Qlb/RvRZiBunVDrnWd zKi01t32PqQDQxWZlxRJBe0usIQx+FX+GegbQ2ddwJfjCjjv/0vN1VmqMjkN2n+oR/yd nDFBTzwYrzOBhloYaCdRws7HweZe0A8kenxvSU6EqVsVDwVN+8/fTm3rcQHTO1Jj1nnU nEDydo7eCuv36EP+frnSIQBuvsHNALa9qO0EDx7909DXck5i+k2/ay+1UqB6YyGbmuhC TROQ== 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=dPWru0A4v1gdrxKWLPxodx/ZaZQjbJPib214vNqO9eI=; b=lBO9IbMMAvtVpJM+9JdtTOdeA6RDCXaHLpHjBlSbZFjLB5S0oc2LfwCj1b6UhLcPtB ccaH+JigMW9M9Mn2MFDC19qf5ziJFuNp0yUKWsgdkb5XnBsrg4Q9SalcBQ3mwU+Exkzp qgAoKKDDMfEbrV1majuhIuCnJ7wxnY19X4ZxlUPSIeua7+FtYThGiTt4TsXGlKbPVFk/ lr3Mol9V3FQ6lrVAD6txHtPXXMOC3POo4SLRbKlZK0SauPfvRlKP/uJOK8Y4vkS426KS 7BW0EBWgvwMzX/Er4dKhiztR0cdaYuOgG2J4BAMXtohTZCkqvC3MWHmBH1+IDWT+PLoq xVXA== X-Gm-Message-State: AMCzsaWN2Ny+khXB8LFjWXwqZyjyXDgcCm/XHvXC8le1KvgWvsFafk2k aEWJ5c0suqkyKKqMZvCUEd+n/Hi+1M4V2xVrX5cnug4c X-Google-Smtp-Source: ABhQp+TlWbWMaVzpuXOnPbH1gu1vvhROSaZjsAMcxrXsGEJAH9jSMx9/uC0nVF3Ll70DtI+uFQ0QS7+7Ev3l/92ALHI= X-Received: by 10.28.131.13 with SMTP id f13mr6446384wmd.157.1508091374107; Sun, 15 Oct 2017 11:16:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.173.129 with HTTP; Sun, 15 Oct 2017 11:16:13 -0700 (PDT) Received: by 10.223.173.129 with HTTP; Sun, 15 Oct 2017 11:16:13 -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:16:13 +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:16:16 -0000 Pe 15 oct. 2017 9:12 PM, "Eddy Petri=C8=99or" a s= cris: 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? *the makefile 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