Re: [PATCH] kbuild: scripts/gdb: bring the "abspath" back
From: Masahiro Yamada
Date: Tue Jun 25 2024 - 11:17:45 EST
On Mon, Jun 24, 2024 at 3:20 PM Joel Granados <j.granados@xxxxxxxxxxx> wrote:
>
> On Thu, Jun 20, 2024 at 02:51:41PM -0700, Doug Anderson wrote:
> > Hi,
> >
> > On Thu, Jun 20, 2024 at 12:48 PM Joel Granados via B4 Relay
> > <devnull+j.granados.samsung.com@xxxxxxxxxx> wrote:
> > >
> > > From: Joel Granados <j.granados@xxxxxxxxxxx>
> > >
> > > Use the "abspath" call when symlinking the gdb python scripts in
> > > scripts/gdb/linux. This call is needed to avoid broken links when
> > > running the scripts_gdb target on a different build directory
> > > (O=builddir).
For preciseness, please rephrase it to something like this:
running the scripts_gdb target on a build directory located
directly under the source tree (e.g., O=builddir).
O=foo/builddir does not cause this issue because
$(src) is already an absolute path.
This issue occurs only when the output directory is
a direct subdirectory of the source tree, in other words,
srctree is '..'
See this line:
https://github.com/torvalds/linux/blob/v6.10-rc5/Makefile#L254
--
Best Regards
Masahiro Yamada