mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 2/2] gdb, gdbserver: prefer the source md5sum from the toolchain
Date: Mon, 12 Nov 2018 12:47:32 +0100	[thread overview]
Message-ID: <20181112114732.gigmi5mtqop56pyn@pengutronix.de> (raw)
In-Reply-To: <20181109140941.f7a5i5u5zl45drgz@pengutronix.de>

On Fri, Nov 09, 2018 at 03:09:42PM +0100, Roland Hieber wrote:
> On Fri, Nov 09, 2018 at 03:05:56PM +0100, Roland Hieber wrote:
> > On Thu, Nov 08, 2018 at 04:04:04PM +0100, Michael Olbrich wrote:
> > > On Thu, Nov 08, 2018 at 01:13:42PM +0100, Roland Hieber wrote:
> > > > If the md5sum can be autodetected from the toolchain, we should use the
> > > > value from the toolchain and ignore the value specified in the menu.
> > > > This eases migration for BSPs that previously specified it in the menu
> > > > and didn't clear it when enabling GDB_TOOLCHAIN_VERSION (which defaults
> > > > to 'y' if GDBSERVER is used).
> > > > 
> > > > Some older OSELAS toolchains (and also non-OSELAS toolchains) don't set
> > > > PTXCONF_CROSS_GDB_MD5 in their ptxconfig (or they simply don't have a
> > > > ptxconfig). In those cases, the md5sum must be specified in the menu.
> > > 
> > > I used the current order deliberately: It allows overwriting the md5sum if
> > > necessary.
> > 
> > Hmm, in which cases would that be necessary? I can only think of using a
> > OSELAS toolchain that contains a wrong md5sum in its ptxconfig, and that
> > would probably be reason to make a new toolchain release. In all other
> > cases, the ptxconfig is either nonexistent or the doesn't contain an
> > md5sum, resulting in an empty value, therefore the md5sum from the menu
> > would be needed as described above.
> 
> Ah okay yes, another case would be when gdb decides to repackage its
> existing tarball and publish it under the same file name.

And this is a real concern for me. Some time ago gnu.org replaced a lot of
tarballs with new versions. I think there was a license compliance issue or
something like that.

> Then the
> published toolchain cannot know about it and the md5sum needs to be
> overwritten in the BSP. I see why having that menu option is better,
> even when upgrading existing BSPs from older PTXdist versions is not as
> smooth.

Any BSP needs to do this just once and it won't be a problem for new BSP.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

      reply	other threads:[~2018-11-12 11:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-08 12:13 [ptxdist] [PATCH 1/2] gdb-menu: fix indentation Roland Hieber
2018-11-08 12:13 ` [ptxdist] [PATCH 2/2] gdb, gdbserver: prefer the source md5sum from the toolchain Roland Hieber
2018-11-08 15:04   ` Michael Olbrich
2018-11-09 14:05     ` Roland Hieber
2018-11-09 14:09       ` Roland Hieber
2018-11-12 11:47         ` Michael Olbrich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181112114732.gigmi5mtqop56pyn@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox