Skip to content

Commit 4fda0c7

Browse files
author
Herton R. Krzesinski
committed
kbuild: scripts/gdb: Replace missed $(srctree)/$(src) w/ $(src)
JIRA: https://issues.redhat.com/browse/RHEL-107194 commit 659bbf7 Author: Douglas Anderson <dianders@chromium.org> Date: Mon May 20 12:56:52 2024 -0700 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: b1992c3 ("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> Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
1 parent a1b9805 commit 4fda0c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/gdb/linux/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ifdef building_out_of_srctree
55
symlinks := $(patsubst $(src)/%,%,$(wildcard $(src)/*.py))
66

77
quiet_cmd_symlink = SYMLINK $@
8-
cmd_symlink = ln -fsn $(patsubst $(obj)/%,$(abspath $(srctree))/$(src)/%,$@) $@
8+
cmd_symlink = ln -fsn $(patsubst $(obj)/%,$(src)/%,$@) $@
99

1010
always-y += $(symlinks)
1111
$(addprefix $(obj)/, $(symlinks)): FORCE

0 commit comments

Comments
 (0)