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.

Merge tag 'kbuild-fixes-v5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild

Pull Kbuild fixes from Masahiro Yamada:

- add compile_commands.json to .gitignore

- fix false-positive warning from gen_compile_commands.py after
allnoconfig build

- remove unused code

* tag 'kbuild-fixes-v5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
kbuild: remove unused single-used-m
gen_compile_commands: lower the entry count threshold
.gitignore: Add compilation database file
kbuild: remove unused objectify macro

+5 -7
+3
.gitignore
··· 142 142 143 143 # Kdevelop4 144 144 *.kdev4 145 + 146 + # Clang's compilation database file 147 + /compile_commands.json
-3
scripts/Kbuild.include
··· 190 190 # printing commands 191 191 cmd = @set -e; $(echo-cmd) $(cmd_$(1)) 192 192 193 - # Add $(obj)/ for paths that are not absolute 194 - objectify = $(foreach o,$(1),$(if $(filter /%,$(o)),$(o),$(obj)/$(o))) 195 - 196 193 ### 197 194 # if_changed - execute command if any prerequisite is newer than 198 195 # target, or command line has changed
-2
scripts/Makefile.lib
··· 45 45 multi-used-y := $(sort $(foreach m,$(obj-y), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y))), $(m)))) 46 46 multi-used-m := $(sort $(foreach m,$(obj-m), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y)) $($(m:.o=-m))), $(m)))) 47 47 multi-used := $(multi-used-y) $(multi-used-m) 48 - single-used-m := $(sort $(filter-out $(multi-used-m),$(obj-m))) 49 48 50 49 # $(subdir-obj-y) is the list of objects in $(obj-y) which uses dir/ to 51 50 # tell kbuild to descend ··· 90 91 subdir-obj-y := $(addprefix $(obj)/,$(subdir-obj-y)) 91 92 real-obj-y := $(addprefix $(obj)/,$(real-obj-y)) 92 93 real-obj-m := $(addprefix $(obj)/,$(real-obj-m)) 93 - single-used-m := $(addprefix $(obj)/,$(single-used-m)) 94 94 multi-used-m := $(addprefix $(obj)/,$(multi-used-m)) 95 95 subdir-ym := $(addprefix $(obj)/,$(subdir-ym)) 96 96
+2 -2
scripts/gen_compile_commands.py
··· 21 21 _VALID_LOG_LEVELS = ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'] 22 22 23 23 # A kernel build generally has over 2000 entries in its compile_commands.json 24 - # database. If this code finds 500 or fewer, then warn the user that they might 24 + # database. If this code finds 300 or fewer, then warn the user that they might 25 25 # not have all the .cmd files, and they might need to compile the kernel. 26 - _LOW_COUNT_THRESHOLD = 500 26 + _LOW_COUNT_THRESHOLD = 300 27 27 28 28 29 29 def parse_arguments():