Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- print_usage () {
- echo usage: $0 config_file kernel_path
- exit 1
- }
- if [ $# -ne 2 ]
- then
- print_usage
- fi
- confpath=`realpath $1`
- cd $2
- kconfiglist=`find . -name "*Kconfig*"`
- for entry in `grep '^[^#]' $confpath | sed 's/=\S*//' | sed 's/CONFIG_//'`
- do
- grep -I -q -r $entry $kconfiglist
- if [ $? -eq 1 ];
- then
- echo $entry
- fi
- done
Add Comment
Please, Sign In to add comment