aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/Makefile16
-rw-r--r--arch/um/kernel/asm-offsets.c1
2 files changed, 17 insertions, 0 deletions
diff --git a/arch/um/Makefile b/arch/um/Makefile
index b15f6048caae..577b8d1cf1a6 100644
--- a/arch/um/Makefile
+++ b/arch/um/Makefile
@@ -197,6 +197,22 @@ define filechk_umlconfig
197 sed 's/ CONFIG/ UML_CONFIG/' 197 sed 's/ CONFIG/ UML_CONFIG/'
198endef 198endef
199 199
200define filechk_gen-asm-offsets
201 (set -e; \
202 echo "#ifndef __ASM_OFFSETS_H__"; \
203 echo "#define __ASM_OFFSETS_H__"; \
204 echo "/*"; \
205 echo " * DO NOT MODIFY."; \
206 echo " *"; \
207 echo " * This file was generated by arch/$(ARCH)/Makefile"; \
208 echo " *"; \
209 echo " */"; \
210 echo ""; \
211 sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}"; \
212 echo ""; \
213 echo "#endif" )
214endef
215
200$(ARCH_DIR)/include/uml-config.h : include/linux/autoconf.h 216$(ARCH_DIR)/include/uml-config.h : include/linux/autoconf.h
201 $(call filechk,umlconfig) 217 $(call filechk,umlconfig)
202 218
diff --git a/arch/um/kernel/asm-offsets.c b/arch/um/kernel/asm-offsets.c
new file mode 100644
index 000000000000..c13a64a288f6
--- /dev/null
+++ b/arch/um/kernel/asm-offsets.c
@@ -0,0 +1 @@
/* Dummy file to make kbuild happy - unused! */