[uClinux-dev] [patch] restore gui config support

Greg Ungerer gerg at snapgear.com
Sun Feb 3 19:39:28 EST 2008


Hi Mike,

Mike Frysinger wrote:
> blah, previous patch was half baked ... it would use menuconfig for submenus
> even when using gconfig/qconfig ...
> ---
> While I personally don't use this, we have some users who like it, so i've
> forward/back/something-ported support for {g,q,x}config targets to the new
> Kconfig system.  In the process, I unified all the config targets to make
> adding new ones in the future trivial.
> 
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>

Is there more to this, like chanegs to config/scripts/Makefile?

Doing a "make xconfig":

CC=cc make -C /home/gerg/foo.2624/config/kconfig conf
make[1]: Entering directory `/home/gerg/foo.2624/config/kconfig'
cc -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"   -c -o conf.o conf.c
cc -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"   -c -o zconf.tab.o 
zconf.tab.c
cc   conf.o zconf.tab.o  -lncursesw -o conf
make[1]: Leaving directory `/home/gerg/foo.2624/config/kconfig'
/home/gerg/foo.2624/config/kconfig/gconf Kconfig
make: /home/gerg/foo.2624/config/kconfig/gconf: Command not found
make: *** [xconfig] Error 127

Regards
Greg



> diff --git a/Makefile b/Makefile
> index 0450b7b..a353841 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -109,25 +109,17 @@ Kconfig:
>  
>  include config/Makefile.conf
>  
> -.PHONY: config
> -config: Kconfig conf
> -	$(SCRIPTSDIR)/conf Kconfig
> -	@chmod u+x config/setconfig
> -	@config/setconfig defaults
> -	@if egrep "^CONFIG_DEFAULTS_KERNEL=y" .config > /dev/null; then \
> -		$(MAKE) linux_config; \
> -	 fi
> -	@if egrep "^CONFIG_DEFAULTS_MODULES=y" .config > /dev/null; then \
> -		$(MAKE) modules_config; \
> -	 fi
> -	@if egrep "^CONFIG_DEFAULTS_VENDOR=y" .config > /dev/null; then \
> -		$(MAKE) config_config; \
> -	 fi
> -	@config/setconfig final
> -
> -.PHONY: menuconfig
> -menuconfig: Kconfig conf mconf
> -	$(SCRIPTSDIR)/mconf Kconfig
> +SCRIPTS_BINARY_config     = conf
> +SCRIPTS_BINARY_menuconfig = mconf
> +SCRIPTS_BINARY_qconfig    = qconf
> +SCRIPTS_BINARY_gconfig    = gconf
> +SCRIPTS_BINARY_xconfig    = gconf
> +.PHONY: config menuconfig qconfig gconfig xconfig
> +menuconfig: mconf
> +qconfig: qconf
> +gconfig: gconf
> +config menuconfig qconfig gconfig xconfig: Kconfig conf
> +	$(SCRIPTSDIR)/$(SCRIPTS_BINARY_$@) Kconfig
>  	@if [ ! -f .config ]; then \
>  		echo; \
>  		echo "You have not saved your config, please re-run make config"; \
> @@ -137,13 +129,13 @@ menuconfig: Kconfig conf mconf
>  	@chmod u+x config/setconfig
>  	@config/setconfig defaults
>  	@if egrep "^CONFIG_DEFAULTS_KERNEL=y" .config > /dev/null; then \
> -		$(MAKE) linux_menuconfig; \
> +		$(MAKE) linux_$@; \
>  	 fi
>  	@if egrep "^CONFIG_DEFAULTS_MODULES=y" .config > /dev/null; then \
> -		$(MAKE) modules_menuconfig; \
> +		$(MAKE) modules_$@; \
>  	 fi
>  	@if egrep "^CONFIG_DEFAULTS_VENDOR=y" .config > /dev/null; then \
> -		$(MAKE) config_menuconfig; \
> +		$(MAKE) config_$@; \
>  	 fi
>  	@config/setconfig final
>  
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
> 

-- 
------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     gerg at snapgear.com
Secure Computing Corporation                PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com


More information about the uClinux-dev mailing list