]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/um/Makefile
kbuild: um fix so it compile with generic asm-offsets.h support
[linux-2.6-omap-h63xx.git] / arch / um / Makefile
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)