diff options
Diffstat (limited to 'scripts/kconfig/Makefile')
| -rw-r--r-- | scripts/kconfig/Makefile | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index a90d3cc76bfa..b2928f039c17 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
| @@ -11,7 +11,6 @@ gconfig: $(obj)/gconf | |||
| 11 | $< arch/$(ARCH)/Kconfig | 11 | $< arch/$(ARCH)/Kconfig |
| 12 | 12 | ||
| 13 | menuconfig: $(obj)/mconf | 13 | menuconfig: $(obj)/mconf |
| 14 | $(Q)$(MAKE) $(build)=scripts/kconfig/lxdialog | ||
| 15 | $< arch/$(ARCH)/Kconfig | 14 | $< arch/$(ARCH)/Kconfig |
| 16 | 15 | ||
| 17 | config: $(obj)/conf | 16 | config: $(obj)/conf |
| @@ -81,6 +80,23 @@ help: | |||
| 81 | @echo ' allyesconfig - New config where all options are accepted with yes' | 80 | @echo ' allyesconfig - New config where all options are accepted with yes' |
| 82 | @echo ' allnoconfig - New config where all options are answered with no' | 81 | @echo ' allnoconfig - New config where all options are answered with no' |
| 83 | 82 | ||
| 83 | # lxdialog stuff | ||
| 84 | check-lxdialog := $(srctree)/$(src)/lxdialog/check-lxdialog.sh | ||
| 85 | |||
| 86 | # Use reursively expanded variables so we do not call gcc unless | ||
| 87 | # we really need to do so. (Do not call gcc as part of make mrproper) | ||
| 88 | HOST_EXTRACFLAGS = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags) | ||
| 89 | HOST_LOADLIBES = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC)) | ||
| 90 | |||
| 91 | HOST_EXTRACFLAGS += -DLOCALE | ||
| 92 | |||
| 93 | PHONY += $(obj)/dochecklxdialog | ||
| 94 | $(obj)/dochecklxdialog: | ||
| 95 | $(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_LOADLIBES) | ||
| 96 | |||
| 97 | always := dochecklxdialog | ||
| 98 | |||
| 99 | |||
| 84 | # =========================================================================== | 100 | # =========================================================================== |
| 85 | # Shared Makefile for the various kconfig executables: | 101 | # Shared Makefile for the various kconfig executables: |
| 86 | # conf: Used for defconfig, oldconfig and related targets | 102 | # conf: Used for defconfig, oldconfig and related targets |
| @@ -92,9 +108,12 @@ help: | |||
| 92 | # Based on GTK which needs to be installed to compile it | 108 | # Based on GTK which needs to be installed to compile it |
| 93 | # object files used by all kconfig flavours | 109 | # object files used by all kconfig flavours |
| 94 | 110 | ||
| 111 | lxdialog := lxdialog/checklist.o lxdialog/util.o lxdialog/inputbox.o | ||
| 112 | lxdialog += lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o | ||
| 113 | |||
| 95 | hostprogs-y := conf mconf qconf gconf kxgettext | 114 | hostprogs-y := conf mconf qconf gconf kxgettext |
| 96 | conf-objs := conf.o zconf.tab.o | 115 | conf-objs := conf.o zconf.tab.o |
| 97 | mconf-objs := mconf.o zconf.tab.o | 116 | mconf-objs := mconf.o zconf.tab.o $(lxdialog) |
| 98 | kxgettext-objs := kxgettext.o zconf.tab.o | 117 | kxgettext-objs := kxgettext.o zconf.tab.o |
| 99 | 118 | ||
| 100 | ifeq ($(MAKECMDGOALS),xconfig) | 119 | ifeq ($(MAKECMDGOALS),xconfig) |
