aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/source.mk
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-08-19 22:58:57 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2021-08-19 22:58:57 +0300
commit1175179058fa809c57d724cd2043c67edc511695 (patch)
treefd01aba45ff6e4c676bac5c369b8f4983163c800 /arch/riscv/source.mk
parent565724db3b73ee67fa996dab511dc52df586cee1 (diff)
downloadkmi-1175179058fa809c57d724cd2043c67edc511695.tar.gz
kmi-1175179058fa809c57d724cd2043c67edc511695.zip
New build system (WIP)
Diffstat (limited to 'arch/riscv/source.mk')
-rw-r--r--arch/riscv/source.mk12
1 files changed, 8 insertions, 4 deletions
diff --git a/arch/riscv/source.mk b/arch/riscv/source.mk
index f52750c..8bd67ee 100644
--- a/arch/riscv/source.mk
+++ b/arch/riscv/source.mk
@@ -1,5 +1,9 @@
-LOCAL_KERNEL_SOURCES := main.c init/head.S init/init.c
-KERNEL_SOURCES += $(addprefix arch/riscv/,$(LOCAL_KERNEL_SOURCES))
+KERNEL_LOCAL != ./scripts/prepend arch/riscv/ main.c
+KERNEL_SOURCES += $(KERNEL_LOCAL)
-INCLUDE_DIRS += arch/riscv/include
-LINKER_SOURCE := arch/riscv/riscv-link.S
+INIT_LOCAL != ./scripts/prepend arch/riscv/init/ init.c head.S
+INIT_SOURCES += $(INIT_LOCAL)
+
+INCLUDE_DIRS += arch/riscv/include
+KERNEL_LINK := arch/riscv/kernel-link.S
+INIT_LINK := arch/riscv/init-link.S