]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
kbuild: scripts/gdb: Replace missed $(srctree)/$(src) w/ $(src)
authorDouglas Anderson <dianders@chromium.org>
Mon, 20 May 2024 19:56:52 +0000 (12:56 -0700)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 29 May 2024 07:40:03 +0000 (16:40 +0900)
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>
scripts/gdb/linux/Makefile

index d77ad9079d0f92e2bb8065717e928fc40db5431a..fd1402c0a1a18fb7176260d08989413411252c04 100644 (file)
@@ -5,7 +5,7 @@ ifdef building_out_of_srctree
 symlinks := $(patsubst $(src)/%,%,$(wildcard $(src)/*.py))
 
 quiet_cmd_symlink = SYMLINK $@
-      cmd_symlink = ln -fsn $(patsubst $(obj)/%,$(abspath $(srctree))/$(src)/%,$@) $@
+      cmd_symlink = ln -fsn $(patsubst $(obj)/%,$(src)/%,$@) $@
 
 always-y += $(symlinks)
 $(addprefix $(obj)/, $(symlinks)): FORCE