* Re: [ptxdist] Host and target triplets
[not found] <CABDcavayw4v-Bo_=vcq95ZPSKg-EqZ3waoxQx2S+TXMHtvFayA@mail.gmail.com>
@ 2021-07-21 15:15 ` Michael Olbrich
[not found] ` <CABDcavZ=Xw0mM7u96CiTbMLjJR0f8BUuvpZsX=dCJz8KjhB0Xw@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Michael Olbrich @ 2021-07-21 15:15 UTC (permalink / raw)
To: Guillermo Rodriguez Garcia; +Cc: ptxdist
Hi,
On Wed, Jul 21, 2021 at 04:07:34PM +0200, Guillermo Rodriguez Garcia wrote:
> Are there any variables in ptxdist holding the host and target triplets,
> such as:
>
> Host: x86_64-unknown-linux-gnu
> Target: amrv7-unknown-linux-gnueabihf
I assume, you mean variables that can be used in the package rules.
There are multiple variables available. In your example that would be:
PTXCONF_GNU_TARGET = amrv7-unknown-linux-gnueabihf
PTXCONF_COMPILER_PREFIX = amrv7-unknown-linux-gnueabihf-
GNU_HOST = x86_64-host-linux-gnu
Note that GNU_HOST has '-host-' instead of '-unknown-'. This is ab git of a
hack to support x86_64-unknown-linux-gnu for the target: If host and target
are the same then the packages won't be cross-compiled.
Regards,
Michael
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ptxdist] Host and target triplets
[not found] ` <CABDcavY-LufP5j_MO-chtnj2tSSF_z0QK52QN75Xpq=QScXGVQ@mail.gmail.com>
@ 2021-07-22 11:00 ` Michael Olbrich
[not found] ` <CABDcavYTsVvtKZxnGC0BUbckFLTXN-Xtbk+zXbXG7xDEyh4Kbg@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Michael Olbrich @ 2021-07-22 11:00 UTC (permalink / raw)
To: Guillermo Rodriguez Garcia; +Cc: ptxdist
On Thu, Jul 22, 2021 at 12:29:49PM +0200, Guillermo Rodriguez Garcia wrote:
> El mié, 21 jul 2021 a las 18:35, Guillermo Rodriguez Garcia (<
> guille.rodriguez@gmail.com>) escribió:
> > El mié, 21 jul 2021 a las 17:15, Michael Olbrich (<
> > m.olbrich@pengutronix.de>) escribió:
> >> On Wed, Jul 21, 2021 at 04:07:34PM +0200, Guillermo Rodriguez Garcia
> >> wrote:
> >> > Are there any variables in ptxdist holding the host and target triplets,
> >> > such as:
> >> >
> >> > Host: x86_64-unknown-linux-gnu
> >> > Target: amrv7-unknown-linux-gnueabihf
> >>
> >> I assume, you mean variables that can be used in the package rules.
> >> There are multiple variables available. In your example that would be:
> >>
> >> PTXCONF_GNU_TARGET = amrv7-unknown-linux-gnueabihf
> >> PTXCONF_COMPILER_PREFIX = amrv7-unknown-linux-gnueabihf-
> >>
> >
> Something does not seem to work as expected, value of PTXCONF_GNU_TARGET is
> arm-v7a-linux-gnueabihf whereas I need armv7-unknown-linux-gnueabihf. Is
> there a standard way to translate between the two?
Right, so you don't need the GNU tripple from the toolchain. So the
question is, what exactly is armv7-unknown-linux-gnueabihf? What do you
need it for?
Michael
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ptxdist] Host and target triplets
[not found] ` <CABDcavYTsVvtKZxnGC0BUbckFLTXN-Xtbk+zXbXG7xDEyh4Kbg@mail.gmail.com>
@ 2021-07-23 9:20 ` Michael Olbrich
0 siblings, 0 replies; 3+ messages in thread
From: Michael Olbrich @ 2021-07-23 9:20 UTC (permalink / raw)
To: Guillermo Rodriguez Garcia; +Cc: ptxdist
On Thu, Jul 22, 2021 at 11:15:34PM +0200, Guillermo Rodriguez Garcia wrote:
> El jueves, 22 de julio de 2021, Michael Olbrich <m.olbrich@pengutronix.de>
> escribió:
> > On Thu, Jul 22, 2021 at 12:29:49PM +0200, Guillermo Rodriguez Garcia wrote:
> > > El mié, 21 jul 2021 a las 18:35, Guillermo Rodriguez Garcia (<
> > > guille.rodriguez@gmail.com>) escribió:
> > > > El mié, 21 jul 2021 a las 17:15, Michael Olbrich (<
> > > > m.olbrich@pengutronix.de>) escribió:
> > > >> On Wed, Jul 21, 2021 at 04:07:34PM +0200, Guillermo Rodriguez Garcia
> > > >> wrote:
> > > >> > Are there any variables in ptxdist holding the host and target
> > triplets,
> > > >> > such as:
> > > >> >
> > > >> > Host: x86_64-unknown-linux-gnu
> > > >> > Target: amrv7-unknown-linux-gnueabihf
> > > >>
> > > >> I assume, you mean variables that can be used in the package rules.
> > > >> There are multiple variables available. In your example that would be:
> > > >>
> > > >> PTXCONF_GNU_TARGET = amrv7-unknown-linux-gnueabihf
> > > >> PTXCONF_COMPILER_PREFIX = amrv7-unknown-linux-gnueabihf-
> > > >>
> > > >
> > > Something does not seem to work as expected, value of PTXCONF_GNU_TARGET
> > is
> > > arm-v7a-linux-gnueabihf whereas I need armv7-unknown-linux-gnueabihf. Is
> > > there a standard way to translate between the two?
> >
> > Right, so you don't need the GNU tripple from the toolchain. So the
> > question is, what exactly is armv7-unknown-linux-gnueabihf? What do you
> > need it for?
>
>
> It is a Rust target spec. I need this in order to download the right
> rust-std for the target.
Hmm, when I added rustc to OSELAS.Toolchain 2021.07.0 I had the same
problem. In the end I just hardcoded it in the config file. I had to create
a custom spec anyways. There was no exact match for some of the toolchains.
Michael
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-07-23 9:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CABDcavayw4v-Bo_=vcq95ZPSKg-EqZ3waoxQx2S+TXMHtvFayA@mail.gmail.com>
2021-07-21 15:15 ` [ptxdist] Host and target triplets Michael Olbrich
[not found] ` <CABDcavZ=Xw0mM7u96CiTbMLjJR0f8BUuvpZsX=dCJz8KjhB0Xw@mail.gmail.com>
[not found] ` <CABDcavY-LufP5j_MO-chtnj2tSSF_z0QK52QN75Xpq=QScXGVQ@mail.gmail.com>
2021-07-22 11:00 ` Michael Olbrich
[not found] ` <CABDcavYTsVvtKZxnGC0BUbckFLTXN-Xtbk+zXbXG7xDEyh4Kbg@mail.gmail.com>
2021-07-23 9:20 ` Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox