1*4882a593SmuzhiyunThis is a copy of the kconfig code in the kernel (currently 4.17-rc2) tweaked 2*4882a593Smuzhiyunto suit Buildroot. 3*4882a593Smuzhiyun 4*4882a593SmuzhiyunTo update: 5*4882a593Smuzhiyun cp -r /usr/src/linux/scripts/kconfig support/kconfig.new 6*4882a593Smuzhiyun cd support/kconfig.new 7*4882a593Smuzhiyun # zconf.lex.c and zconf.tab.c needs to be generated by 'make menuconfig' 8*4882a593Smuzhiyun mv zconf.lex.c zconf.lex.c_shipped 9*4882a593Smuzhiyun mv zconf.tab.c zconf.tab.c_shipped 10*4882a593Smuzhiyun rm -rf tests/ 11*4882a593Smuzhiyun cp -a ../kconfig/patches ../kconfig/README.buildroot ../kconfig/.gitignore . 12*4882a593Smuzhiyun quilt push -a 13*4882a593Smuzhiyun # Fix any conflict 14*4882a593Smuzhiyun cd .. 15*4882a593Smuzhiyun rm -rf kconfig 16*4882a593Smuzhiyun mv kconfig.new kconfig 17*4882a593Smuzhiyun 18*4882a593SmuzhiyunThen verify the toplevel targets work: 19*4882a593Smuzhiyun config 20*4882a593Smuzhiyun defconfig 21*4882a593Smuzhiyun menuconfig 22*4882a593Smuzhiyun nconfig 23*4882a593Smuzhiyun xconfig 24*4882a593Smuzhiyun gconfig 25*4882a593Smuzhiyun oldconfig 26