1 1.3 mrg # $NetBSD: bsd.rv32.mk,v 1.3 2019/04/18 10:07:07 mrg Exp $ 2 1.1 matt 3 1.3 mrg # Keep this out of the .ifndef section, otherwise bsd.own.mk overrides this 4 1.1 matt .if empty(LD:M-m) 5 1.1 matt LD+= -m elf32lriscv 6 1.1 matt .endif 7 1.3 mrg 8 1.3 mrg .ifndef _COMPAT_BSD_RV32_MK_ 9 1.3 mrg _COMPAT_BSD_RV32_MK_=1 10 1.3 mrg 11 1.1 matt MLIBDIR= rv32 12 1.3 mrg LIBGCC_MACHINE_ARCH= riscv32 13 1.1 matt LIBC_MACHINE_ARCH= riscv32 14 1.1 matt COMMON_MACHINE_ARCH= riscv32 15 1.1 matt KVM_MACHINE_ARCH= riscv32 16 1.1 matt PTHREAD_MACHINE_ARCH= riscv32 17 1.1 matt BFD_MACHINE_ARCH= riscv32 18 1.1 matt CSU_MACHINE_ARCH= riscv32 19 1.1 matt CRYPTO_MACHINE_CPU= riscv32 20 1.1 matt LDELFSO_MACHINE_CPU= riscv32 21 1.3 mrg LDELFSO_MACHINE_ARCH= riscv32 22 1.1 matt GOMP_MACHINE_ARCH= riscv32 23 1.2 matt XORG_MACHINE_ARCH= riscv32 24 1.1 matt 25 1.3 mrg .if empty(COPTS:M-mbi) 26 1.3 mrg _RV32_OPTS= -mabi=ilp32 -march=rv32g 27 1.3 mrg COPTS+= ${_RV32_OPTS} 28 1.3 mrg CPUFLAGS+= ${_RV32_OPTS} 29 1.3 mrg LDADD+= ${_RV32_OPTS} 30 1.3 mrg LDFLAGS+= ${_RV32_OPTS} 31 1.3 mrg MKDEPFLAGS+= ${_RV32_OPTS} 32 1.3 mrg .endif 33 1.3 mrg 34 1.3 mrg .include "../../Makefile.compat" 35 1.3 mrg 36 1.1 matt .endif 37