Difficulty with armv6 to v7 transition.

Warner Losh imp at bsdimp.com
Sun Oct 15 18:55:35 UTC 2017


On Sun, Oct 15, 2017 at 12:12 PM, Eddy Petrișor <eddy.petrisor at gmail.com>
wrote:

>
> Pe 14 oct. 2017 7:54 PM, "Warner Losh" <imp at bsdimp.com> a scris:
>
>
>
> On Oct 14, 2017 10:43 AM, "Eddy Petrișor" <eddy.petrisor at gmail.com> wrote:
>
> Pe 14 oct. 2017 7:28 AM, "Michal Meloun" <melounmichal at gmail.com> 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 <fbsd at www.zefox.net> wrote:
> >>
> >>> Seems it would have been better to replace
> >>> BUILD_ARCH!=    uname -p
> >>> with
> >>> BUILD_ARCH!= 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=arm TARGET_ARCH=armv7
>
>
> 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?
>
>
% man build

or ./share/man/man7/build.7

Warner


More information about the freebsd-arm mailing list