Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpuf...



details:   https://anonhg.NetBSD.org/src/rev/ed01317c0d10
branches:  trunk
changeset: 987438:ed01317c0d10
user:      maya <maya%NetBSD.org@localhost>
date:      Sun Sep 26 15:52:40 2021 +0000

description:
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

diffstat:

 etc/Makefile                      |   7 ++-----
 external/nvidia-firmware/Makefile |   4 ++--
 share/mk/bsd.README               |  10 +++++-----
 share/mk/bsd.own.mk               |  16 ++++++++++------
 sys/dev/microcode/radeon/Makefile |   4 ++--
 usr.sbin/sysinst/Makefile.inc     |   6 +-----
 usr.sbin/sysinst/defs.h           |   9 ++-------
 usr.sbin/sysinst/util.c           |   4 +---
 8 files changed, 25 insertions(+), 35 deletions(-)

diffs (188 lines):

diff -r b40a8a2d15d9 -r ed01317c0d10 etc/Makefile
--- a/etc/Makefile      Sun Sep 26 15:48:54 2021 +0000
+++ b/etc/Makefile      Sun Sep 26 15:52:40 2021 +0000
@@ -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 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
diff -r b40a8a2d15d9 -r ed01317c0d10 external/nvidia-firmware/Makefile
--- a/external/nvidia-firmware/Makefile Sun Sep 26 15:48:54 2021 +0000
+++ b/external/nvidia-firmware/Makefile Sun Sep 26 15:52:40 2021 +0000
@@ -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
 
diff -r b40a8a2d15d9 -r ed01317c0d10 share/mk/bsd.README
--- a/share/mk/bsd.README       Sun Sep 26 15:48:54 2021 +0000
+++ b/share/mk/bsd.README       Sun Sep 26 15:52:40 2021 +0000
@@ -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 @@
                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 @@
                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
 
diff -r b40a8a2d15d9 -r ed01317c0d10 share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk       Sun Sep 26 15:48:54 2021 +0000
+++ b/share/mk/bsd.own.mk       Sun Sep 26 15:52:40 2021 +0000
@@ -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.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 @@
        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 \
diff -r b40a8a2d15d9 -r ed01317c0d10 sys/dev/microcode/radeon/Makefile
--- a/sys/dev/microcode/radeon/Makefile Sun Sep 26 15:48:54 2021 +0000
+++ b/sys/dev/microcode/radeon/Makefile Sun Sep 26 15:52:40 2021 +0000
@@ -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 \
diff -r b40a8a2d15d9 -r ed01317c0d10 usr.sbin/sysinst/Makefile.inc
--- a/usr.sbin/sysinst/Makefile.inc     Sun Sep 26 15:48:54 2021 +0000
+++ b/usr.sbin/sysinst/Makefile.inc     Sun Sep 26 15:52:40 2021 +0000
@@ -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+=     -DHAVE_DTB
 .endif
 
-.if ${MKGPUFIRMWARE:Uno} != "no"
-CPPFLAGS+=     -DHAVE_GPUFW
-.endif
-
 .if ${MKKMOD:Uno} != "no"
 CPPFLAGS+=     -DHAVE_MODULES
 .endif
diff -r b40a8a2d15d9 -r ed01317c0d10 usr.sbin/sysinst/defs.h
--- a/usr.sbin/sysinst/defs.h   Sun Sep 26 15:48:54 2021 +0000
+++ b/usr.sbin/sysinst/defs.h   Sun Sep 26 15:52:40 2021 +0000
@@ -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 @@
 #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, \
diff -r b40a8a2d15d9 -r ed01317c0d10 usr.sbin/sysinst/util.c
--- a/usr.sbin/sysinst/util.c   Sun Sep 26 15:48:54 2021 +0000
+++ b/usr.sbin/sysinst/util.c   Sun Sep 26 15:52:40 2021 +0000
@@ -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 @@
        {"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},



Home | Main Index | Thread Index | Old Index