diff options
author | mef <mef@pkgsrc.org> | 2013-11-03 10:16:03 +0000 |
---|---|---|
committer | mef <mef@pkgsrc.org> | 2013-11-03 10:16:03 +0000 |
commit | a75bebc8418f2052a6ea2b5d2382243e97b6811e (patch) | |
tree | fb544fa1689ea355640b1c34efedf13106735b3d /cross/nios2 | |
parent | 3b035504ddc7c8b1ea89cf6a4e0fa488a91cf708 (diff) | |
download | pkgsrc-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')
-rw-r--r-- | cross/nios2/Makefile.common | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/cross/nios2/Makefile.common b/cross/nios2/Makefile.common new file mode 100644 index 00000000000..14617c0e9c1 --- /dev/null +++ b/cross/nios2/Makefile.common @@ -0,0 +1,34 @@ +# $NetBSD: Makefile.common,v 1.1 2013/11/03 10:16:03 mef Exp $ +# +# used by cross/nios2-binutils/Makefile +# used by cross/nios2-gcc/Makefile + +# sentinel to avoid duplicate +.if !defined(NIOS2_MAKEFILECOMMON) +NIOS2_MAKEFILECOMMON= # yes + +MASTER_SITES= ftp://ftp.altera.com/outgoing/download/support/ip/processors/nios2/gnu/ +DISTNAME= nios2_gnu_gcc3_10.0 +# nios2_gnu_gcc3_10.1.tgz are the exactly same, see MD5 + +GNU_CONFIGURE= yes +USE_PKGLOCALEDIR= yes + +NIOS2_TARGET?= nios2-elf +PLIST_SUBST+= NIOS2_TARGET=${NIOS2_TARGET:Q} + +USE_CROSSBASE= yes +BUILD_DEFS+= CROSSBASE +PATH:= ${CROSSBASE}/bin:${PATH} + +BUILD_DEPENDS+= gtexinfo-[0-9]*:../../devel/gtexinfo + +.if defined(GNU_CONFIGURE) +CONFIGURE_ARGS= # reset +CONFIGURE_ARGS+= --target=${NIOS2_TARGET:Q} +# following line to avoid getting +# make: exec(nios2--netbsdelf-ar) failed (No such file or directory) +USE_GNU_CONFIGURE_HOST= NO +.endif + +.endif |