Author: uwe Date: 2007-09-13 00:27:10 +0200 (Thu, 13 Sep 2007) New Revision: 35
Modified: buildrom-devel/Makefile buildrom-devel/scripts/kconfig/lxdialog/Makefile Log: 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 Acked-by: Ward Vandewege ward@gnu.org
Modified: buildrom-devel/Makefile =================================================================== --- buildrom-devel/Makefile 2007-09-12 21:04:42 UTC (rev 34) +++ buildrom-devel/Makefile 2007-09-12 22:27:10 UTC (rev 35) @@ -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
Modified: buildrom-devel/scripts/kconfig/lxdialog/Makefile =================================================================== --- buildrom-devel/scripts/kconfig/lxdialog/Makefile 2007-09-12 21:04:42 UTC (rev 34) +++ buildrom-devel/scripts/kconfig/lxdialog/Makefile 2007-09-12 22:27:10 UTC (rev 35) @@ -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 $@ +