6 oldconfig: conf autoconf
7 $(SCRIPTSDIR)/conf -o Kconfig
10 $(SCRIPTSDIR)/conf Kconfig
12 menuconfig: mconf autoconf
13 $(SCRIPTSDIR)/mconf Kconfig
15 gconfig: gconf autoconf
16 $(SCRIPTSDIR)/gconf Kconfig
18 qconfig: qconf autoconf
19 $(SCRIPTSDIR)/qconf Kconfig
21 xconfig: gconfig autoconf
23 .PHONY: automake force autoclean
24 autoconf: ../vendors/Kconfig ../lib/Kconfig.auto ../user/Kconfig.auto automake
25 automake: ../lib/Makefile.auto ../user/Makefile.auto
29 # build the auto config Kconfig.auto files and their Makefile.auto components
30 # also include any vendor Kconfig files if they exist.
32 ../vendors/Kconfig ../lib/Kconfig.auto ../user/Kconfig.auto : force
34 ../vendors/Kconfig: Makefile
35 @echo "# autogenerated, do not EDIT" > $@; \
37 for i in $$CONFIG_VENDOR/$$CONFIG_PRODUCT/. $$CONFIG_VENDOR/.; do \
38 [ -f ../vendors/$$i/Kconfig ] || continue; \
39 echo "source ../vendors/$$i/Kconfig" >> $@; \
40 echo "autoconf: vendors/$$i/Kconfig"; \
43 ../lib/Kconfig.auto ../user/Kconfig.auto ../lib/Makefile.auto ../user/Makefile.auto : Makefile
46 T=`basename $$P | tr '[a-z]' '[A-Z]'`; \
47 echo "# autogenerated, do not EDIT" > Kconfig.auto; \
48 echo "# autogenerated, do not EDIT" > Makefile.auto; \
49 fgrep -l automake.inc */[mM]akefile 2> /dev/null | while read t; do \
51 M=`echo $$D | tr '[a-z]' '[A-Z]' | sed 's/[-+]/_/g'`; \
52 if [ -f $$D/Kconfig ]; then \
53 echo "automake: $$D (custom Kconfig)"; \
54 echo "source $$P/$$D/Kconfig" >> Kconfig.auto; \
56 echo "automake: $$D (default Kconfig)"; \
58 echo "config $${T}_$${M}"; \
59 echo "bool \"$$D\""; \
61 echo " Automake package for $$D."; \
62 echo " see $(ROOTDIR)/Documentation/automake.txt for details"; \
63 echo " on improving this help."; \
66 echo "dir_$$""(CONFIG_$${T}_$${M}) += $$D" >> Makefile.auto; \
67 if [ -f $$D/Makefile.auto ]; then \
68 echo "include $$D/Makefile.auto" >> Makefile.auto; \
73 rm -f ../lib/Kconfig.auto ../user/Kconfig.auto
74 rm -f ../lib/Makefile.auto ../user/Makefile.auto
76 rm -f ../vendors/Kconfig
78 clean: confclean autoclean
79 rm -f autoconf.h auto.conf .config .config.old
81 .PHONY: all oldconfig config menuconfig gconfig qconfig xconfig clean