mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-11-08 18:38:33 +00:00
* RaspberryPi: Update kernel 5.15.61 - 1.20220830 * Add Yellow to the Raspberry Pi kernel update script * Bump Yellow to kernel 5.15.61 - 1.20220830 Also drop the work around for the LED polarity as the new firmware has been fixed. * Explicitly select no kernel module compression Home Assistant OS uses a compressed rootfs already, no compression for kernel modules necessary. * Bump buildroot * buildroot d7e4c223e5...5468d36a26 (1): > package/rpi-firmware: bump version to 1.20220830
20 lines
665 B
Bash
Executable File
20 lines
665 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
if [ -z "$1" ]; then
|
|
echo "Need a commit ID!"
|
|
exit 1
|
|
fi
|
|
|
|
if [ -z "$2" ]; then
|
|
echo "Need a kernel version!"
|
|
exit 1
|
|
fi
|
|
|
|
defconfigs=(buildroot-external/configs/{rpi*,yellow}_defconfig)
|
|
sed -i "s|BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION=\"https://github.com/raspberrypi/linux/.*\"|BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION=\"https://github.com/raspberrypi/linux/archive/$1.tar.gz\"|g" "${defconfigs[@]}"
|
|
sed -i "s/| \(Raspberry Pi.*\|Home Assistant Yellow\) | .* |/| \1 | $2 |/g" Documentation/kernel.md
|
|
git commit -m "RaspberryPi: Update kernel $2 - $1" "${defconfigs[@]}" Documentation/kernel.md
|
|
|
|
./scripts/check-kernel-patches.sh
|