2018-01-29 18:30:24 +00:00
|
|
|
ifeq ($(subdir),misc)
|
|
|
|
sysdep_headers += sys/cachectl.h
|
|
|
|
sysdep_routines += flush-icache
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(subdir),stdlib)
|
|
|
|
gen-as-const-headers += ucontext_i.sym
|
|
|
|
endif
|
|
|
|
|
2018-11-30 09:18:00 +00:00
|
|
|
abi-variants := ilp32 ilp32d lp64 lp64d
|
2018-01-29 18:30:24 +00:00
|
|
|
|
|
|
|
ifeq (,$(filter $(default-abi),$(abi-variants)))
|
|
|
|
$(error Unknown ABI $(default-abi), must be one of $(abi-variants))
|
|
|
|
endif
|
|
|
|
|
2018-11-30 09:18:00 +00:00
|
|
|
abi-ilp32-condition := __WORDSIZE == 32 && defined __riscv_float_abi_soft
|
|
|
|
abi-ilp32d-condition := __WORDSIZE == 32 && defined __riscv_float_abi_double
|
|
|
|
abi-lp64-condition := __WORDSIZE == 64 && defined __riscv_float_abi_soft
|
|
|
|
abi-lp64d-condition := __WORDSIZE == 64 && defined __riscv_float_abi_double
|