Guest User

Untitled

a guest
Jul 23rd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. print_usage () {
  4. echo usage: $0 config_file kernel_path
  5. exit 1
  6. }
  7.  
  8. if [ $# -ne 2 ]
  9. then
  10. print_usage
  11. fi
  12.  
  13. confpath=`realpath $1`
  14.  
  15. cd $2
  16.  
  17. kconfiglist=`find . -name "*Kconfig*"`
  18.  
  19. for entry in `grep '^[^#]' $confpath | sed 's/=\S*//' | sed 's/CONFIG_//'`
  20. do
  21. grep -I -q -r $entry $kconfiglist
  22. if [ $? -eq 1 ];
  23. then
  24. echo $entry
  25. fi
  26. done
Add Comment
Please, Sign In to add comment