Skip to content

Instantly share code, notes, and snippets.

@paigeadelethompson
Last active December 22, 2023 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paigeadelethompson/911a65e8dcd65e1c05e07d8a3986b4ad to your computer and use it in GitHub Desktop.
Save paigeadelethompson/911a65e8dcd65e1c05e07d8a3986b4ad to your computer and use it in GitHub Desktop.
make defconfig && mv .config config.defconfig
make allmodconfig && mv .config config.allmodconfig
cat config.defconfig | grep "=y" > .config
find lib/ crypto/ fs/ net/ drivers/ -type f -name "Kconfig" | xargs -i grep "^menuconfig " {} | grep -vP "(DEBUG|TEST)" | awk '{print "CONFIG_"$2}' | xargs -i scripts/config -e {}
cat config.allmodconfig | grep "=m" >> .config
make olddefconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment