diff options
author | Justin M. Forbes <jforbes@fedoraproject.org> | 2021-03-17 12:38:46 -0500 |
---|---|---|
committer | Justin M. Forbes <jforbes@fedoraproject.org> | 2021-03-17 12:38:46 -0500 |
commit | 2d7cbaa6f9fa69d3f60984b67c2d03e57e6d9759 (patch) | |
tree | a1d03aed06bd868aef5d39f73d2bd5b64941612a /scripts/stable-update.sh | |
parent | 8cb9b8957f6c41855069d943280362fbf45cdbf1 (diff) | |
download | kernel-2d7cbaa6f9fa69d3f60984b67c2d03e57e6d9759.tar.gz kernel-2d7cbaa6f9fa69d3f60984b67c2d03e57e6d9759.tar.xz kernel-2d7cbaa6f9fa69d3f60984b67c2d03e57e6d9759.zip |
kernel-5.11.7-9
* Wed Mar 17 2021 Justin M. Forbes <jforbes@fedoraproject.org> [5.11.7-9]
- Disable weak-modules again rhbz 1828455 (Justin M. Forbes)
- More config updates for gcc-plugin turn off (Justin M. Forbes)
- fedora: the PCH_CAN driver is x86-32 only (Peter Robinson)
- common: disable legacy CAN device support (Peter Robinson)
- common: Enable Microchip MCP251x/MCP251xFD CAN controllers (Peter Robinson)
- common: Bosch MCAN support for Intel Elkhart Lake (Peter Robinson)
- common: enable CAN_PEAK_PCIEFD PCI-E driver (Peter Robinson)
- common: disable CAN_PEAK_PCIEC PCAN-ExpressCard (Peter Robinson)
- common: enable common CAN layer 2 protocols (Peter Robinson)
- ark: disable CAN_LEDS option (Peter Robinson)
Resolves: rhbz#
Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
Diffstat (limited to 'scripts/stable-update.sh')
-rwxr-xr-x | scripts/stable-update.sh | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/scripts/stable-update.sh b/scripts/stable-update.sh deleted file mode 100755 index 259a338c1..000000000 --- a/scripts/stable-update.sh +++ /dev/null @@ -1,84 +0,0 @@ -#!/bin/sh -# -# Author: Laura Abbott <labbott@fedoraproject.org> -# -# Apply a stable patch update to the Fedora tree. This takes care of -# - Downloading the patch from kernel.org -# - Uploading the source file -# - Removing old patch files -# - Updating the spec file stable version -# - Adding a proper changelog entry -# -# Based on steps from https://fedoraproject.org/wiki/Kernel/DayToDay#Stable_kernel_update -# -# Args: Stable version to update (e.g. 4.7.7, 4.8.1) - -if [ $# -lt 1 ]; then - echo "Need a version" - exit 1 -fi - -VERSION=`echo $1 | cut -d . -f 1` -if [ -z $VERSION ]; then - echo "Malformed version $1" - exit 1 -fi -PATCHLEVEL=`echo $1 | cut -d . -f 2` -if [ -z $VERSION ]; then - echo "Malformed version $1" - exit 1 -fi -SUBLEVEL=`echo $1 | cut -d . -f 3` -if [ -z $VERSION ]; then - echo "Malformed version $1" - exit 1 -fi - -if [ ! -f patch-$1.xz ]; then - wget https://cdn.kernel.org/pub/linux/kernel/v5.x/patch-$1.xz - if [ ! $? -eq 0 ]; then - echo "Download fail" - exit 1 - fi -fi - -# This all needs to be updated for the new generation system -# -# if [ ! -f "patch-$1.sign" ]; then -# wget "https://cdn.kernel.org/pub/linux/kernel/v4.x/patch-$1.sign" -# if [ ! $? -eq 0 ]; then -# echo "Signature download failed" -# exit 1 -# fi -# fi - -# xzcat "patch-$1.xz" | gpg2 --verify "patch-$1.sign" - -# if [ ! $? -eq 0 ]; then -# echo "Patch file has invalid or untrusted signature!" -# echo "See https://www.kernel.org/category/signatures.html" -# exit 1 -# fi - -grep $1 sources &> /dev/null -if [ ! $? -eq 0 ]; then - fedpkg upload patch-$1.xz - - # Cryptic awk: search for the previous patch level (if one exists) and - # remove it from the source file - awk -v VER=$VERSION.$PATCHLEVEL.$((SUBLEVEL-1)) '$0 !~ VER { print $0; }' < sources > sources.tmp - mv sources.tmp sources -fi - -# Update the stable level -awk -v STABLE=$SUBLEVEL '/%define stable_update/ \ - { print "%define stable_update " STABLE } \ - !/%define stable_update/ { print $0 }' \ - < kernel.spec > kernel.spec.tmp -mv kernel.spec.tmp kernel.spec - -# Reset the base release for use with rpmdev-bumpspec -BASERELEASE=`cat kernel.spec | grep "%global baserelease" | cut -d ' ' -f 3 | head -c 1`00 -BASERELEASE=$(($BASERELEASE-1)) -BASERELEASE=$BASERELEASE perl -p -i -e 's|%global baserelease.*|%global baserelease $ENV{'BASERELEASE'}|' kernel.spec - -rpmdev-bumpspec -c "Linux v$1" kernel.spec |