summaryrefslogtreecommitdiff
path: root/arch/um/Makefile
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.(none)>2005-09-09 23:10:54 +0200
committerSam Ravnborg <sam@mars.(none)>2005-09-09 23:10:54 +0200
commitf64a227b6b5cc1f8cc7f6ef9cc3351343636bac9 (patch)
tree70b4435d5e8fdab82888954a0cedeb2d503ed6f8 /arch/um/Makefile
parent0037c78a96bb391635bff103d401c24459c5092d (diff)
downloadlinux-3.10-f64a227b6b5cc1f8cc7f6ef9cc3351343636bac9.tar.gz
linux-3.10-f64a227b6b5cc1f8cc7f6ef9cc3351343636bac9.tar.bz2
linux-3.10-f64a227b6b5cc1f8cc7f6ef9cc3351343636bac9.zip
kbuild: um fix so it compile with generic asm-offsets.h support
um has it own set of files for asm-offsets. So for now the gen-asm-offset macro is just duplicated in the um Makefile. This may well be the final solution since um is a bit special compared to other architectures - time will tell. Also added a dummy arch/um/kernel/asm-offsets.h file to keep kbuild happy. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'arch/um/Makefile')
-rw-r--r--arch/um/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/um/Makefile b/arch/um/Makefile
index b15f6048caa..577b8d1cf1a 100644
--- a/arch/um/Makefile
+++ b/arch/um/Makefile
@@ -197,6 +197,22 @@ define filechk_umlconfig
sed 's/ CONFIG/ UML_CONFIG/'
endef
+define filechk_gen-asm-offsets
+ (set -e; \
+ echo "#ifndef __ASM_OFFSETS_H__"; \
+ echo "#define __ASM_OFFSETS_H__"; \
+ echo "/*"; \
+ echo " * DO NOT MODIFY."; \
+ echo " *"; \
+ echo " * This file was generated by arch/$(ARCH)/Makefile"; \
+ echo " *"; \
+ echo " */"; \
+ echo ""; \
+ sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}"; \
+ echo ""; \
+ echo "#endif" )
+endef
+
$(ARCH_DIR)/include/uml-config.h : include/linux/autoconf.h
$(call filechk,umlconfig)