1#!/bin/sh 2grep \^CONFIG_TARGET_ .config | head -n3 > tmp/.diffconfig.head 3grep '^CONFIG_ALL=y' .config >> tmp/.diffconfig.head 4grep '^CONFIG_ALL_KMODS=y' .config >> tmp/.diffconfig.head 5grep '^CONFIG_ALL_NONSHARED=y' .config >> tmp/.diffconfig.head 6grep '^CONFIG_DEVEL=y' .config >> tmp/.diffconfig.head 7grep '^CONFIG_TOOLCHAINOPTS=y' .config >> tmp/.diffconfig.head 8grep '^CONFIG_BUSYBOX_CUSTOM=y' .config >> tmp/.diffconfig.head 9./scripts/config/conf --defconfig=tmp/.diffconfig.head -w tmp/.diffconfig.stage1 Config.in >/dev/null 10./scripts/kconfig.pl '>+' tmp/.diffconfig.stage1 .config >> tmp/.diffconfig.head 11./scripts/config/conf --defconfig=tmp/.diffconfig.head -w tmp/.diffconfig.stage2 Config.in >/dev/null 12./scripts/kconfig.pl '>' tmp/.diffconfig.stage2 .config >> tmp/.diffconfig.head 13cat tmp/.diffconfig.head 14rm -f tmp/.diffconfig tmp/.diffconfig.head 15