]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
UBUNTU: [Packaging] Fix missing watchdog for Raspberry Pi
authorKees Cook <kees@ubuntu.com>
Thu, 26 Apr 2018 15:51:00 +0000 (17:51 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 22 May 2018 14:18:08 +0000 (16:18 +0200)
BugLink: http://bugs.launchpad.net/bugs/1766052
The bcm2835_wdt.ko module is required for Raspberry Pi systems to actually
reboot and shutdown. It should not get automatically blacklisted. See
https://github.com/raspberrypi/linux/issues/2523

Closes LP: #1766052

Signed-off-by: Kees Cook <kees@ubuntu.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
debian/rules.d/2-binary-arch.mk

index 561c5b3eac9b3b41df27e514c2f22591c7abd4ee..aaf3d43379ed4bd90790ea7e31bd59d9349b8bca 100644 (file)
@@ -203,6 +203,7 @@ endif
        echo "# Autogenerated watchdog blacklist" \
                >>$(pkgdir)/lib/modprobe.d/blacklist_$(src_pkg_name)_$(abi_release)-$*.conf
        ls -1 $(pkgdir)/lib/modules/$(abi_release)-$*/kernel/drivers/watchdog/ | \
+               grep -v '^bcm2835_wdt$$' | \
                sed -e 's/^/blacklist /' -e 's/.ko$$//' | \
                sort -u \
                >>$(pkgdir)/lib/modprobe.d/blacklist_$(src_pkg_name)_$(abi_release)-$*.conf