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.

kbuild: add phony targets to ./Kbuild

missing-syscalls and old-atomics are meant to be phony targets.
Adding them to always-y is odd. (always-y should generate something).

Add a new phony target 'prepare', which depends on all the other.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

+14 -14
+13 -13
Kbuild
··· 2 2 # 3 3 # Kbuild for top-level directory of the kernel 4 4 5 - ##### 5 + # Prepare global headers and check sanity before descending into sub-directories 6 + # --------------------------------------------------------------------------- 7 + 6 8 # Generate bounds.h 7 9 8 10 bounds-file := include/generated/bounds.h 9 11 10 - always-y := $(bounds-file) 11 12 targets := kernel/bounds.s 12 13 13 14 $(bounds-file): kernel/bounds.s FORCE 14 15 $(call filechk,offsets,__LINUX_BOUNDS_H__) 15 16 16 - ##### 17 17 # Generate timeconst.h 18 18 19 19 timeconst-file := include/generated/timeconst.h ··· 23 23 $(timeconst-file): kernel/time/timeconst.bc FORCE 24 24 $(call filechk,gentimeconst) 25 25 26 - ##### 27 26 # Generate asm-offsets.h 28 27 29 28 offsets-file := include/generated/asm-offsets.h 30 29 31 - always-y += $(offsets-file) 32 30 targets += arch/$(SRCARCH)/kernel/asm-offsets.s 33 31 34 32 arch/$(SRCARCH)/kernel/asm-offsets.s: $(timeconst-file) $(bounds-file) ··· 34 36 $(offsets-file): arch/$(SRCARCH)/kernel/asm-offsets.s FORCE 35 37 $(call filechk,offsets,__ASM_OFFSETS_H__) 36 38 37 - ##### 38 39 # Check for missing system calls 39 - 40 - always-y += missing-syscalls 41 40 42 41 quiet_cmd_syscalls = CALL $< 43 42 cmd_syscalls = $(CONFIG_SHELL) $< $(CC) $(c_flags) $(missing_syscalls_flags) 44 43 45 - missing-syscalls: scripts/checksyscalls.sh $(offsets-file) FORCE 44 + PHONY += missing-syscalls 45 + missing-syscalls: scripts/checksyscalls.sh $(offsets-file) 46 46 $(call cmd,syscalls) 47 47 48 - ##### 49 48 # Check atomic headers are up-to-date 50 - 51 - always-y += old-atomics 52 49 53 50 quiet_cmd_atomics = CALL $< 54 51 cmd_atomics = $(CONFIG_SHELL) $< 55 52 56 - old-atomics: scripts/atomic/check-atomics.sh FORCE 53 + PHONY += old-atomics 54 + old-atomics: scripts/atomic/check-atomics.sh 57 55 $(call cmd,atomics) 56 + 57 + # A phony target that depends on all the preparation targets 58 + 59 + PHONY += prepare 60 + prepare: $(offsets-file) missing-syscalls old-atomics 61 + @:
+1 -1
Makefile
··· 1202 1202 1203 1203 prepare0: archprepare 1204 1204 $(Q)$(MAKE) $(build)=scripts/mod 1205 - $(Q)$(MAKE) $(build)=. 1205 + $(Q)$(MAKE) $(build)=. prepare 1206 1206 1207 1207 # All the preparing.. 1208 1208 prepare: prepare0