Commit 0549334f authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Tim Gardner

UBUNTU: [Debian] generate live watchdog blacklists

BugLink: http://bugs.launchpad.net/bugs/1432837Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
parent 0064c4e8
......@@ -120,6 +120,18 @@ endif
INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=$(pkgdir)/ \
INSTALL_FW_PATH=$(pkgdir)/lib/firmware/$(abi_release)-$*
#
# Build module blacklists:
# - blacklist all watchdog drivers (LP:1432837)
#
install -d $(pkgdir)/lib/modprobe.d
echo "# Autogenerated blacklist for $(src_pkg_name) $(abi_release)-$* $(arch)" \
>$(pkgdir)/lib/modprobe.d/blacklist_$(src_pkg_name)_$(abi_release)-$*.conf
ls -1 $(pkgdir)/lib/modules/$(abi_release)-$*/kernel/drivers/watchdog/ | \
sed -e 's/^/blacklist /' -e 's/.ko$$//' | \
sort -u \
>>$(pkgdir)/lib/modprobe.d/blacklist_$(src_pkg_name)_$(abi_release)-$*.conf
ifeq ($(do_extras_package),true)
#
# Remove all modules not in the inclusion list.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment