aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/Makefile')
-rw-r--r--arch/um/Makefile23
1 files changed, 9 insertions, 14 deletions
diff --git a/arch/um/Makefile b/arch/um/Makefile
index 1b12feeba368..322972fd064e 100644
--- a/arch/um/Makefile
+++ b/arch/um/Makefile
@@ -189,6 +189,12 @@ define filechk_umlconfig
189 sed 's/ CONFIG/ UML_CONFIG/' 189 sed 's/ CONFIG/ UML_CONFIG/'
190endef 190endef
191 191
192$(ARCH_DIR)/include/uml-config.h : include/linux/autoconf.h
193 $(call filechk,umlconfig)
194
195$(ARCH_DIR)/user-offsets.s: $(ARCH_DIR)/sys-$(SUBARCH)/user-offsets.c
196 $(CC) $(USER_CFLAGS) -S -o $@ $<
197
192define filechk_gen-asm-offsets 198define filechk_gen-asm-offsets
193 (set -e; \ 199 (set -e; \
194 echo "/*"; \ 200 echo "/*"; \
@@ -202,24 +208,13 @@ define filechk_gen-asm-offsets
202 echo ""; ) 208 echo ""; )
203endef 209endef
204 210
205$(ARCH_DIR)/include/uml-config.h : include/linux/autoconf.h
206 $(call filechk,umlconfig)
207
208$(ARCH_DIR)/user-offsets.s: $(ARCH_DIR)/sys-$(SUBARCH)/user-offsets.c
209 $(CC) $(USER_CFLAGS) -S -o $@ $<
210
211$(ARCH_DIR)/include/user_constants.h: $(ARCH_DIR)/user-offsets.s 211$(ARCH_DIR)/include/user_constants.h: $(ARCH_DIR)/user-offsets.s
212 $(call filechk,gen-asm-offsets) 212 $(call filechk,gen-asm-offsets)
213 213
214CLEAN_FILES += $(ARCH_DIR)/user-offsets.s 214CLEAN_FILES += $(ARCH_DIR)/user-offsets.s
215 215
216$(ARCH_DIR)/kernel-offsets.s: $(ARCH_DIR)/sys-$(SUBARCH)/kernel-offsets.c \ 216$(ARCH_DIR)/include/kern_constants.h:
217 archprepare 217 @echo ' SYMLINK $@'
218 $(CC) $(CFLAGS) $(NOSTDINC_FLAGS) $(CPPFLAGS) -S -o $@ $< 218 $(Q) ln -sf ../../../include/asm-um/asm-offsets.h $@
219
220$(ARCH_DIR)/include/kern_constants.h: $(ARCH_DIR)/kernel-offsets.s
221 $(call filechk,gen-asm-offsets)
222
223CLEAN_FILES += $(ARCH_DIR)/kernel-offsets.s
224 219
225export SUBARCH USER_CFLAGS OS 220export SUBARCH USER_CFLAGS OS