Pull Kbuild updates from Masahiro Yamada: - do not generate unneeded top-level built-in.a - let git ignore O= directory entirely - optimize scripts/kallsyms slightly - exclude DWARF info from *.s regardless of config options - fix GCC toolchain search path for Clang to prepare ld.lld support - do not generate modules.order when CONFIG_MODULES is disabled - simplify single target rules and remove VPATH for external module build - allow to add optional flags to dpkg-buildpackage when building deb-pkg - move some compiler option tests from Makefile to Kconfig - various Makefile cleanups * tag 'kbuild-v5.1' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: (40 commits) kbuild: remove scripts/basic/% build target kbuild: use -Werror=implicit-... instead of -Werror-implicit-... kbuild: clean up scripts/gcc-version.sh kbuild: remove cc-version macro kbuild: update comment block of scripts/clang-version.sh kbuild: remove commented-out INITRD_COMPRESS kbuild: move -gsplit-dwarf, -gdwarf-4 option tests to Kconfig kbuild: [bin]deb-pkg: add DPKG_FLAGS variable kbuild: move ".config not found!" message from Kconfig to Makefile kbuild: invoke syncconfig if include/config/auto.conf.cmd is missing kbuild: simplify single target rules kbuild: remove empty rules for makefiles kbuild: make -r/-R effective in top Makefile for old Make versions kbuild: move tools_silent to a more relevant place kbuild: compute false-positive -Wmaybe-uninitialized cases in Kconfig kbuild: refactor cc-cross-prefix implementation kbuild: hardcode genksyms path and remove GENKSYMS variable scripts/gdb: refactor rules for symlink creation kbuild: create symlink to vmlinux-gdb.py in scripts_gdb target scripts/gdb: do not descend into scripts/gdb from scripts ...
Showing the changes to scripts/gdb/linux (1 of 33 files). Show all
Unified · Split
| @@ -1,24 +1,25 @@ | ||
| 1 | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | −always := gdb-scripts | |
| 3 | 2 | |
| 4 | −SRCTREE := $(abspath $(srctree)) | |
| 5 | − | |
| 6 | −$(obj)/gdb-scripts: | |
| 7 | 3 | ifneq ($(KBUILD_SRC),) |
| 8 | − $(Q)ln -fsn $(SRCTREE)/$(obj)/*.py $(objtree)/$(obj) | |
| 4 | + | |
| 5 | +symlinks := $(patsubst $(srctree)/$(src)/%,%,$(wildcard $(srctree)/$(src)/*.py)) | |
| 6 | + | |
| 7 | +quiet_cmd_symlink = SYMLINK $@ | |
| 8 | + cmd_symlink = ln -fsn $(patsubst $(obj)/%,$(abspath $(srctree))/$(src)/%,$@) $@ | |
| 9 | + | |
| 10 | +extra-y += $(symlinks) | |
| 11 | +$(addprefix $(obj)/, $(symlinks)): FORCE | |
| 12 | + $(call if_changed,symlink) | |
| 13 | + | |
| 9 | 14 | endif |
| 10 | − @: | |
| 11 | 15 | |
| 12 | 16 | quiet_cmd_gen_constants_py = GEN $@ |
| 13 | 17 | cmd_gen_constants_py = \ |
| 14 | 18 | $(CPP) -E -x c -P $(c_flags) $< > $@ ;\ |
| 15 | 19 | sed -i '1,/<!-- end-c-headers -->/d;' $@ |
| 16 | 20 | |
| 17 | −targets += constants.py | |
| 18 | −$(obj)/constants.py: $(SRCTREE)/$(obj)/constants.py.in FORCE | |
| 21 | +extra-y += constants.py | |
| 22 | +$(obj)/constants.py: $(src)/constants.py.in FORCE | |
| 19 | 23 | $(call if_changed_dep,gen_constants_py) |
| 20 | 24 | |
| 21 | −build_constants_py: $(obj)/constants.py | |
| 22 | − @: | |
| 23 | − | |
| 24 | −clean-files := *.pyc *.pyo $(if $(KBUILD_SRC),*.py) $(obj)/constants.py | |
| 25 | +clean-files := *.pyc *.pyo | |