PR port-mvme68k/56146

Build wrtvid as tools.
This commit is contained in:
rin 2021-05-06 13:23:36 +00:00
parent b7e3a91e98
commit 735b9693ea
7 changed files with 27 additions and 26 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.own.mk,v 1.1246 2021/04/25 21:55:58 christos Exp $
# $NetBSD: bsd.own.mk,v 1.1247 2021/05/06 13:23:36 rin Exp $
# This needs to be before bsd.init.mk
.if defined(BSD_MK_COMPAT_FILE)
@ -492,6 +492,7 @@ TOOL_MKUBOOTIMAGE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mkubootimage
TOOL_ELFTOSB= ${TOOLDIR}/bin/${_TOOL_PREFIX}elftosb
TOOL_MSGC= MSGDEF=${TOOLDIR}/share/misc ${TOOLDIR}/bin/${_TOOL_PREFIX}msgc
TOOL_MTREE= ${TOOLDIR}/bin/${_TOOL_PREFIX}mtree
TOOL_MVME68KWRTVID= ${TOOLDIR}/bin/${_TOOL_PREFIX}mvme68k-wrtvid
TOOL_NBPERF= ${TOOLDIR}/bin/${_TOOL_PREFIX}perf
TOOL_NCDCS= ${TOOLDIR}/bin/${_TOOL_PREFIX}ibmnws-ncdcs
TOOL_PAX= ${TOOLDIR}/bin/${_TOOL_PREFIX}pax
@ -606,6 +607,7 @@ TOOL_MKUBOOTIMAGE= mkubootimage
TOOL_ELFTOSB= elftosb
TOOL_MSGC= msgc
TOOL_MTREE= mtree
TOOL_MVME68KWRTVID= wrtvid
TOOL_NBPERF= nbperf
TOOL_NCDCS= ncdcs
TOOL_PAX= pax

View File

@ -1,10 +1,6 @@
# $NetBSD: Makefile,v 1.6 2009/01/19 23:09:16 he Exp $
# $NetBSD: Makefile,v 1.7 2021/05/06 13:23:36 rin Exp $
SUBDIR= libbug libsa .WAIT sboot netboot bootxx bootsd bootst \
installboot
.ifmake !install
SUBDIR+= wrtvid
.endif
.include <bsd.subdir.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.booters,v 1.27 2021/04/15 01:54:39 mrg Exp $
# $NetBSD: Makefile.booters,v 1.28 2021/05/06 13:23:36 rin Exp $
S?= ${.CURDIR}/../../../..
MDEC_DIR?= /usr/mdec
@ -73,13 +73,6 @@ $(BUGCRT):
@echo making sure the bugcrt is up to date...
@(cd ${LIB_BUG_DIR}; ${MAKE} bugstart.o)
WRTVID_BOOT_DIR= ${.CURDIR}/../wrtvid
WRTVID_DIR!= cd ${WRTVID_BOOT_DIR} && ${PRINTOBJDIR}
WRTVID=${WRTVID_DIR}/wrtvid
.PHONY: ${WRTVID}
${WRTVID}:
@echo making sure the wrtvid is up to date...
@(cd ${WRTVID_BOOT_DIR}; ${MAKE} dependall)
WRTVID= ${TOOL_MVME68KWRTVID}
.endif

View File

@ -1,12 +1,8 @@
# $NetBSD: Makefile,v 1.12 2018/05/01 19:59:45 christos Exp $
# $NetBSD: Makefile,v 1.13 2021/05/06 13:23:36 rin Exp $
S=${.CURDIR}/../../../../
.include <bsd.init.mk>
.include <bsd.hostinit.mk>
PROG= wrtvid
MKMAN= no
HOSTPROG= wrtvid
# only needed during build
proginstall::
.include <bsd.hostprog.mk>
.include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
/* $NetBSD: wrtvid.c,v 1.9 2019/01/08 00:00:53 rin Exp $ */
/* $NetBSD: wrtvid.c,v 1.10 2021/05/06 13:23:36 rin Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@ -29,6 +29,10 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.208 2021/04/25 15:11:28 christos Exp $
# $NetBSD: Makefile,v 1.209 2021/05/06 13:23:36 rin Exp $
.include <bsd.own.mk>
.include <bsd.endian.mk>
@ -219,6 +219,10 @@ SUBDIR+= libfdt .WAIT
SUBDIR+= dtc
.endif
.if ${MACHINE} == "mvme68k"
SUBDIR+= mvme68k-wrtvid
.endif
.if ${MKX11} != "no"
SUBDIR+= makestrs
SUBDIR+= makekeys

View File

@ -0,0 +1,6 @@
# $NetBSD: Makefile,v 1.1 2021/05/06 13:23:36 rin Exp $
HOSTPROGNAME= ${_TOOL_PREFIX}mvme68k-wrtvid
HOST_SRCDIR= sys/arch/mvme68k/stand/wrtvid
.include "${.CURDIR}/../Makefile.host"