From owner-freebsd-arm@freebsd.org Sun Oct 15 18:55:35 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 33A44E48CAD for ; Sun, 15 Oct 2017 18:55:35 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x235.google.com (mail-io0-x235.google.com [IPv6:2607:f8b0:4001:c06::235]) (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 EE49C82FCC for ; Sun, 15 Oct 2017 18:55:34 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x235.google.com with SMTP id 189so13831152iow.10 for ; Sun, 15 Oct 2017 11:55:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=dQnRrUDhKooSCbA4P42C1vT7zh3L3BUDW6s2GGOHck4=; b=NK6QsWbY66jkx2eAkoZdVJAlAcb7MgbKakMljakG6vw4tWHd/1jcQGTtRf9UGha6Sg m5bD3msjB2t1XBhmIv8UHYhDFNGnghmfYodu6WYfB48wmK1ZTsnsKMiQeFCbEt3z/+I+ 0UioHWkd1hZRDDg0msSfa2TgmPbfHCXNFpmkp+MNr+vtjLStdgVjpeIeE2P4VXARLgV3 gP1L5JYO/8CPvd5deT4NPxLbkh1j2ptENhHtn0pbf0q7DzpbfZP2qu5fwHGuNNH1g7R3 kQTar9ge2oNqoNLRVlX/eT8IbrSyfEQPmq9BeivyYRTk5iJrVvLlmH7mtQCoj+1HnQCD UR+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=dQnRrUDhKooSCbA4P42C1vT7zh3L3BUDW6s2GGOHck4=; b=k+OQq67uvkjM7DYa5iMqn/WCbs3D0GR/16rni2HAZwOOq3wHaMdpTqnCWq1v4Kn+KZ kckISrA64y4A3Bo2xB8PfbIyrRGCQOCGpSeTZwppLOWE3eDg1hFqRMUvTkXkcoJICsDo Kb9RnhE1M6wbXOJOzIoXUngKoAVXNY8Hs03lQwjz7cXt7QOWZFX2wAzScssMURI/bQ6i yXYOYCbh8VvHgtklWhrDjlwyRLbymv86rq7DjXj97aEWvoYCTd9rlT8xu2fCmCFS9XV5 9kqUOtMtPfwBlaoxRMrBiiaq8OXOYhRYa7kBTpixH8sKqxEMSEGCMfOHHOt+BAAFD2dr olTg== X-Gm-Message-State: AMCzsaWtg6QgOPA3rs19cpBWHkUE3yrU0+lJ6RQ4s1wWEPx2cdpIBARr 9FPfCS/BqkBkbtb8LpslPnKKG/1bPpG76gg5wAXy5g== X-Google-Smtp-Source: AOwi7QA/94n5CqvqvNUDrSTi22EeWPKkzBWGm6RGmm+o0EvUkqvKZs1IWj88tN6ZkvKDK8AfJKs0ZvawZTGCeFeg0Cs= X-Received: by 10.107.114.5 with SMTP id n5mr10495657ioc.291.1508093734091; Sun, 15 Oct 2017 11:55:34 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.94.130 with HTTP; Sun, 15 Oct 2017 11:55:33 -0700 (PDT) X-Originating-IP: [2603:300b:6:5100:a0b5:c8ee:5cc8:3aa5] 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: Warner Losh Date: Sun, 15 Oct 2017 12:55:33 -0600 X-Google-Sender-Auth: qlu6zcPstqzvKAqY71YH-I5DqvY Message-ID: Subject: Re: Difficulty with armv6 to v7 transition. To: =?UTF-8?Q?Eddy_Petri=C8=99or?= Cc: Michal Meloun , "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:55:35 -0000 On Sun, Oct 15, 2017 at 12:12 PM, Eddy Petri=C8=99or wrote: > > Pe 14 oct. 2017 7:54 PM, "Warner Losh" a scris: > > > > On Oct 14, 2017 10:43 AM, "Eddy Petri=C8=99or" = wrote: > > 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=3Darm= v7 > > > I have been trying recently to add support for cross building FreeBSD fro= m > 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 cros= s > 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 ar= e > 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? > > % man build or ./share/man/man7/build.7 Warner