summaryrefslogtreecommitdiff
path: root/cross/nios2-binutils/Makefile
diff options
context:
space:
mode:
authormef <mef@pkgsrc.org>2013-11-03 10:16:03 +0000
committermef <mef@pkgsrc.org>2013-11-03 10:16:03 +0000
commita75bebc8418f2052a6ea2b5d2382243e97b6811e (patch)
treefb544fa1689ea355640b1c34efedf13106735b3d /cross/nios2-binutils/Makefile
parent3b035504ddc7c8b1ea89cf6a4e0fa488a91cf708 (diff)
downloadpkgsrc-a75bebc8418f2052a6ea2b5d2382243e97b6811e.tar.gz
The following combination of GNU/Altera nios2 tool-chain is newly added.
nios2 (just a Makefile.common) nios2-binutils (2.20) Cross binutils for ALTERA FPGA Nios2 processor. nios2-gcc Cross gcc-3.4.6 for ALTERA FPGA Nios2 processor.
Diffstat (limited to 'cross/nios2-binutils/Makefile')
-rw-r--r--cross/nios2-binutils/Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/cross/nios2-binutils/Makefile b/cross/nios2-binutils/Makefile
new file mode 100644
index 00000000000..b5677e71f36
--- /dev/null
+++ b/cross/nios2-binutils/Makefile
@@ -0,0 +1,43 @@
+# $NetBSD: Makefile,v 1.1 2013/11/03 10:16:03 mef Exp $
+
+PKG_VERSION= 2.20
+PKGNAME= nios2-binutils-${PKG_VERSION}
+CATEGORIES= cross
+MASTER_SITES= ftp://ftp.altera.com/outgoing/download/support/ip/processors/nios2/gnu/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+COMMENT= GNU binutils for Altera FPGA Nios2 processor
+LICENSE= gnu-gpl-v2
+
+EXTRACT_SUFX= .tgz
+EXTRACT_ELEMENTS= binutils-${PKGVERSION}
+WRKSRC= ${WRKDIR}/${EXTRACT_ELEMENTS}
+
+USE_TOOLS+= gmake makeinfo perl
+GNU_CONFIGURE= yes
+USE_PKGLOCALEDIR= yes
+BUILD_DEFS+= ${NIOS_INFO_DIR}
+INFO_FILES= yes
+
+.include "../../cross/nios2/Makefile.common"
+DISTNAME= nios2_gnu_gcc4_11.0
+
+CONFIGURE_ARGS+= --disable-nls
+# install libiberty by architecture
+CONFIGURE_ARGS+= --libdir=${PREFIX}/${NIOS2_TARGET}/lib
+
+# To avoid conflict with other cross/native info files,
+NIOS_INFO_DIR= ${PREFIX}/info/${NIOS2_TARGET}
+.include "../../mk/bsd.prefs.mk"
+INFO_DIR?= ${NIOS_INFO_DIR}
+
+# CONFIGURE_ARGS+= --infodir=
+# doesn't make it, will be overridden by following variables
+# see mk/configure/gnu-configure.mk
+GNU_CONFIGURE_INFODIR= ${NIOS_INFO_DIR}
+
+# following file installed is reference only, not used at all for the moment
+post-install:
+ ${INSTALL_DATA} files/nios2elf-netbsd.x ${DESTDIR}${PREFIX}/${NIOS2_TARGET}/lib/ldscripts
+
+.include "../../mk/bsd.pkg.mk"