Date: Sun, 8 Nov 2015 19:21:28 -0800 From: "Simon J. Gerraty" <sjg@juniper.net> To: Warner Losh <imp@bsdimp.com> Cc: Ed Maste <emaste@freebsd.org>, Marius Strobl <marius@alchemy.franken.de>, Sean Bruno <sbruno@freebsd.org>, <sparc64@freebsd.org>, Justin Hibbits <jrh29@alumni.cwru.edu>, freebsd-arch <freebsd-arch@freebsd.org>, <sjg@juniper.net> Subject: Re: Sparc64 doesn't care about you, and you shouldn't care about Sparc64 Message-ID: <10153.1447039288@chaos> In-Reply-To: <CANCZdfrJfNo2qUn4EG%2BB2ZwN5QgryEPQwPYNs96B46%2Bm6hzonQ@mail.gmail.com> References: <563A5893.1030607@freebsd.org> <2AAC0EF3-528B-476F-BA9C-CDC3004465D0@bsdimp.com> <20151108155501.GA1901@alchemy.franken.de> <CAHSQbTDEUJ=R4BTAx%2BVF55Xb%2BmObhHLgM09%2Bxp-=uP8LbfeoUA@mail.gmail.com> <CAPyFy2ALaBg7jzQSTqkosb9wV=9RMdmc%2BqY2yGWvznt7=yvc7Q@mail.gmail.com> <CANCZdfrJfNo2qUn4EG%2BB2ZwN5QgryEPQwPYNs96B46%2Bm6hzonQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Warner Losh <imp@bsdimp.com> wrote: > Speaking of CROSS_BINUTILS_PREFIX, we need to unify CROSS*PREFIX stuff > with the CROSS_TOOLCHAIN stuff. Two different ways to specify thing. I guess that depends on how they are used. We (Juniper) probably took all this to extremes many years ago, and after a few revisions it can easily get confusing. FWIW for a compiler: /volume/hab/FreeBSD/10/amd64/gcc/jnpr/4.2.1/amd64-juniper-junos.8/bin/amd6= 4-juniper-junos-gcc we currently have something like: TOOLCHAIN_PREFIX =3D /volume/hab/FreeBSD/10/amd64 TOOLCHAIN_${MACHINE} =3D gcc/jnpr/4.2.1/amd64-juniper-junos.8 CROSS_TARGET_${MACHINE} =3D amd64-juniper-junos all the VAR[._]${MACHINE} get resolved like: CROSS_TARGET ?=3D ${CROSS_TARGET_${MACHINE}} COMPILER_TYPE ?=3D ${COMPILER_TYPE_${MACHINE}} if CROSS_TARGET is not empty, then CROSS_TARGET_PREFIX =3D ${CROSS_TARGET}- so all the above combine into BUILD_TOOL_PREFIX =3D ${TOOLCHAIN_PREFIX}/${TOOLCHAIN_${MACHINE}}/bin and you can set CC etc to CC.gcc =3D ${BUILD_TOOL_PREFIX}/${CROSS_TARGET_PREFIX}gcc AS.gcc =3D ${BUILD_TOOL_PREFIX}/${CROSS_TARGET_PREFIX}as etc
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?10153.1447039288>