Source
10
10
#####
11
11
# 1) Generate bounds.h
12
12
13
13
bounds-file := include/generated/bounds.h
14
14
15
15
always := $(bounds-file)
16
16
targets := kernel/bounds.s
17
17
18
18
# We use internal kbuild rules to avoid the "is up to date" message from make
19
19
kernel/bounds.s: kernel/bounds.c FORCE
20
-
$(Q)mkdir -p $(dir $@)
21
20
$(call if_changed_dep,cc_s_c)
22
21
23
22
$(obj)/$(bounds-file): kernel/bounds.s FORCE
24
23
$(call filechk,offsets,__LINUX_BOUNDS_H__)
25
24
26
25
#####
27
26
# 2) Generate timeconst.h
28
27
29
28
timeconst-file := include/generated/timeconst.h
30
29
46
45
#
47
46
48
47
offsets-file := include/generated/asm-offsets.h
49
48
50
49
always += $(offsets-file)
51
50
targets += arch/$(SRCARCH)/kernel/asm-offsets.s
52
51
53
52
# We use internal kbuild rules to avoid the "is up to date" message from make
54
53
arch/$(SRCARCH)/kernel/asm-offsets.s: arch/$(SRCARCH)/kernel/asm-offsets.c \
55
54
$(obj)/$(timeconst-file) $(obj)/$(bounds-file) FORCE
56
-
$(Q)mkdir -p $(dir $@)
57
55
$(call if_changed_dep,cc_s_c)
58
56
59
57
$(obj)/$(offsets-file): arch/$(SRCARCH)/kernel/asm-offsets.s FORCE
60
58
$(call filechk,offsets,__ASM_OFFSETS_H__)
61
59
62
60
#####
63
61
# 4) Check for missing system calls
64
62
#
65
63
66
64
always += missing-syscalls