-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #302 from ventureoo/nvidia-patches-refactor
Make nvidia patches skip via URL instead of filenames
- Loading branch information
Showing
11 changed files
with
143 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# Maintainer: Peter Jung ptr1337 <[email protected]> && Piotr Gorski <[email protected]> | ||
# Maintainer: Peter Jung ptr1337 <[email protected]> | ||
# Maintainer: Piotr Gorski <[email protected]> | ||
# Maintainer: Vasiliy Stelmachenok <[email protected]> | ||
# Contributor: Jan Alexander Steffens (heftig) <[email protected]> | ||
# Contributor: Tobias Powalowski <[email protected]> | ||
# Contributor: Thomas Baechler <[email protected]> | ||
|
@@ -269,13 +271,10 @@ prepare() { | |
local src | ||
for src in "${source[@]}"; do | ||
src="${src%%::*}" | ||
# Skip nvidia patches | ||
[[ "$src" == "${_patchsource}"/misc/nvidia/*.patch ]] && continue | ||
src="${src##*/}" | ||
src="${src%.zst}" | ||
[[ $src = 0001-Make-modeset-and-fbdev-default-enabled.patch ]] && continue | ||
[[ $src = 0002-Do-not-error-on-unkown-CPU-Type-and-add-Zen5-support.patch ]] && continue | ||
[[ $src = 0003-Add-IBT-Support.patch ]] && continue | ||
[[ $src = 0004-6.11-Add-fix-for-fbdev.patch ]] && continue | ||
[[ $src = 0005-6.12-drm_outpull_pill-changed-check.patch ]] && continue | ||
[[ $src = *.patch ]] || continue | ||
echo "Applying patch $src..." | ||
patch -Np1 < "../$src" | ||
|
@@ -542,29 +541,22 @@ build() { | |
make "${BUILD_FLAGS[@]}" -j"$(nproc)" all | ||
make -C tools/bpf/bpftool vmlinux.h feature-clang-bpf-co-re=1 | ||
|
||
local MODULE_FLAGS=( | ||
KERNEL_UNAME="${_kernuname}" | ||
IGNORE_PREEMPT_RT_PRESENCE=1 | ||
SYSSRC="${srcdir}/${_srcname}" | ||
SYSOUT="${srcdir}/${_srcname}" | ||
) | ||
if [ -n "$_build_nvidia" ]; then | ||
local MODULE_FLAGS=( | ||
KERNEL_UNAME="${_kernuname}" | ||
IGNORE_PREEMPT_RT_PRESENCE=1 | ||
NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' | ||
SYSSRC="${srcdir}/${_srcname}" | ||
SYSOUT="${srcdir}/${_srcname}" | ||
) | ||
|
||
MODULE_FLAGS+=(NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES') | ||
cd "${srcdir}/${_nv_pkg}/kernel" | ||
make "${BUILD_FLAGS[@]}" "${MODULE_FLAGS[@]}" -j"$(nproc)" modules | ||
|
||
fi | ||
|
||
if [ -n "$_build_nvidia_open" ]; then | ||
cd "${srcdir}/${_nv_open_pkg}" | ||
local MODULE_FLAGS=( | ||
KERNEL_UNAME="${_kernuname}" | ||
IGNORE_PREEMPT_RT_PRESENCE=1 | ||
IGNORE_CC_MISMATCH=yes | ||
SYSSRC="${srcdir}/${_srcname}" | ||
SYSOUT="${srcdir}/${_srcname}" | ||
) | ||
MODULE_FLAGS+=(IGNORE_CC_MISMATCH=yes) | ||
CFLAGS= CXXFLAGS= LDFLAGS= make "${BUILD_FLAGS[@]}" "${MODULE_FLAGS[@]}" -j"$(nproc)" modules | ||
fi | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# Maintainer: Peter Jung ptr1337 <[email protected]> && Piotr Gorski <[email protected]> | ||
# Maintainer: Peter Jung ptr1337 <[email protected]> | ||
# Maintainer: Piotr Gorski <[email protected]> | ||
# Maintainer: Vasiliy Stelmachenok <[email protected]> | ||
# Contributor: Jan Alexander Steffens (heftig) <[email protected]> | ||
# Contributor: Tobias Powalowski <[email protected]> | ||
# Contributor: Thomas Baechler <[email protected]> | ||
|
@@ -270,13 +272,10 @@ prepare() { | |
local src | ||
for src in "${source[@]}"; do | ||
src="${src%%::*}" | ||
# Skip nvidia patches | ||
[[ "$src" == "${_patchsource}"/misc/nvidia/*.patch ]] && continue | ||
src="${src##*/}" | ||
src="${src%.zst}" | ||
[[ $src = 0001-Make-modeset-and-fbdev-default-enabled.patch ]] && continue | ||
[[ $src = 0002-Do-not-error-on-unkown-CPU-Type-and-add-Zen5-support.patch ]] && continue | ||
[[ $src = 0003-Add-IBT-Support.patch ]] && continue | ||
[[ $src = 0004-6.11-Add-fix-for-fbdev.patch ]] && continue | ||
[[ $src = 0005-6.12-drm_outpull_pill-changed-check.patch ]] && continue | ||
[[ $src = *.patch ]] || continue | ||
echo "Applying patch $src..." | ||
patch -Np1 < "../$src" | ||
|
@@ -543,29 +542,22 @@ build() { | |
make "${BUILD_FLAGS[@]}" -j"$(nproc)" all | ||
make -C tools/bpf/bpftool vmlinux.h feature-clang-bpf-co-re=1 | ||
|
||
local MODULE_FLAGS=( | ||
KERNEL_UNAME="${_kernuname}" | ||
IGNORE_PREEMPT_RT_PRESENCE=1 | ||
SYSSRC="${srcdir}/${_srcname}" | ||
SYSOUT="${srcdir}/${_srcname}" | ||
) | ||
if [ -n "$_build_nvidia" ]; then | ||
local MODULE_FLAGS=( | ||
KERNEL_UNAME="${_kernuname}" | ||
IGNORE_PREEMPT_RT_PRESENCE=1 | ||
NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' | ||
SYSSRC="${srcdir}/${_srcname}" | ||
SYSOUT="${srcdir}/${_srcname}" | ||
) | ||
|
||
MODULE_FLAGS+=(NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES') | ||
cd "${srcdir}/${_nv_pkg}/kernel" | ||
make "${BUILD_FLAGS[@]}" "${MODULE_FLAGS[@]}" -j"$(nproc)" modules | ||
|
||
fi | ||
|
||
if [ -n "$_build_nvidia_open" ]; then | ||
cd "${srcdir}/${_nv_open_pkg}" | ||
local MODULE_FLAGS=( | ||
KERNEL_UNAME="${_kernuname}" | ||
IGNORE_PREEMPT_RT_PRESENCE=1 | ||
IGNORE_CC_MISMATCH=yes | ||
SYSSRC="${srcdir}/${_srcname}" | ||
SYSOUT="${srcdir}/${_srcname}" | ||
) | ||
MODULE_FLAGS+=(IGNORE_CC_MISMATCH=yes) | ||
CFLAGS= CXXFLAGS= LDFLAGS= make "${BUILD_FLAGS[@]}" "${MODULE_FLAGS[@]}" -j"$(nproc)" modules | ||
fi | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# Maintainer: Peter Jung ptr1337 <[email protected]> && Piotr Gorski <[email protected]> | ||
# Maintainer: Peter Jung ptr1337 <[email protected]> | ||
# Maintainer: Piotr Gorski <[email protected]> | ||
# Maintainer: Vasiliy Stelmachenok <[email protected]> | ||
# Contributor: Jan Alexander Steffens (heftig) <[email protected]> | ||
# Contributor: Tobias Powalowski <[email protected]> | ||
# Contributor: Thomas Baechler <[email protected]> | ||
|
@@ -274,13 +276,10 @@ prepare() { | |
local src | ||
for src in "${source[@]}"; do | ||
src="${src%%::*}" | ||
# Skip nvidia patches | ||
[[ "$src" == "${_patchsource}"/misc/nvidia/*.patch ]] && continue | ||
src="${src##*/}" | ||
src="${src%.zst}" | ||
[[ $src = 0001-Make-modeset-and-fbdev-default-enabled.patch ]] && continue | ||
[[ $src = 0002-Do-not-error-on-unkown-CPU-Type-and-add-Zen5-support.patch ]] && continue | ||
[[ $src = 0003-Add-IBT-Support.patch ]] && continue | ||
[[ $src = 0004-6.11-Add-fix-for-fbdev.patch ]] && continue | ||
[[ $src = 0005-6.12-drm_outpull_pill-changed-check.patch ]] && continue | ||
[[ $src = *.patch ]] || continue | ||
echo "Applying patch $src..." | ||
patch -Np1 < "../$src" | ||
|
@@ -547,29 +546,22 @@ build() { | |
make "${BUILD_FLAGS[@]}" -j"$(nproc)" all | ||
make -C tools/bpf/bpftool vmlinux.h feature-clang-bpf-co-re=1 | ||
|
||
local MODULE_FLAGS=( | ||
KERNEL_UNAME="${_kernuname}" | ||
IGNORE_PREEMPT_RT_PRESENCE=1 | ||
SYSSRC="${srcdir}/${_srcname}" | ||
SYSOUT="${srcdir}/${_srcname}" | ||
) | ||
if [ -n "$_build_nvidia" ]; then | ||
local MODULE_FLAGS=( | ||
KERNEL_UNAME="${_kernuname}" | ||
IGNORE_PREEMPT_RT_PRESENCE=1 | ||
NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' | ||
SYSSRC="${srcdir}/${_srcname}" | ||
SYSOUT="${srcdir}/${_srcname}" | ||
) | ||
|
||
MODULE_FLAGS+=(NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES') | ||
cd "${srcdir}/${_nv_pkg}/kernel" | ||
make "${BUILD_FLAGS[@]}" "${MODULE_FLAGS[@]}" -j"$(nproc)" modules | ||
|
||
fi | ||
|
||
if [ -n "$_build_nvidia_open" ]; then | ||
cd "${srcdir}/${_nv_open_pkg}" | ||
local MODULE_FLAGS=( | ||
KERNEL_UNAME="${_kernuname}" | ||
IGNORE_PREEMPT_RT_PRESENCE=1 | ||
IGNORE_CC_MISMATCH=yes | ||
SYSSRC="${srcdir}/${_srcname}" | ||
SYSOUT="${srcdir}/${_srcname}" | ||
) | ||
MODULE_FLAGS+=(IGNORE_CC_MISMATCH=yes) | ||
CFLAGS= CXXFLAGS= LDFLAGS= make "${BUILD_FLAGS[@]}" "${MODULE_FLAGS[@]}" -j"$(nproc)" modules | ||
fi | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# Maintainer: Peter Jung ptr1337 <[email protected]> && Piotr Gorski <[email protected]> | ||
# Maintainer: Peter Jung ptr1337 <[email protected]> | ||
# Maintainer: Piotr Gorski <[email protected]> | ||
# Maintainer: Vasiliy Stelmachenok <[email protected]> | ||
# Contributor: Jan Alexander Steffens (heftig) <[email protected]> | ||
# Contributor: Tobias Powalowski <[email protected]> | ||
# Contributor: Thomas Baechler <[email protected]> | ||
|
@@ -270,13 +272,10 @@ prepare() { | |
local src | ||
for src in "${source[@]}"; do | ||
src="${src%%::*}" | ||
# Skip nvidia patches | ||
[[ "$src" == "${_patchsource}"/misc/nvidia/*.patch ]] && continue | ||
src="${src##*/}" | ||
src="${src%.zst}" | ||
[[ $src = 0001-Make-modeset-and-fbdev-default-enabled.patch ]] && continue | ||
[[ $src = 0002-Do-not-error-on-unkown-CPU-Type-and-add-Zen5-support.patch ]] && continue | ||
[[ $src = 0003-Add-IBT-Support.patch ]] && continue | ||
[[ $src = 0004-6.11-Add-fix-for-fbdev.patch ]] && continue | ||
[[ $src = 0005-6.12-drm_outpull_pill-changed-check.patch ]] && continue | ||
[[ $src = *.patch ]] || continue | ||
echo "Applying patch $src..." | ||
patch -Np1 < "../$src" | ||
|
@@ -543,29 +542,22 @@ build() { | |
make "${BUILD_FLAGS[@]}" -j"$(nproc)" all | ||
make -C tools/bpf/bpftool vmlinux.h feature-clang-bpf-co-re=1 | ||
|
||
local MODULE_FLAGS=( | ||
KERNEL_UNAME="${_kernuname}" | ||
IGNORE_PREEMPT_RT_PRESENCE=1 | ||
SYSSRC="${srcdir}/${_srcname}" | ||
SYSOUT="${srcdir}/${_srcname}" | ||
) | ||
if [ -n "$_build_nvidia" ]; then | ||
local MODULE_FLAGS=( | ||
KERNEL_UNAME="${_kernuname}" | ||
IGNORE_PREEMPT_RT_PRESENCE=1 | ||
NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' | ||
SYSSRC="${srcdir}/${_srcname}" | ||
SYSOUT="${srcdir}/${_srcname}" | ||
) | ||
|
||
MODULE_FLAGS+=(NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES') | ||
cd "${srcdir}/${_nv_pkg}/kernel" | ||
make "${BUILD_FLAGS[@]}" "${MODULE_FLAGS[@]}" -j"$(nproc)" modules | ||
|
||
fi | ||
|
||
if [ -n "$_build_nvidia_open" ]; then | ||
cd "${srcdir}/${_nv_open_pkg}" | ||
local MODULE_FLAGS=( | ||
KERNEL_UNAME="${_kernuname}" | ||
IGNORE_PREEMPT_RT_PRESENCE=1 | ||
IGNORE_CC_MISMATCH=yes | ||
SYSSRC="${srcdir}/${_srcname}" | ||
SYSOUT="${srcdir}/${_srcname}" | ||
) | ||
MODULE_FLAGS+=(IGNORE_CC_MISMATCH=yes) | ||
CFLAGS= CXXFLAGS= LDFLAGS= make "${BUILD_FLAGS[@]}" "${MODULE_FLAGS[@]}" -j"$(nproc)" modules | ||
fi | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# Maintainer: Peter Jung ptr1337 <[email protected]> && Piotr Gorski <[email protected]> | ||
# Maintainer: Peter Jung ptr1337 <[email protected]> | ||
# Maintainer: Piotr Gorski <[email protected]> | ||
# Maintainer: Vasiliy Stelmachenok <[email protected]> | ||
# Contributor: Jan Alexander Steffens (heftig) <[email protected]> | ||
# Contributor: Tobias Powalowski <[email protected]> | ||
# Contributor: Thomas Baechler <[email protected]> | ||
|
@@ -268,13 +270,10 @@ prepare() { | |
local src | ||
for src in "${source[@]}"; do | ||
src="${src%%::*}" | ||
# Skip nvidia patches | ||
[[ "$src" == "${_patchsource}"/misc/nvidia/*.patch ]] && continue | ||
src="${src##*/}" | ||
src="${src%.zst}" | ||
[[ $src = 0001-Make-modeset-and-fbdev-default-enabled.patch ]] && continue | ||
[[ $src = 0002-Do-not-error-on-unkown-CPU-Type-and-add-Zen5-support.patch ]] && continue | ||
[[ $src = 0003-Add-IBT-Support.patch ]] && continue | ||
[[ $src = 0004-6.11-Add-fix-for-fbdev.patch ]] && continue | ||
[[ $src = 0005-6.12-drm_outpull_pill-changed-check.patch ]] && continue | ||
[[ $src = *.patch ]] || continue | ||
echo "Applying patch $src..." | ||
patch -Np1 < "../$src" | ||
|
@@ -541,29 +540,22 @@ build() { | |
cd ${srcdir}/${_srcname} | ||
make ${BUILD_FLAGS[*]} -j$(nproc) all | ||
|
||
local MODULE_FLAGS=( | ||
KERNEL_UNAME="${_kernuname}" | ||
IGNORE_PREEMPT_RT_PRESENCE=1 | ||
SYSSRC="${srcdir}/${_srcname}" | ||
SYSOUT="${srcdir}/${_srcname}" | ||
) | ||
if [ -n "$_build_nvidia" ]; then | ||
local MODULE_FLAGS=( | ||
KERNEL_UNAME="${_kernuname}" | ||
IGNORE_PREEMPT_RT_PRESENCE=1 | ||
NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' | ||
SYSSRC="${srcdir}/${_srcname}" | ||
SYSOUT="${srcdir}/${_srcname}" | ||
) | ||
|
||
MODULE_FLAGS+=(NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES') | ||
cd "${srcdir}/${_nv_pkg}/kernel" | ||
make "${BUILD_FLAGS[@]}" "${MODULE_FLAGS[@]}" -j"$(nproc)" modules | ||
|
||
fi | ||
|
||
if [ -n "$_build_nvidia_open" ]; then | ||
cd "${srcdir}/${_nv_open_pkg}" | ||
local MODULE_FLAGS=( | ||
KERNEL_UNAME="${_kernuname}" | ||
IGNORE_PREEMPT_RT_PRESENCE=1 | ||
IGNORE_CC_MISMATCH=yes | ||
SYSSRC="${srcdir}/${_srcname}" | ||
SYSOUT="${srcdir}/${_srcname}" | ||
) | ||
MODULE_FLAGS+=(IGNORE_CC_MISMATCH=yes) | ||
CFLAGS= CXXFLAGS= LDFLAGS= make "${BUILD_FLAGS[@]}" "${MODULE_FLAGS[@]}" -j"$(nproc)" modules | ||
fi | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# Maintainer: Peter Jung ptr1337 <[email protected]> && Piotr Gorski <[email protected]> | ||
# Maintainer: Peter Jung ptr1337 <[email protected]> | ||
# Maintainer: Piotr Gorski <[email protected]> | ||
# Maintainer: Vasiliy Stelmachenok <[email protected]> | ||
# Contributor: Jan Alexander Steffens (heftig) <[email protected]> | ||
# Contributor: Tobias Powalowski <[email protected]> | ||
# Contributor: Thomas Baechler <[email protected]> | ||
|
@@ -295,13 +297,10 @@ prepare() { | |
local src | ||
for src in "${source[@]}"; do | ||
src="${src%%::*}" | ||
# Skip nvidia patches | ||
[[ "$src" == "${_patchsource}"/misc/nvidia/*.patch ]] && continue | ||
src="${src##*/}" | ||
src="${src%.zst}" | ||
[[ $src = 0001-Make-modeset-and-fbdev-default-enabled.patch ]] && continue | ||
[[ $src = 0002-Do-not-error-on-unkown-CPU-Type-and-add-Zen5-support.patch ]] && continue | ||
[[ $src = 0003-Add-IBT-Support.patch ]] && continue | ||
[[ $src = 0004-6.11-Add-fix-for-fbdev.patch ]] && continue | ||
[[ $src = 0005-6.12-drm_outpull_pill-changed-check.patch ]] && continue | ||
[[ $src = *.patch ]] || continue | ||
echo "Applying patch $src..." | ||
patch -Np1 < "../$src" | ||
|
@@ -625,29 +624,22 @@ build() { | |
make "${BUILD_FLAGS[@]}" -j"$(nproc)" all | ||
make -C tools/bpf/bpftool vmlinux.h feature-clang-bpf-co-re=1 | ||
|
||
local MODULE_FLAGS=( | ||
KERNEL_UNAME="${_kernuname}" | ||
IGNORE_PREEMPT_RT_PRESENCE=1 | ||
SYSSRC="${srcdir}/${_srcname}" | ||
SYSOUT="${srcdir}/${_srcname}" | ||
) | ||
if [ -n "$_build_nvidia" ]; then | ||
local MODULE_FLAGS=( | ||
KERNEL_UNAME="${_kernuname}" | ||
IGNORE_PREEMPT_RT_PRESENCE=1 | ||
NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' | ||
SYSSRC="${srcdir}/${_srcname}" | ||
SYSOUT="${srcdir}/${_srcname}" | ||
) | ||
|
||
MODULE_FLAGS+=(NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES') | ||
cd "${srcdir}/${_nv_pkg}/kernel" | ||
make "${BUILD_FLAGS[@]}" "${MODULE_FLAGS[@]}" -j"$(nproc)" modules | ||
|
||
fi | ||
|
||
if [ -n "$_build_nvidia_open" ]; then | ||
cd "${srcdir}/${_nv_open_pkg}" | ||
local MODULE_FLAGS=( | ||
KERNEL_UNAME="${_kernuname}" | ||
IGNORE_PREEMPT_RT_PRESENCE=1 | ||
IGNORE_CC_MISMATCH=yes | ||
SYSSRC="${srcdir}/${_srcname}" | ||
SYSOUT="${srcdir}/${_srcname}" | ||
) | ||
MODULE_FLAGS+=(IGNORE_CC_MISMATCH=yes) | ||
CFLAGS= CXXFLAGS= LDFLAGS= make "${BUILD_FLAGS[@]}" "${MODULE_FLAGS[@]}" -j"$(nproc)" modules | ||
fi | ||
|
||
|
Oops, something went wrong.