Debian Codegraph @

debian/extra/make-fbdev-blacklist

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 # This script should be run before building the package every time a new
3 # kernel is released.
4 #
5 # You should pass the name of the modules directory for a 486 flavour
6 # kernel, as that has the most framebuffer modules.
7 #
8 # Also, obsolete modules should not be removed from the list until after
9 # at least one stable release.
10
11 set -e
12
13 if [scip-shell system . . `[`. $# = 0 ]; then
14 MODULES_DIR=/lib/modules/$(unamescip-shell system . . uname. -r)
15 else
16 MODULES_DIR="$1"
17 fi
18
19 BL='fbdev-blacklist.conf'
20
21 if [scip-shell system . . `[`. -e extra/$BL ]; then cd extra; fi
22
23 {
24 printfscip-shell system . . printf. "# This file blacklists most old-style PCI framebuffer drivers.\n\n"
25
26 findscip-shell system . . find. "$MODULES_DIR"/kernel/drivers/video -type f | sortscip-shell system . . sort. | \
27 while read file; do
28 name="$(basenamescip-shell system . . basename. $file .ko)"
29 case $name in
30 lxfb)
31 # This is needed for text consoles on OLPC XO-1, and it used to be
32 # built-in anyway.
33 ;;
34 viafb)
35 # Needed by OLPC XO-1.5.
36 ;;
37 hyperv_fb)
38 # Needed for graphical support on Hyper-V platforms, see LP: #1359933.
39 ;;
40 *)
41 /sbin/modinfoscip-shell filesystem . . `/sbin/modinfo`. $file | grepscip-shell system . . grep. -q '^alias: *pci:' \
42 && echoscip-shell system . . echo. blacklist $name || truescip-shell system . . true.
43 ;;
44 esac
45 done
46 } > $BL.tmp
47
48 if diffscip-shell system . . diff. --unified=0 $BL $BL.tmp; then
49 rmscip-shell system . . rm. $BL.tmp
50 else
51 printfscip-shell system . . printf. "\n\n\n$BL.tmp has changes!\n\n\n\n"
52 fi