Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kbuild: scripts/gdb: Replace missed $(srctree)/$(src) w/ $(src)

Recently we went through the source tree and replaced
$(srctree)/$(src) w/ $(src). However, the gdb scripts Makefile had a
hidden $(srctree)/$(src) that looked like this:

$(abspath $(srctree))/$(src)

Because we missed that then my installed kernel had symlinks that
looked like this:

__init__.py ->
${INSTALL_DIR}/$(INSTALL_DIR}/scripts/gdb/linux/__init__.py

Let's also replace the midden $(abspath $(srctree))/$(src) with
$(src). Now:

__init__.py ->
$(INSTALL_DIR}/scripts/gdb/linux/__init__.py

Fixes: b1992c3772e6 ("kbuild: use $(src) instead of $(srctree)/$(src) for source directory")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

authored by

Douglas Anderson and committed by
Masahiro Yamada
659bbf7e 31894d35

+1 -1
+1 -1
scripts/gdb/linux/Makefile
··· 5 5 symlinks := $(patsubst $(src)/%,%,$(wildcard $(src)/*.py)) 6 6 7 7 quiet_cmd_symlink = SYMLINK $@ 8 - cmd_symlink = ln -fsn $(patsubst $(obj)/%,$(abspath $(srctree))/$(src)/%,$@) $@ 8 + cmd_symlink = ln -fsn $(patsubst $(obj)/%,$(src)/%,$@) $@ 9 9 10 10 always-y += $(symlinks) 11 11 $(addprefix $(obj)/, $(symlinks)): FORCE