kbuild: um fix so it compile with generic asm-offsets.h support
authorSam Ravnborg <sam@mars.(none)>
Fri, 9 Sep 2005 21:10:54 +0000 (23:10 +0200)
committerSam Ravnborg <sam@mars.(none)>
Fri, 9 Sep 2005 21:10:54 +0000 (23:10 +0200)
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>
arch/um/Makefile
arch/um/kernel/asm-offsets.c [new file with mode: 0644]

index b15f6048caae839cbde7e8fe02ffc8041dbdfc78..577b8d1cf1a6e9b2bf74aecf087ed65c8e2df955 100644 (file)
@@ -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)
 
diff --git a/arch/um/kernel/asm-offsets.c b/arch/um/kernel/asm-offsets.c
new file mode 100644 (file)
index 0000000..c13a64a
--- /dev/null
@@ -0,0 +1 @@
+/* Dummy file to make kbuild happy - unused! */