On 12/09/07 23:37 +0200, Uwe Hermann wrote:
See patch.
Uwe.
http://www.hermann-uwe.de | http://www.holsham-traders.de http://www.crazy-hacks.org | http://www.unmaintained-free-software.org
Add support for 'make menuconfig' in buildrom. Until now, only 'make oldconfig' would work.
Signed-off-by: Uwe Hermann uwe@hermann-uwe.de
Acked-by: Jordan Crouse jordan.crouse@amd.com
Thanks Uwe!
Index: scripts/kconfig/lxdialog/Makefile
--- scripts/kconfig/lxdialog/Makefile (Revision 34) +++ scripts/kconfig/lxdialog/Makefile (Arbeitskopie) @@ -1,11 +1,13 @@ # Makefile to build lxdialog package #
+CONFIG_SHELL := sh
check-lxdialog := ./check-lxdialog.sh
HOSTCC ?= gcc
-# Use reursively expanded variables so we do not call gcc unless +# Use recursively expanded variables so we do not call gcc unless # we really need to do so. (Do not call gcc as part of make mrproper) HOST_EXTRACFLAGS = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags) HOST_LOADLIBES = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC)) @@ -22,5 +24,9 @@ lxdialog-objs := checklist.o menubox.o textbox.o yesno.o inputbox.o \ util.o lxdialog.o msgbox.o
-lxdialog: $(lxdialog-objs)
- $(CC) -o lxdialog $(lxdialog-objs)
+lxdialog: dochecklxdialog $(lxdialog-objs)
- $(CC) $(HOST_LOADLIBES) -o lxdialog $(lxdialog-objs)
+%.o: %.c
- $(Q)$(HOSTCC) $(HOST_EXTRACFLAGS) $^ -c -o $@
Index: Makefile
--- Makefile (Revision 34) +++ Makefile (Arbeitskopie) @@ -94,4 +94,10 @@
defconfig: $(KCONFIG_DIR)/conf @$(KCONFIG_DIR)/conf -d $(BASE_DIR)/Config.in
+menuconfig:
- @make -C $(KCONFIG_DIR)/lxdialog lxdialog
- @make -C $(KCONFIG_DIR) mconf
- @$(KCONFIG_DIR)/mconf $(BASE_DIR)/Config.in
endif
-- linuxbios mailing list linuxbios@linuxbios.org http://www.linuxbios.org/mailman/listinfo/linuxbios