File tree Expand file tree Collapse file tree 3 files changed +7
-25
lines changed Expand file tree Collapse file tree 3 files changed +7
-25
lines changed Original file line number Diff line number Diff line change @@ -1110,9 +1110,9 @@ prepare1: prepare2 $(version_h) $(autoksyms_h) include/generated/utsrelease.h
1110
1110
1111
1111
macroprepare : prepare1 archmacros
1112
1112
1113
- archprepare : archheaders archscripts macroprepare scripts_basic
1113
+ archprepare : archheaders archscripts macroprepare scripts_basic gcc-plugins
1114
1114
1115
- prepare0 : archprepare gcc-plugins
1115
+ prepare0 : archprepare
1116
1116
$(Q )$(MAKE ) $(build ) =.
1117
1117
1118
1118
# All the preparing..
Original file line number Diff line number Diff line change @@ -116,7 +116,8 @@ endef
116
116
archheaders :
117
117
$(Q )$(MAKE ) -f $(srctree ) /Makefile ARCH=$(HEADER_ARCH ) asm-generic archheaders
118
118
119
- archprepare : include/generated/user_constants.h
119
+ archprepare :
120
+ $(Q )$(MAKE ) $(build ) =$(HOST_DIR ) /um include/generated/user_constants.h
120
121
121
122
LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static
122
123
LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib $(call cc-option, -no-pie)
@@ -146,25 +147,4 @@ archclean:
146
147
@find . \( -name ' *.bb' -o -name ' *.bbg' -o -name ' *.da' \
147
148
-o -name ' *.gcov' \) -type f -print | xargs rm -f
148
149
149
- # Generated files
150
-
151
- $(HOST_DIR ) /um/user-offsets.s : __headers FORCE
152
- $(Q )$(MAKE ) $(build ) =$(HOST_DIR ) /um $@
153
-
154
- define filechk_gen-asm-offsets
155
- (set -e; \
156
- echo "/*"; \
157
- echo " * DO NOT MODIFY."; \
158
- echo " *"; \
159
- echo " * This file was generated by arch/$(ARCH ) /Makefile"; \
160
- echo " *"; \
161
- echo " */"; \
162
- echo ""; \
163
- sed -ne "/^->/{s:^->\([^ ]*\) [\$$# ]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}" < $<; \
164
- echo ""; )
165
- endef
166
-
167
- include/generated/user_constants.h : $(HOST_DIR ) /um/user-offsets.s
168
- $(call filechk,gen-asm-offsets)
169
-
170
150
export HEADER_ARCH SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING OS DEV_NULL_PATH
Original file line number Diff line number Diff line change @@ -36,10 +36,12 @@ subarch-$(CONFIG_MODULES) += ../kernel/module.o
36
36
37
37
USER_OBJS := bugs_$(BITS ) .o ptrace_user.o fault.o
38
38
39
- extra-y += user-offsets.s
40
39
$(obj ) /user-offsets.s : c_flags = -Wp,-MD,$(depfile ) $(USER_CFLAGS ) \
41
40
-Iarch/x86/include/generated
42
41
42
+ include/generated/user_constants.h : $(obj ) /user-offsets.s
43
+ $(call filechk,offsets,__USER_CONSTANT_H__)
44
+
43
45
UNPROFILE_OBJS := stub_segv.o
44
46
CFLAGS_stub_segv.o := $(CFLAGS_NO_HARDENING )
45
47
You can’t perform that action at this time.
0 commit comments