Blame view
Kbuild
1.29 KB
b24413180 License cleanup: ... |
1 |
# SPDX-License-Identifier: GPL-2.0 |
86feeaa81 kbuild: full depe... |
2 3 |
# # Kbuild for top-level directory of the kernel |
86feeaa81 kbuild: full depe... |
4 |
|
39664e2f3 kbuild: merge bou... |
5 |
##### |
01d509a48 kbuild: remove un... |
6 |
# Generate bounds.h |
39664e2f3 kbuild: merge bou... |
7 8 9 10 |
bounds-file := include/generated/bounds.h always := $(bounds-file) |
8a58e1628 kbuild: do not ad... |
11 |
targets := kernel/bounds.s |
39664e2f3 kbuild: merge bou... |
12 |
|
11fda1480 kbuild: remove $(... |
13 |
$(bounds-file): kernel/bounds.s FORCE |
70a4fd6c5 kbuild: Don't res... |
14 |
$(call filechk,offsets,__LINUX_BOUNDS_H__) |
1cdf25d70 kbuild: create a ... |
15 16 |
##### |
01d509a48 kbuild: remove un... |
17 |
# Generate timeconst.h |
0a227985d time: Move timeco... |
18 19 |
timeconst-file := include/generated/timeconst.h |
ba97df455 kbuild: use assig... |
20 |
filechk_gentimeconst = echo $(CONFIG_HZ) | bc -q $< |
0a227985d time: Move timeco... |
21 |
|
11fda1480 kbuild: remove $(... |
22 |
$(timeconst-file): kernel/time/timeconst.bc FORCE |
0a227985d time: Move timeco... |
23 24 25 |
$(call filechk,gentimeconst) ##### |
01d509a48 kbuild: remove un... |
26 |
# Generate asm-offsets.h |
86feeaa81 kbuild: full depe... |
27 |
|
559df2e02 kbuild: move asm-... |
28 |
offsets-file := include/generated/asm-offsets.h |
86feeaa81 kbuild: full depe... |
29 |
|
1cdf25d70 kbuild: create a ... |
30 |
always += $(offsets-file) |
6752ed90d Kbuild: allow arc... |
31 |
targets += arch/$(SRCARCH)/kernel/asm-offsets.s |
1cdf25d70 kbuild: create a ... |
32 |
|
11fda1480 kbuild: remove $(... |
33 |
arch/$(SRCARCH)/kernel/asm-offsets.s: $(timeconst-file) $(bounds-file) |
86feeaa81 kbuild: full depe... |
34 |
|
11fda1480 kbuild: remove $(... |
35 |
$(offsets-file): arch/$(SRCARCH)/kernel/asm-offsets.s FORCE |
70a4fd6c5 kbuild: Don't res... |
36 |
$(call filechk,offsets,__ASM_OFFSETS_H__) |
86feeaa81 kbuild: full depe... |
37 |
|
c53aeca05 kbuild: complain ... |
38 |
##### |
01d509a48 kbuild: remove un... |
39 |
# Check for missing system calls |
c53aeca05 kbuild: complain ... |
40 |
|
5f7efb4c6 Kbuild: append mi... |
41 |
always += missing-syscalls |
5f7efb4c6 Kbuild: append mi... |
42 |
|
c53aeca05 kbuild: complain ... |
43 |
quiet_cmd_syscalls = CALL $< |
44656fa03 kbuild: Fix missi... |
44 |
cmd_syscalls = $(CONFIG_SHELL) $< $(CC) $(c_flags) $(missing_syscalls_flags) |
c53aeca05 kbuild: complain ... |
45 |
|
5f7efb4c6 Kbuild: append mi... |
46 |
missing-syscalls: scripts/checksyscalls.sh $(offsets-file) FORCE |
c53aeca05 kbuild: complain ... |
47 |
$(call cmd,syscalls) |
1cdf25d70 kbuild: create a ... |
48 |
|
f197d75fc scripts/gdb: prov... |
49 |
##### |
ffd602eb4 Merge tag 'kbuild... |
50 |
# Check atomic headers are up-to-date |
8d3258807 locking/atomics: ... |
51 52 |
always += old-atomics |
8d3258807 locking/atomics: ... |
53 54 |
quiet_cmd_atomics = CALL $< |
bdf37b4dd locking/atomics: ... |
55 |
cmd_atomics = $(CONFIG_SHELL) $< |
8d3258807 locking/atomics: ... |
56 57 58 |
old-atomics: scripts/atomic/check-atomics.sh FORCE $(call cmd,atomics) |