mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <r.hieber@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 2/2] gdb, gdbserver: prefer the source md5sum from the toolchain
Date: Fri, 9 Nov 2018 15:05:56 +0100	[thread overview]
Message-ID: <20181109140556.vsf7yt25g4scdcid@pengutronix.de> (raw)
In-Reply-To: <20181108150404.le6kfet2qrhmsu66@pengutronix.de>

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.

 - Roland

-- 
Roland Hieber                     | r.hieber@pengutronix.de     |
Pengutronix e.K.                  | https://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 |
Amtsgericht Hildesheim, HRA 2686  | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2018-11-09 14:05 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 [this message]
2018-11-09 14:09       ` Roland Hieber
2018-11-12 11:47         ` Michael Olbrich

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=20181109140556.vsf7yt25g4scdcid@pengutronix.de \
    --to=r.hieber@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