[Toybox] kconfig replacement

Rob Landley rob at landley.net
Tue Feb 21 18:09:03 PST 2012


On 02/19/2012 05:14 AM, Kai Trukenmueller wrote:
> Attached is an new version of scripts/mkconfig.awk and the makefile
> rules mkconfig.make which could be included in the toplevel makefile.
> 
> This version produces compatible output with the current kconfig
> implementation for the .config file.
> It supports:
> make config
> make defconfig
> make allyesconfig
> make allnoconfig
> make oldconfig

landley at brillig:~/toybox/toybox$ make defconfig
yes "" | awk -f scripts/mkconfig.awk Config.in generated/Config.in
>/dev/null
awk: scripts/mkconfig.awk:36: 			if (default == "y")
awk: scripts/mkconfig.awk:36: 			    ^ syntax error
awk: scripts/mkconfig.awk:38: 			else
awk: scripts/mkconfig.awk:38: 			^ syntax error
awk: scripts/mkconfig.awk:46: 		if (default == "y")
awk: scripts/mkconfig.awk:46: 		    ^ syntax error
awk: scripts/mkconfig.awk:48: 		else if (default == "n")
awk: scripts/mkconfig.awk:48: 		^ syntax error
awk: scripts/mkconfig.awk:50: 		else {
awk: scripts/mkconfig.awk:50: 		^ syntax error
awk: scripts/mkconfig.awk:51: 			print "mkconfig.awk: wrong default: "
default
awk: scripts/mkconfig.awk:51: 			                                      ^
syntax error
awk: scripts/mkconfig.awk:68: 			if (default == "y")
awk: scripts/mkconfig.awk:68: 			    ^ syntax error
awk: scripts/mkconfig.awk:70: 			else if (default == "n")
awk: scripts/mkconfig.awk:70: 			^ syntax error
awk: scripts/mkconfig.awk:97: 	default = ""
awk: scripts/mkconfig.awk:97: 	^ syntax error
awk: scripts/mkconfig.awk:117: 	default = $0
awk: scripts/mkconfig.awk:117: 	^ syntax error
make: *** [defconfig] Error 1

Rob

 1329876543.0


More information about the Toybox mailing list