⇤ ← Revision 1 as of 2007-05-14 21:19:58
253
Comment:
|
636
|
Deletions are marked like this. | Additions are marked like this. |
Line 12: | Line 12: |
some scripts for configuring a kernel: To translate a module name (as listed in modprobe -l or modinfo -n ''module'') into a kernel .config option: {{{ #!/bin/bash mod="${1%.ko}"; dir="${1%/*}"; sed -e :a -e '/\\$/N; s/\\\n//; ta' "${dir#*/kernel/}/Makefile" | \ sed -n "s/^obj-\$(CONFIG_\([A-Z0-9_]*\))\W*+=\W*"${mod##*/}"\.o$/\1/p"; }}} |
|
Line 13: | Line 24: |
#!\bin\bash egrep -r --include "*.[chS]" "^\W*(int |void )?\W*$1\W*\(.*\)[^;]*$" . |
{{{ #!/bin/bash egrep -r --include "*.[chS]" "^\W*(int |void )?\W*$1\W*\(.*\)[^;]*$" . }}} |
Your Name
Roel Kluin
Email: MailTo(12o3l AT SPAMFREE tiscali DOT nl) ...
some scripts for configuring a kernel:
To translate a module name (as listed in modprobe -l or modinfo -n module) into a kernel .config option:
#!/bin/bash mod="${1%.ko}"; dir="${1%/*}"; sed -e :a -e '/\\$/N; s/\\\n//; ta' "${dir#*/kernel/}/Makefile" | \ sed -n "s/^obj-\$(CONFIG_\([A-Z0-9_]*\))\W*+=\W*"${mod##*/}"\.o$/\1/p";
To find a function:
#!/bin/bash egrep -r --include "*.[chS]" "^\W*(int |void )?\W*$1\W*\(.*\)[^;]*$" .