[BACK]Return to bsd.rv32.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / compat / riscv64 / rv32

File: [cvs.NetBSD.org] / src / compat / riscv64 / rv32 / bsd.rv32.mk (download)

Revision 1.3, Thu Apr 18 10:07:07 2019 UTC (23 months, 3 weeks ago) by mrg
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, HEAD
Changes since 1.2: +19 -5 lines

- various updates for GCC 7 riscv definitions: -mabi and -march changed
- add missing LIBGCC_MACHINE_ARCH
- add the new ldscripts for riscv64 MKCOMPAT.

#	$NetBSD: bsd.rv32.mk,v 1.3 2019/04/18 10:07:07 mrg Exp $

# Keep this out of the .ifndef section, otherwise bsd.own.mk overrides this
.if empty(LD:M-m)
LD+=			-m elf32lriscv
.endif

.ifndef _COMPAT_BSD_RV32_MK_
_COMPAT_BSD_RV32_MK_=1

MLIBDIR=		rv32
LIBGCC_MACHINE_ARCH=	riscv32
LIBC_MACHINE_ARCH=	riscv32
COMMON_MACHINE_ARCH=	riscv32
KVM_MACHINE_ARCH=	riscv32
PTHREAD_MACHINE_ARCH=	riscv32
BFD_MACHINE_ARCH=	riscv32
CSU_MACHINE_ARCH=	riscv32
CRYPTO_MACHINE_CPU=	riscv32
LDELFSO_MACHINE_CPU=	riscv32
LDELFSO_MACHINE_ARCH=	riscv32
GOMP_MACHINE_ARCH=	riscv32
XORG_MACHINE_ARCH=	riscv32

.if empty(COPTS:M-mbi)
_RV32_OPTS=		-mabi=ilp32 -march=rv32g
COPTS+=			${_RV32_OPTS}
CPUFLAGS+=		${_RV32_OPTS}
LDADD+=			${_RV32_OPTS}
LDFLAGS+=		${_RV32_OPTS}
MKDEPFLAGS+=		${_RV32_OPTS}
.endif

.include "../../Makefile.compat"

.endif