Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpufw set unconditional

Simplifies logic.
(Second commit - first one was partial)

Restoring MK* requested by mrg on tech-kern discussion
https://mail-index.netbsd.org/tech-kern/2021/09/25/msg027695.html
This commit is contained in:
maya 2021-09-26 15:52:40 +00:00
parent 876f4bdad7
commit f9d97969cb
8 changed files with 25 additions and 35 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.451 2021/09/25 08:54:30 maya Exp $
# $NetBSD: Makefile,v 1.452 2021/09/26 15:52:40 maya Exp $
# from: @(#)Makefile 8.7 (Berkeley) 5/25/95
# Environment variables without default values:
@ -368,16 +368,13 @@ install-etc-files: .PHONY .MAKE check_DESTDIR MAKEDEV
# Install var/db/obsolete set lists; this is performed by "make build"
#
OBSOLETE.dir= ${.OBJDIR}/obsolete.dir
OBSOLETE.files= base comp etc games man misc rescue text
OBSOLETE.files= base comp etc games gpufw man misc rescue text
.if ${MKDEBUG} != "no"
OBSOLETE.files+= debug
.endif
.if ${MKDTB} != "no"
OBSOLETE.files+= dtb
.endif
.if ${MKGPUFIRMWARE} != "no"
OBSOLETE.files+= gpufw
.endif
.if ${MKKMOD} != "no"
OBSOLETE.files+= modules
.endif

View File

@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.4 2021/09/25 08:54:30 maya Exp $
# $NetBSD: Makefile,v 1.5 2021/09/26 15:52:40 maya Exp $
.include <bsd.own.mk>
.if ${MKGPUFIRMWARE} != "no"
.if ${MKNOUVEAUFIRMWARE} != "no"
SUBDIR+= gm20x
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.README,v 1.417 2021/09/25 08:54:30 maya Exp $
# $NetBSD: bsd.README,v 1.418 2021/09/26 15:52:40 maya Exp $
# @(#)bsd.README 8.2 (Berkeley) 4/2/94
This is the README file for the make "include" files for the NetBSD
@ -218,10 +218,6 @@ MKFIRMWARE If not "no", install the /libdata/firmware directory,
Default: yes on amd64, cobalt, evbarm evbmips, evbppc, hpcarm,
hppa, i386, mac68k, macppc, sandpoint, and sparc64, no elsewhere.
MKGPUFIRMWARE If not "no", install the /libdata/firmware directory,
which is necessary for GPU drivers.
Default: yes on amd64, i386, evbarm. No elsewhere.
MKGCC If "no", don't build gcc(1) or any of the GCC-related
libraries (libgcc, libobjc, libstdc++).
Default: yes
@ -373,6 +369,10 @@ MKNLS If "no", don't build or install the NLS files and locale
definition files.
Default: yes
MKNOUVEAUFIRMWARE If "yes", install the /libdata/firmware/nouveau directory,
which is necessary for the nouveau DRM driver.
Default: yes on amd64 and i386, no elsewhere.
MKNPF If "no", don't build or install the NPF and its modules.
Default: yes

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.own.mk,v 1.1261 2021/09/25 08:54:30 maya Exp $
# $NetBSD: bsd.own.mk,v 1.1262 2021/09/26 15:52:40 maya Exp $
# This needs to be before bsd.init.mk
.if defined(BSD_MK_COMPAT_FILE)
@ -1236,9 +1236,12 @@ MKFIRMWARE.sandpoint= yes
MKFIRMWARE.sparc64= yes
# Only install the GPU firmware on DRM-happy systems.
MKGPUFIRMWARE.x86_64= yes
MKGPUFIRMWARE.i386= yes
MKGPUFIRMWARE.aarch64= yes
MKNOUVEAUFIRMWARE.x86_64= yes
MKNOUVEAUFIRMWARE.i386= yes
MKNOUVEAUFIRMWARE.aarch64= yes
MKRADEONFIRMWARE.x86_64= yes
MKRADEONFIRMWARE.i386= yes
MKRADEONFIRMWARE.aarch64= yes
# Only install the tegra firmware on evbarm.
MKTEGRAFIRMWARE.evbarm= yes
@ -1288,9 +1291,10 @@ _MKVARS.no= \
MKKYUA \
MKLIBCXX MKLLD MKLLDB MKLLVM MKLLVMRT MKLINT \
MKMANZ MKMCLINKER \
MKNSD MKOBJDIRS \
MKNOUVEAUFIRMWARE MKNSD \
MKOBJDIRS \
MKPCC MKPICINSTALL MKPIGZGZIP \
MKGPUFIRMWARE MKREPRO \
MKRADEONFIRMWARE MKREPRO \
MKSLJIT MKSOFTFLOAT MKSTRIPIDENT \
MKTEGRAFIRMWARE MKTPM \
MKUNPRIVED MKUPDATE \

View File

@ -1,10 +1,10 @@
# $NetBSD: Makefile,v 1.7 2021/09/25 08:54:31 maya Exp $
# $NetBSD: Makefile,v 1.8 2021/09/26 15:52:40 maya Exp $
NOMAN= # defined
.include <bsd.own.mk>
.if ${MKGPUFIRMWARE} != "no"
.if ${MKRADEONFIRMWARE} != "no"
FILES= \
R100_cp.bin \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.42 2021/09/25 08:54:31 maya Exp $
# $NetBSD: Makefile.inc,v 1.43 2021/09/26 15:52:40 maya Exp $
#
# Makefile for sysinst
@ -81,10 +81,6 @@ CPPFLAGS+= -DUSING_PAXASTAR
CPPFLAGS+= -DHAVE_DTB
.endif
.if ${MKGPUFIRMWARE:Uno} != "no"
CPPFLAGS+= -DHAVE_GPUFW
.endif
.if ${MKKMOD:Uno} != "no"
CPPFLAGS+= -DHAVE_MODULES
.endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: defs.h,v 1.73 2021/09/25 08:54:31 maya Exp $ */
/* $NetBSD: defs.h,v 1.74 2021/09/26 15:52:40 maya Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -196,12 +196,7 @@ enum {
#else
#define WITH_DTB
#endif
#ifdef HAVE_GPUFW
#define WITH_GPUFW SET_GPUFW,
#else
#define WITH_GPUFW
#endif
#define SET_CORE WITH_MODULES SET_BASE, WITH_DTB WITH_GPUFW SET_ETC
#define SET_CORE WITH_MODULES SET_BASE, WITH_DTB SET_GPUFW, SET_ETC
/* All system sets */
#define SET_SYSTEM SET_CORE, SET_COMPILER, SET_GAMES, \
SET_MAN_PAGES, SET_MISC, SET_RESCUE, \

View File

@ -1,4 +1,4 @@
/* $NetBSD: util.c,v 1.60 2021/09/25 08:54:31 maya Exp $ */
/* $NetBSD: util.c,v 1.61 2021/09/26 15:52:40 maya Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -128,9 +128,7 @@ distinfo dist_list[] = {
{"etc", SET_ETC, false, MSG_set_system, NULL},
{"comp", SET_COMPILER, false, MSG_set_compiler, NULL},
{"games", SET_GAMES, false, MSG_set_games, NULL},
#ifdef HAVE_GPUFW
{"gpufw", SET_GPUFW, false, MSG_set_gpufw, NULL},
#endif
{"man", SET_MAN_PAGES, false, MSG_set_man_pages, NULL},
{"misc", SET_MISC, false, MSG_set_misc, NULL},
{"rescue", SET_RESCUE, false, MSG_set_rescue, NULL},