Skip to content

Instantly share code, notes, and snippets.

@neomatrixcode
Created June 27, 2021 14:57
Show Gist options
  • Save neomatrixcode/a83787b61ddece8f6e81406e0dfc7a6f to your computer and use it in GitHub Desktop.
Save neomatrixcode/a83787b61ddece8f6e81406e0dfc7a6f to your computer and use it in GitHub Desktop.
#!/bin/bash
## SPDX-License-Identifier: GPL-2.0
# Copyright(c) Shuah Khan <skhan@linuxfoundation.org>
#
# License: GPLv2
# Example usage: stable_rc_checkout.sh <stable-rc e.g 5.2>
mkdir -p stable_rc
cd stable_rc
git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-$1.y
cd linux-$1.y
#cp /boot/<currentconfig> .config # update script
make -j2 all
rc=$?; if [[ $rc !=0 ]]; then exit $rc; fi
su -c "make modules_install install"
echo Ready for reboot test of Linux-$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment