Better EXTERNAL_TOOLCHAIN support from Zachary McGrew
- Allow mdsetimage and dbsym to be built with EXTERNAL_TOOLCHAIN - Allow BFDDIR and IBERTYDIR to be overwritten for mdsetimage and dbsym
This commit is contained in:
parent
d46374d8f4
commit
0e229e5357
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.191 2017/06/07 10:38:33 skrll Exp $
|
||||
# $NetBSD: Makefile,v 1.192 2017/12/27 21:34:11 christos Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
.include <bsd.endian.mk>
|
||||
@ -53,9 +53,7 @@ TOOLCHAIN_BITS+= pcc
|
||||
. endif
|
||||
.endif
|
||||
|
||||
.if ${TOOLCHAIN_MISSING} == "no"
|
||||
# XXX Eventually, we want to be able to build dbsym and mdsetimage
|
||||
# XXX if EXTERNAL_TOOLCHAIN is set.
|
||||
.if ${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN)
|
||||
TOOLCHAIN_BITS+= dbsym mdsetimage
|
||||
.endif
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.11 2017/01/06 20:27:19 christos Exp $
|
||||
# $NetBSD: Makefile,v 1.12 2017/12/27 21:34:11 christos Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
@ -9,8 +9,8 @@ HOSTPROGNAME= ${MACHINE_GNU_PLATFORM}-dbsym
|
||||
HOST_SRCDIR= external/gpl3/binutils/usr.sbin/dbsym
|
||||
|
||||
TOOLCHAINOBJ!= cd ${.CURDIR}/../binutils && ${PRINTOBJDIR}
|
||||
BFDDIR= ${TOOLCHAINOBJ}/build/bfd
|
||||
IBERTYDIR= ${TOOLCHAINOBJ}/build/libiberty
|
||||
BFDDIR?= ${TOOLCHAINOBJ}/build/bfd
|
||||
IBERTYDIR?= ${TOOLCHAINOBJ}/build/libiberty
|
||||
|
||||
.include "${.CURDIR}/../Makefile.host"
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.13 2017/01/06 20:27:19 christos Exp $
|
||||
# $NetBSD: Makefile,v 1.14 2017/12/27 21:34:12 christos Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
@ -9,8 +9,8 @@ HOSTPROGNAME= ${MACHINE_GNU_PLATFORM}-mdsetimage
|
||||
HOST_SRCDIR= external/gpl3/binutils/usr.sbin/mdsetimage
|
||||
|
||||
TOOLCHAINOBJ!= cd ${.CURDIR}/../binutils && ${PRINTOBJDIR}
|
||||
BFDDIR= ${TOOLCHAINOBJ}/build/bfd
|
||||
IBERTYDIR= ${TOOLCHAINOBJ}/build/libiberty
|
||||
BFDDIR?= ${TOOLCHAINOBJ}/build/bfd
|
||||
IBERTYDIR?= ${TOOLCHAINOBJ}/build/libiberty
|
||||
|
||||
.include "${.CURDIR}/../Makefile.host"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user