summaryrefslogtreecommitdiffstats
path: root/arch/riscv/lib
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2017-07-11 03:08:08 +0200
committerPalmer Dabbelt <palmer@dabbelt.com>2017-09-27 00:26:49 +0200
commitfbe934d69eb7ed22b59514e9c1fe8871b8b198ec (patch)
treeb239456f878fa37605efc79216b870cba55f977b /arch/riscv/lib
parentRISC-V: User-facing API (diff)
downloadlinux-fbe934d69eb7ed22b59514e9c1fe8871b8b198ec.tar.xz
linux-fbe934d69eb7ed22b59514e9c1fe8871b8b198ec.zip
RISC-V: Build Infrastructure
This patch contains all the build infrastructure that actually enables the RISC-V port. This includes Makefiles, linker scripts, and Kconfig files. It also contains the only top-level change, which adds RISC-V to the list of architectures that need a sed run to produce the ARCH variable when building locally. Signed-off-by: Palmer Dabbelt <palmer@dabbelt.com>
Diffstat (limited to 'arch/riscv/lib')
-rw-r--r--arch/riscv/lib/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/riscv/lib/Makefile b/arch/riscv/lib/Makefile
new file mode 100644
index 000000000000..596c2ca40d63
--- /dev/null
+++ b/arch/riscv/lib/Makefile
@@ -0,0 +1,6 @@
+lib-y += delay.o
+lib-y += memcpy.o
+lib-y += memset.o
+lib-y += uaccess.o
+
+lib-$(CONFIG_32BIT) += udivdi3.o