diff options
author | Sam Ravnborg <sam@neptun.ravnborg.org> | 2006-09-02 15:32:14 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@neptun.ravnborg.org> | 2006-09-30 05:19:20 -0400 |
commit | c29121b787f533d135ae47b5f3044adb66cbebef (patch) | |
tree | f7641dd794a1c314a92b836ba83f796ac416c420 /scripts/kconfig/Makefile | |
parent | 903947d286c93d3545ef6491bf66a0b797010c8d (diff) |
kbuild: do not build mconf & lxdialog unless needed
Due to a limitation in kbuild all objects referred
by xxx-y or xxx-objs will be build when one of
the targets needs to e build.
This caused lxdialog to be build pulling in ncurses
that is not always available.
So avoid building mconf & lxdialog unless really needed.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/kconfig/Makefile')
-rw-r--r-- | scripts/kconfig/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 0b415ebee134..7e7e147875bf 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
@@ -111,11 +111,16 @@ always := dochecklxdialog | |||
111 | lxdialog := lxdialog/checklist.o lxdialog/util.o lxdialog/inputbox.o | 111 | lxdialog := lxdialog/checklist.o lxdialog/util.o lxdialog/inputbox.o |
112 | lxdialog += lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o | 112 | lxdialog += lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o |
113 | 113 | ||
114 | hostprogs-y := conf mconf qconf gconf kxgettext | ||
115 | conf-objs := conf.o zconf.tab.o | 114 | conf-objs := conf.o zconf.tab.o |
116 | mconf-objs := mconf.o zconf.tab.o $(lxdialog) | 115 | mconf-objs := mconf.o zconf.tab.o $(lxdialog) |
117 | kxgettext-objs := kxgettext.o zconf.tab.o | 116 | kxgettext-objs := kxgettext.o zconf.tab.o |
118 | 117 | ||
118 | hostprogs-y := conf qconf gconf kxgettext | ||
119 | |||
120 | ifeq ($(MAKECMDGOALS),menuconfig) | ||
121 | hostprogs-y += mconf | ||
122 | endif | ||
123 | |||
119 | ifeq ($(MAKECMDGOALS),xconfig) | 124 | ifeq ($(MAKECMDGOALS),xconfig) |
120 | qconf-target := 1 | 125 | qconf-target := 1 |
121 | endif | 126 | endif |