head	1.4;
access;
symbols
	pkgsrc-2026Q1:1.4.0.6
	pkgsrc-2026Q1-base:1.4
	pkgsrc-2025Q4:1.4.0.4
	pkgsrc-2025Q4-base:1.4
	pkgsrc-2025Q3:1.4.0.2
	pkgsrc-2025Q3-base:1.4
	pkgsrc-2025Q2:1.3.0.10
	pkgsrc-2025Q2-base:1.3
	pkgsrc-2025Q1:1.3.0.8
	pkgsrc-2025Q1-base:1.3
	pkgsrc-2024Q4:1.3.0.6
	pkgsrc-2024Q4-base:1.3
	pkgsrc-2024Q3:1.3.0.4
	pkgsrc-2024Q3-base:1.3
	pkgsrc-2024Q2:1.3.0.2
	pkgsrc-2024Q2-base:1.3
	pkgsrc-2024Q1:1.2.0.2
	pkgsrc-2024Q1-base:1.2;
locks; strict;
comment	@# @;


1.4
date	2025.09.08.22.54.47;	author lloyd;	state Exp;
branches;
next	1.3;
commitid	DsmwF6pVR3F1QX9G;

1.3
date	2024.05.13.23.08.56;	author gutteridge;	state Exp;
branches;
next	1.2;
commitid	GBZehIs7nl5krT9F;

1.2
date	2024.03.19.14.24.34;	author dogcow;	state Exp;
branches;
next	1.1;
commitid	8ruvCEuHHckyiM2F;

1.1
date	2024.03.18.17.39.34;	author dogcow;	state Exp;
branches;
next	;
commitid	TnIk0RQaKZCLpF2F;


desc
@@


1.4
log
@Update the arm-none-eabi and riscv64-none-elf toolchains.

These toolchains have been updated to

	binutils-2.45
	gcc-14.3.0
	gdb-16.3
	newlib-4.5.0.20241231

from

	binutils-2.32
	gcc-8.3.0
	gdb-7.10
	newlib-3.1.0 (4.4.0.20231231 for riscv64)

This affects

	cross/arm-none-eabi-binutils
	cross/arm-none-eabi-gcc
	cross/arm-none-eabi-gdb
	cross/riscv64-none-elf-binutils
	cross/riscv64-none-elf-gcc


Multilib is now enabled so that code for microcontrollers can be
compiled. These cross compilers can now be used to compile code for
microcontrollers such as the Raspberry Pi Pico 2.
@
text
@# $NetBSD: Makefile,v 1.3 2024/05/13 23:08:56 gutteridge Exp $

DISTNAME=		gcc-14.3.0
PKGNAME=		cross-riscv64-none-elf-${DISTNAME}
#PKGREVISION=		1
CATEGORIES=		cross
NEWLIBVER=		4.5.0.20241231
MASTER_SITES=		${MASTER_SITE_GNU:=gcc/gcc-${PKGVERSION_NOREV}/}
EXTRACT_SUFX=		.tar.xz
DISTFILES=		${DEFAULT_DISTFILES} \
			newlib-${NEWLIBVER}.tar.gz
SITES.newlib-${NEWLIBVER}.tar.gz=	https://www.sourceware.org/pub/newlib/

MAINTAINER=		port-riscv@@NetBSD.org
HOMEPAGE=		# none
COMMENT=		GCC for bare metal RISC-V 64-bit little-endian ELF
LICENSE=		gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND gnu-lgpl-v3

EXTRACT_USING=		bsdtar

# Relocations result in a linker error.
MKPIE_SUPPORTED=	no

# for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33549
# use makeinfo from pkgsrc/devel/gtexinfo.
TOOL_DEPENDS+=			gtexinfo>=5.1:../../devel/gtexinfo
_TOOLS_USE_PKGSRC.makeinfo=	yes

DEPENDS+=		cross-riscv64-none-elf-binutils>=2.45:../../cross/riscv64-none-elf-binutils

USE_LANGUAGES+=		c c++

CHECK_PORTABILITY_SKIP+=	contrib/*
CHECK_PORTABILITY_SKIP+=	gcc/config/nvptx/gen-opt.sh

RISCV64ELF_PREFIX=	${PREFIX}/cross-riscv64-none-elf
OBJDIR=			../build
CONFIGURE_DIRS=		${OBJDIR}
CONFIGURE_SCRIPT=	${WRKSRC}/configure

CONFIG_SHELL=		${TOOLS_PATH.bash}
WRAPPER_SHELL=		${TOOLS_PATH.bash}
USE_TOOLS+=		bash gmake gsed makeinfo perl

GNU_CONFIGURE=		yes
GNU_CONFIGURE_STRICT=	no # has sub-configures
GNU_CONFIGURE_PREFIX=	${RISCV64ELF_PREFIX}

CONFIGURE_ARGS+=	--target=riscv64-none-elf
CONFIGURE_ARGS+=	--enable-languages=c,c++
CONFIGURE_ARGS+=	--with-newlib
CONFIGURE_ARGS+=	--enable-multilib
CONFIGURE_ARGS+=	--disable-nls
CONFIGURE_ARGS+=	--disable-libstdcxx-pch
CONFIGURE_ARGS+=	--disable-gcov

INFO_FILES=		yes

post-extract:
	${LN} -s ${WRKDIR}/newlib-${NEWLIBVER}/newlib ${WRKSRC}/newlib
	${LN} -s ${WRKDIR}/newlib-${NEWLIBVER}/libgloss ${WRKSRC}/libgloss

pre-configure:
	${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR}

.include "../../devel/gmp/buildlink3.mk"
.include "../../math/mpfr/buildlink3.mk"
.include "../../math/mpcomplex/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.3
log
@riscv64-none-elf-gcc: drop duplicated CHECK_PORTABILITY_SKIP
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2024/03/19 14:24:34 dogcow Exp $
d3 1
a3 1
DISTNAME=		gcc-13.2.0
d5 1
a5 1
PKGREVISION=		1
d7 1
a7 1
NEWLIBVER=		4.4.0.20231231
d29 1
a29 1
DEPENDS+=		cross-riscv64-none-elf-binutils-[0-9]*:../../cross/riscv64-none-elf-binutils
d52 1
a52 1
CONFIGURE_ARGS+=	--disable-multilib
@


1.2
log
@Set --disable-multilib; the default selection of multilibs is rather
gigantic, and this cuts down the package to about a third of the size.

bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2024/03/18 17:39:34 dogcow Exp $
a13 1

a46 2
CHECK_PORTABILITY_SKIP+= contrib/* # not needed for building

@


1.1
log
@add cross/riscv64-none-elf-binutils and cross/riscv64-none-elf-gcc, copied pretty much verbatim from the mipsel-none-elf-* packages
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2024/01/31 16:42:51 ryoon Exp $
d5 1
d55 1
@

