Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] gdbserver located outside *SYSROOT
@ 2015-03-16 15:45 Alexey Brodkin
  2015-03-16 17:05 ` Yann E. MORIN
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Brodkin @ 2015-03-16 15:45 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

I just realized that in pre-built ARC GNU tools gdbserver resides
outside of SYSROOT_DIR/ARCH_SYSROOT_DIR.

Historically we put gdbserver in top-level "target-bin" folder.

And I'm wondering how to deal with it to get proper copy of it onto
target if BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY is selected.

 [1] Do we really need to re-consider placement of gdbserver for our
next release of GNU tools for ARC? Then what could be the best location?

 [2] Will setup of TOOLCHAIN_EXTERNAL_FIXUP_CMDS to cp gdbserver to some
related location be a good solution of the problem (if so then maybe
forget about [1] at least until we have multilibbed tools for ARC)?

-Alexey

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] gdbserver located outside *SYSROOT
  2015-03-16 15:45 [Buildroot] gdbserver located outside *SYSROOT Alexey Brodkin
@ 2015-03-16 17:05 ` Yann E. MORIN
  0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2015-03-16 17:05 UTC (permalink / raw)
  To: buildroot

Alexey, All,

On 2015-03-16 15:45 +0000, Alexey Brodkin spake thusly:
> I just realized that in pre-built ARC GNU tools gdbserver resides
> outside of SYSROOT_DIR/ARCH_SYSROOT_DIR.
> 
> Historically we put gdbserver in top-level "target-bin" folder.
> 
> And I'm wondering how to deal with it to get proper copy of it onto
> target if BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY is selected.
> 
>  [1] Do we really need to re-consider placement of gdbserver for our
> next release of GNU tools for ARC? Then what could be the best location?

Well, other toolchains usually put gdbserver in the sysroot or the
arch-sysroot, so it looks like a proper location to put it.

crosstool-NG toolchains put it in a specific directory, 'debug-root',
which stands side-by-side with the sysroot (not necessarily the best
move I did with that, but that's supported by Buildroot).

gdbserver, being a target executable, really has no place in the
top-level bin/ directory. It would be good to move it out of there.

>  [2] Will setup of TOOLCHAIN_EXTERNAL_FIXUP_CMDS to cp gdbserver to some
> related location be a good solution of the problem (if so then maybe
> forget about [1] at least until we have multilibbed tools for ARC)?

Yes, using _FIXUP_CMDS is a good solution, and is made exactly for this
kind of situation. Just copy in into sysroot/bin/ and you're done.

Regards,
Yann E. MORIN.

> -Alexey
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-16 17:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-16 15:45 [Buildroot] gdbserver located outside *SYSROOT Alexey Brodkin
2015-03-16 17:05 ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox