Build mkhybrid as a build tool.

This commit is contained in:
tsutsui 2024-05-31 20:52:58 +00:00
parent fdd5a63245
commit 09b5dada8b
3 changed files with 16 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.own.mk,v 1.1374 2024/05/29 02:06:45 riastradh Exp $
# $NetBSD: bsd.own.mk,v 1.1375 2024/05/31 20:52:58 tsutsui Exp $
# This needs to be before bsd.init.mk
.if defined(BSD_MK_COMPAT_FILE)
@ -488,6 +488,7 @@ TOOL_M68KELF2AOUT= ${TOOLDIR}/bin/${_TOOL_PREFIX}m68k-elf2aout
TOOL_MIPSELF2ECOFF= ${TOOLDIR}/bin/${_TOOL_PREFIX}mips-elf2ecoff
TOOL_MKCSMAPPER= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkcsmapper
TOOL_MKESDB= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkesdb
TOOL_MKHYBRID= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkhybrid
TOOL_MKLOCALE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mklocale
TOOL_MKMAGIC= ${TOOLDIR}/bin/${_TOOL_PREFIX}file
TOOL_MKNOD= ${TOOLDIR}/bin/${_TOOL_PREFIX}mknod

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.220 2024/05/23 02:50:47 gutteridge Exp $
# $NetBSD: Makefile,v 1.221 2024/05/31 20:52:58 tsutsui Exp $
.include <bsd.own.mk>
.include <bsd.endian.mk>
@ -230,6 +230,10 @@ SUBDIR+= dtc
SUBDIR+= mvme68k-wrtvid
.endif
.if ${MACHINE} == "mac68k" || ${MACHINE} == "macppc"
SUBDIR+= mkhybrid
.endif
.if ${MKX11} != "no"
SUBDIR+= makestrs
SUBDIR+= makekeys

9
tools/mkhybrid/Makefile Normal file
View File

@ -0,0 +1,9 @@
# $NetBSD: Makefile,v 1.1 2024/05/31 20:52:59 tsutsui Exp $
#
HOSTPROGNAME= ${_TOOL_PREFIX}mkhybrid
HOST_SRCDIR= external/gpl2/mkhybrid/bin
HOST_CPPFLAGS= -I${.CURDIR}
.include "${.CURDIR}/../Makefile.nbincludes"
.include "${.CURDIR}/../Makefile.host"