aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv64/source.mk
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv64/source.mk')
-rw-r--r--arch/riscv64/source.mk8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/riscv64/source.mk b/arch/riscv64/source.mk
index 6e72c85..0c10bbc 100644
--- a/arch/riscv64/source.mk
+++ b/arch/riscv64/source.mk
@@ -1,15 +1,9 @@
KERNEL_LOCAL != echo $(ARCH_SOURCE)/kernel/*.[cS]
-KERNEL_SOURCES += $(KERNEL_LOCAL)
-INIT_SOURCES += $(ARCH_SOURCE)/init/*.[cS]
+KERNEL_SOURCES := $(KERNEL_SOURCES) $(KERNEL_LOCAL)
# this doesn't work for rv32, but fine for now */
ARCH_CFLAGS := $(ARCH_CFLAGS) -mcmodel=medany
-# oof, LLVM's riscv support has become better since I last looked into
-# it, but for some reason LTO still causes a crash. Meaning it has to be
-# disabled again, though for a different reason than last time
-OPTFLAGS != [ "$(LLVM)" != "0" ] && echo $(OPTFLAGS:-flto=) || echo $(OPTFLAGS)
-
run:
$(ARCH_SOURCE)/conf/mkimage.sh $(ARCH)