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

scripts/gdb: do not descend into scripts/gdb from scripts

Currently, Kbuild descends from scripts/Makefile to scripts/gdb/Makefile
just for creating symbolic links, but it does not need to do it so early.

Merge the two descending paths to simplify the code.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

+5 -9
+1 -1
Makefile
··· 1524 1524 1525 1525 PHONY += scripts_gdb 1526 1526 scripts_gdb: prepare 1527 - $(Q)$(MAKE) $(build)=scripts/gdb/linux build_constants_py 1527 + $(Q)$(MAKE) $(build)=scripts/gdb 1528 1528 1529 1529 ifdef CONFIG_GDB_SCRIPTS 1530 1530 all: scripts_gdb
+1 -2
scripts/Makefile
··· 39 39 subdir-$(CONFIG_GCC_PLUGINS) += gcc-plugins 40 40 subdir-$(CONFIG_MODVERSIONS) += genksyms 41 41 subdir-$(CONFIG_SECURITY_SELINUX) += selinux 42 - subdir-$(CONFIG_GDB_SCRIPTS) += gdb 43 42 44 43 # Let clean descend into subdirs 45 - subdir- += basic dtc kconfig mod package 44 + subdir- += basic dtc gdb kconfig mod package
+3 -6
scripts/gdb/linux/Makefile
··· 14 14 $(CPP) -E -x c -P $(c_flags) $< > $@ ;\ 15 15 sed -i '1,/<!-- end-c-headers -->/d;' $@ 16 16 17 - targets += constants.py 18 - $(obj)/constants.py: $(SRCTREE)/$(obj)/constants.py.in FORCE 17 + extra-y += constants.py 18 + $(obj)/constants.py: $(src)/constants.py.in FORCE 19 19 $(call if_changed_dep,gen_constants_py) 20 20 21 - build_constants_py: $(obj)/constants.py 22 - @: 23 - 24 - clean-files := *.pyc *.pyo $(if $(KBUILD_SRC),*.py) $(obj)/constants.py 21 + clean-files := *.pyc *.pyo $(if $(KBUILD_SRC),*.py)