0b0f115748
To simplify infrastructure. Ok joerg@ XXX: nios2-gcc3 loops endlessly during build, before and after change, so untested. XXX: nios2-gcc does not build on -current, in the same way before and after the change, so untested.
35 lines
1 KiB
Makefile
35 lines
1 KiB
Makefile
# $NetBSD: Makefile.common,v 1.5 2016/06/19 16:20:28 wiz Exp $ -*- Makefile -*-
|
|
#
|
|
# used by cross/nios2-binutils/Makefile
|
|
# used by cross/nios2-gcc/Makefile
|
|
|
|
# sentinel to avoid duplicate
|
|
.if !defined(NIOS2_MAKEFILECOMMON)
|
|
NIOS2_MAKEFILECOMMON= # yes
|
|
DISTNAME= sourceryg++-2013.05-43-nios2-linux-gnu.src
|
|
CATEGORIES= cross
|
|
MASTER_SITES= https://sourcery.mentor.com/GNUToolchain/package11649/public/nios2-linux-gnu/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
GNU_CONFIGURE= yes
|
|
INFO_FILES= yes
|
|
|
|
NIOS2_TARGET?= nios2-elf
|
|
PLIST_SUBST+= NIOS2_TARGET=${NIOS2_TARGET:Q}
|
|
|
|
GNU_CONFIGURE_PREFIX= ${PREFIX}/cross
|
|
PATH:= ${PREFIX}/cross/bin:${PATH}
|
|
|
|
BUILD_DEPENDS+= gtexinfo-[0-9]*:../../devel/gtexinfo
|
|
# MASTER_SITES with https:// and FETCH_USING= curl
|
|
BUILD_DEPENDS+= curl-[0-9]*:../../www/curl
|
|
|
|
.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
|