All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
To: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Buildroot Mailing List <buildroot@buildroot.org>
Subject: Re: [Buildroot] [PATCH 1/1] package/gdb: fix build of gdb on riscv
Date: Wed, 18 Aug 2021 23:16:33 +0200	[thread overview]
Message-ID: <CAPi7W83-5G5Nd-4Q3YpxShPN60M4A4EtKzbY3E+aLiSe_0kRdw@mail.gmail.com> (raw)
In-Reply-To: <20210818223319.6575da17@windsurf>

Hello Thomas,

Le mer. 18 août 2021 à 22:33, Thomas Petazzoni
<thomas.petazzoni@bootlin.com> a écrit :
>
> Hello Fabrice,
>
> On Sun, 15 Aug 2021 18:07:56 +0200
> Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
>
> > > While I understand the idea, I'm not entirely sure it's the most
> > > logical way. What about instead changing the current:
> > >
> > > ifeq ($(BR2_GDB_VERSION_10),y)
> > > GDB_GDBSERVER_TOPLEVEL = y
> > > endif
> > >
> > > by:
> > >
> > > ifeq ($(GDB_VERSION_10),10.1)
> > > GDB_GDBSERVER_TOPLEVEL = y
> > > endif
> > This one won't work as GDB_VERSION_10 is not defined if host-gdb is
> > not selected.
>
> Sorry, I meant to do:
>
> ifeq ($(GDB_VERSION),10.1)
>
> which would work in all cases.
>
> > > This way, it really expresses what we want: gdb version 10.x require a
> > > different build logic.
> > >
> > > Alternatively, we could do a hidden Config.in boolean:
> > >
> > > config BR2_PACKAGE_GDB_TOPLEVEL
> > >         bool
> > >         default y if BR2_GDB_VERSION_10
> > >         default y if !BR2_PACKAGE_HOST_GDB && BR2_riscv
> >
> > I'll test this one but I think that it should work.
>
> But I find this alternative a bit better. Looking forward to the patch!
It's available here:
https://patchwork.ozlabs.org/project/buildroot/patch/20210815162106.1492967-1-fontaine.fabrice@gmail.com/
>
> Thanks,
>
> Thomas
> --
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
Best Regards,

Fabrice
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

      reply	other threads:[~2021-08-18 21:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-13 14:26 [Buildroot] [PATCH 1/1] package/gdb: fix build of gdb on riscv Fabrice Fontaine
2021-08-15 15:57 ` Thomas Petazzoni
2021-08-15 16:07   ` Fabrice Fontaine
2021-08-18 20:33     ` Thomas Petazzoni
2021-08-18 21:16       ` Fabrice Fontaine [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=CAPi7W83-5G5Nd-4Q3YpxShPN60M4A4EtKzbY3E+aLiSe_0kRdw@mail.gmail.com \
    --to=fontaine.fabrice@gmail.com \
    --cc=buildroot@buildroot.org \
    --cc=thomas.petazzoni@bootlin.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.