summaryrefslogtreecommitdiff
path: root/cross/xtensa-lx106-elf-binutils/Makefile
blob: 5293a570e9df5e98199d73f86cf052372e6c7199 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# $NetBSD: Makefile,v 1.5 2020/08/31 18:06:54 wiz Exp $

DISTNAME=	binutils-gdb-xtensa-2.31_20190405
PKGNAME=	${DISTNAME:C/binutils-gdb-xtensa/xtensa-lx106-elf-binutils/}
PKGREVISION=	1
CATEGORIES=	cross
MASTER_SITES=	${MASTER_SITE_GITHUB:=jcmvbkbc/}
GITHUB_PROJECT=	binutils-gdb-xtensa
GITHUB_TAG=	c0b4cd465573f1772927cb3ad5d6e7d17af21622

MAINTAINER=	bouyer@NetBSD.org
HOMEPAGE=	https://github.com/espressif/binutils-gdb
COMMENT=	Cross binutils for Espressif ESP8266 bare metal environment
LICENSE=	gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND gnu-lgpl-v3

INFO_FILES=		yes
GNU_CONFIGURE=		yes
GNU_CONFIGURE_STRICT=	no # several sub-configures know --enable-nls
USE_LIBTOOL=		yes
USE_TOOLS+=		gmake makeinfo perl

OBJDIR=			../build
CONFIGURE_DIRS=		${OBJDIR}
CONFIGURE_SCRIPT=	${WRKSRC}/configure
GNU_CONFIGURE_PREFIX=	${PREFIX}/xtensa-lx106-elf

CONFIGURE_ARGS+=	--disable-werror
CONFIGURE_ARGS+=	--target=xtensa-lx106-elf
CONFIGURE_ARGS+=	--enable-multilib
CONFIGURE_ARGS+=	--disable-nls
CONFIGURE_ARGS+=	--disable-gdb

# Running tests needs a lot more work anyway
CHECK_PORTABILITY_SKIP+=	gdb/testsuite/Makefile.in
CHECK_PORTABILITY_SKIP+=	sim/testsuite/sim/bfin/run-tests.sh

pre-configure:
	${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR}
	${CP} ${FILESDIR}/xtensa-config.h ${WRKSRC}/include/xtensa-config.h

.include "../../mk/bsd.pkg.mk"