From 31093f0b7524d748650379c95bfad9dcaecd8b51 Mon Sep 17 00:00:00 2001 From: Daniel Zatovic Date: Tue, 18 Feb 2025 12:22:05 +0100 Subject: [PATCH] overlay profiles: configure nvidia-drivers package Accept the NVIDIA-r2 license and don't build the NVIDIA tools. --- .../coreos-overlay/profiles/coreos/base/make.defaults | 3 ++- .../coreos-overlay/profiles/coreos/base/package.use.mask | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/make.defaults b/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/make.defaults index 3dfd7f2607..41fc9347c2 100644 --- a/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/make.defaults +++ b/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/make.defaults @@ -57,8 +57,9 @@ USE="${USE} bindist" # linux-fw-redistributable - license for sys-kernel/coreos-firmware # freedist - license for sys-kernel/coreos-kernel # intel-ucode - license for sys-firmware/intel-microcode +# NVIDIA-r2 - license for x11-drivers/nvidia-drivers ACCEPT_LICENSE="${ACCEPT_LICENSE} no-source-code - linux-fw-redistributable freedist intel-ucode" + linux-fw-redistributable freedist intel-ucode NVIDIA-r2" # Favor our own mirrors over Gentoo's GENTOO_MIRRORS=" diff --git a/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/package.use.mask b/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/package.use.mask index 96f8b16618..cdff1648f2 100644 --- a/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/package.use.mask +++ b/sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/package.use.mask @@ -31,3 +31,6 @@ dev-python/pillow jpeg # or not. We don't have gtk on Flatcar, so it is not an issue here, # but we need to mask X, so we won't try pulling gtk package. app-emulation/qemu X + +# disable all tools for NVIDIA driver, keep just kmods +x11-drivers/nvidia-drivers tools X static-libs