24 lines
701 B
Bash
24 lines
701 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Re-express the upstream "80-rhel -> 70-64k" delta (install kernel-64k on
|
|
# aarch64) as a patch that applies on top of the AlmaLinux 64k template
|
|
# directory (60-almalinux-64k, which in %prep is a branded copy of
|
|
# 70-almalinux).
|
|
#
|
|
# This mirrors generate-patch-for-v2.sh: the patch is generated at autopatch
|
|
# time from the directories shipped in the source tree, so it always tracks
|
|
# the current upstream delta instead of being a hand-maintained snapshot.
|
|
|
|
TEMPLATE_DIR=60-almalinux-64k
|
|
|
|
mkdir -p a b
|
|
|
|
cp -r 80-rhel a/${TEMPLATE_DIR}
|
|
cp -r 70-64k b/${TEMPLATE_DIR}
|
|
|
|
diff -aruN a/${TEMPLATE_DIR} b/${TEMPLATE_DIR} > Add-almalinux-64k-support.patch || [ $? -eq 1 ]
|
|
|
|
rm -rf a b
|