diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-05-12 00:36:18 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-05-12 00:36:18 +0300 |
| commit | 4cde8bceb1ff14896884c224850f6c7611551175 (patch) | |
| tree | 50242259fb7b66179e461b8ede554fdc5b99ef70 /arch/riscv64/source.mk | |
| parent | e52d9de585ed7cb1482ab142911d1c6d3e486955 (diff) | |
| download | kmi-4cde8bceb1ff14896884c224850f6c7611551175.tar.gz kmi-4cde8bceb1ff14896884c224850f6c7611551175.zip | |
fix LLVM compilation
+ RELEASE=1 doesn't work for some reason, though
Diffstat (limited to 'arch/riscv64/source.mk')
| -rw-r--r-- | arch/riscv64/source.mk | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/riscv64/source.mk b/arch/riscv64/source.mk index 5de5309..321ba7c 100644 --- a/arch/riscv64/source.mk +++ b/arch/riscv64/source.mk @@ -4,16 +4,6 @@ INIT_SOURCES += $(ARCH_SOURCE)/init/*.[cS] # this doesn't work for rv32, but fine for now */ ARCH_CFLAGS := -mcmodel=medany -ARCH_LDFLAGS := -fuse-ld=bfd - -# slightly hacky but bfd is currently the only compiler that correctly handles -# riscv relocations, but it doesn't recognise LLVM lto files, so if we're -# doing an LLVM compilation, remove lto support -DEBUGFLAGS != [ $(LLVM) ] && echo $(DEBUGFLAGS:-flto=) || echo $(DEBUGFLAGS) - -# llvm-objcopy is buggy, use gnu tools instead -# christ, not much LLVM tooling available for RISCV :D -OBJCOPY := $(CROSS_COMPILE)objcopy run: $(ARCH_SOURCE)/conf/mkimage.sh $(ARCH) |
