Analyzing CONFIG_ in the code not defined in Kconfig

Verify if a list of CONFIG_BLABLABLA is defined in the Kconfig. Just put the BLABLABLA in the configs_not_in_kconfig.txt each one in a line and then execute:

$ for i in $(cat listing_all_configs.txt); do find . -name Kconfig | xargs egrep -e "config\s$i" ; done

Listing all CONFIG_ that doesn’t exist in the Kconfig:

$ for i in $(cat listing_all_configs.txt); do find . -name Kconfig | xargs egrep -e "config\s$i" 2>&1 > /dev/null ; if [ $? -eq 0 ]; then echo "" ; else echo $i ; fi ; done > configs_not_in_kconfig.txt
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s