1ifeq ($(subdir),misc)
2sysdep_headers += sys/cachectl.h
3sysdep_routines += flush-icache
4endif
5
6ifeq ($(subdir),stdlib)
7gen-as-const-headers += ucontext_i.sym
8endif
9
10abi-variants := ilp32 ilp32d lp64 lp64d
11
12ifeq (,$(filter $(default-abi),$(abi-variants)))
13$(error Unknown ABI $(default-abi), must be one of $(abi-variants))
14endif
15
16abi-ilp32-condition   := __WORDSIZE == 32 && defined __riscv_float_abi_soft
17abi-ilp32d-condition  := __WORDSIZE == 32 && defined __riscv_float_abi_double
18abi-lp64-condition    := __WORDSIZE == 64 && defined __riscv_float_abi_soft
19abi-lp64d-condition   := __WORDSIZE == 64 && defined __riscv_float_abi_double
20