aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv64/source.mk
blob: 54fcb08226e7a87d3524451ffa92bc2fc33b1dfb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
KERNEL_LOCAL	!= echo $(ARCH_SOURCE)/kernel/*.[cS]
KERNEL_SOURCES	:= $(KERNEL_SOURCES) $(KERNEL_LOCAL)

# this doesn't work for rv32, but fine for now */
ARCH_CFLAGS	:= $(ARCH_CFLAGS) -mcmodel=medany -march=rv64imac_zicsr -mabi=lp64

include $(ARCH_SOURCE)/asm/source.mk

# dependecy generation
$(ARCH_KERN_BUILD)/kernel/entry.o: $(ARCH_SOURCE)/kernel/gen/asm-offsets.h