aboutsummaryrefslogtreecommitdiffci
path: root/make-sources.sh
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
authorGravatar Saya Andy <saya.andy@posteo.com> 2026-11-05 01:08:47 +0700
committerGravatar Saya Andy <saya.andy@posteo.com> 2026-11-05 01:09:24 +0700
commit49c0b5cbd90d1c3d0ffab6e92dbc6109f236339c (patch)
treef5a0dc49804200a9329c0a703be8ec9af9ff067b /make-sources.sh
parent17d5d917a711182b6bfd9c7558f1da179f856a4c (diff)
downloadkernel-surface-49c0b5cbd90d1c3d0ffab6e92dbc6109f236339c.tar.gz
kernel-surface-49c0b5cbd90d1c3d0ffab6e92dbc6109f236339c.zip
fix: touchcover patch ported to 7.2.15fedora-45-kernel-7.2.15-patchset-1f45
Diffstat (limited to 'make-sources.sh')
-rwxr-xr-xmake-sources.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/make-sources.sh b/make-sources.sh
index 5c11ee2..53e213a 100755
--- a/make-sources.sh
+++ b/make-sources.sh
@@ -130,6 +130,26 @@ while read -r dir; do
total=$((total + count))
done < "${order_file}"
+# fixups/<patch>.sed is applied to the staged copy of that overlay patch.
+shopt -s nullglob
+for fixup in "${script_dir}"/fixups/*.sed; do
+ fixup_name=${fixup##*/}
+ target=${fixup_name%.sed}
+ staged=$(find "${staging}/patches" -type f -name "${target}" -print -quit)
+ if [[ -z ${staged} ]]; then
+ echo "ERROR: fixups/${fixup_name} matches no staged patch; delete it" >&2
+ exit 1
+ fi
+ sed -f "${fixup}" "${staged}" > "${staging}/.fixed.patch"
+ if cmp -s "${staged}" "${staging}/.fixed.patch"; then
+ echo "ERROR: fixups/${fixup_name} changed nothing (overlay patch repaired?); delete it" >&2
+ exit 1
+ fi
+ mv "${staging}/.fixed.patch" "${staged}"
+ echo " fixup applied: ${target}"
+done
+shopt -u nullglob
+
tarball="${output_dir}/kernel-surface-patches-${upstream_ver}-${patchset_ver}.tar.gz"
# COPYFILE_DISABLE stops macOS tar from adding ._ AppleDouble members, which
# would show up as bogus patch files in the spec's glob.