summaryrefslogtreecommitdiffstats
path: root/arch/openrisc
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-12-24 13:23:27 +0900
committerSascha Hauer <s.hauer@pengutronix.de>2015-01-08 13:55:38 +0100
commitd6d28acee05db669c55b53095044c6a791127c14 (patch)
treef72a0ad18f76827ef8f854d724b9a682ef5ca904 /arch/openrisc
parent549f04b9c96c49e00b197c2c2b2c609971384491 (diff)
downloadbarebox-d6d28acee05db669c55b53095044c6a791127c14.tar.gz
barebox-d6d28acee05db669c55b53095044c6a791127c14.tar.xz
kbuild: move asm-offsets.h rule to ./Kbuild
Currently, MIPS is the only architecture that needs include/generated/asm-offsets.h, but we have got ./Kbuild file now. It is a good reason to move asm-offsets.h rule from arch/mips/Makefile to ./Kbuild and add dummy asm-offsets.c for the other architectures. asm-offsets.h would be useful for all the architectures. This commit does not implement include/generated/bounds.h, but if necessary, it is easy to implement it. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/openrisc')
-rw-r--r--arch/openrisc/lib/asm-offsets.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/openrisc/lib/asm-offsets.c b/arch/openrisc/lib/asm-offsets.c
new file mode 100644
index 0000000000..8cee8e00c6
--- /dev/null
+++ b/arch/openrisc/lib/asm-offsets.c
@@ -0,0 +1,18 @@
+/*
+ * OpenRISC asm-offsets.c
+ *
+ * This program is used to generate definitions needed by
+ * assembly language modules.
+ *
+ * We use the technique used in the OSF Mach kernel code:
+ * generate asm statements containing #defines,
+ * compile this file to assembler, and then extract the
+ * #defines from the assembly-language output.
+ */
+
+#include <linux/kbuild.h>
+
+int main(void)
+{
+ return 0;
+}