diff options
-rw-r--r-- | v4l/Makefile | 11 | ||||
-rw-r--r-- | v4l/Makefile.kernel | 2 |
2 files changed, 10 insertions, 3 deletions
diff --git a/v4l/Makefile b/v4l/Makefile index c8f42006d..7674abd98 100644 --- a/v4l/Makefile +++ b/v4l/Makefile @@ -301,8 +301,13 @@ CONF := $(KDIR)/scripts/kconfig/conf # lxdialog can be in either scripts/lxdialog or scripts/kconfig/lxdialog LXDIALOG_DIR := $(shell if [ -d $(KDIR)/scripts/kconfig/lxdialog ]; then echo kconfig/ ; fi) -LXDIALOG_LNK := $(if $(LXDIALOG_DIR),scripts/kconfig,scripts/lxdialog) -LXDIALOG := $(KDIR)/scripts/$(LXDIALOG_DIR)lxdialog/lxdialog +# lxdialog might not be a separate program that needs to be built, check +# for lxdialog/Makefile to find out. +ifneq ($(wildcard $(KDIR)/scripts/$(LXDIALOG_DIR)lxdialog/Makefile),) + # lxdialog must be built + LXDIALOG_LNK := $(if $(LXDIALOG_DIR),scripts/kconfig,scripts/lxdialog) + LXDIALOG := $(KDIR)/scripts/$(LXDIALOG_DIR)lxdialog/lxdialog +endif # Ideally, some kind of oldconfig process would be used to update .config # without destroying the user's configuration. Lacking that, we will @@ -345,11 +350,13 @@ $(QCONF) $(GCONF) $(MCONF) $(CONF): .PHONY: lxdialog lxdialog: $(LXDIALOG) $(LXDIALOG_LNK) +ifdef LXDIALOG $(LXDIALOG_LNK): ln -snf $(KDIR)/$(LXDIALOG_LNK) $(LXDIALOG_LNK) $(LXDIALOG): $(MAKE) -C $(KDIR) -f $(PWD)/Makefile.kernel $(KMAKEVARS) v4l-$(LXDIALOG) +endif ################################################# # IVTV link rules diff --git a/v4l/Makefile.kernel b/v4l/Makefile.kernel index bbcfdc6d3..7229c6e91 100644 --- a/v4l/Makefile.kernel +++ b/v4l/Makefile.kernel @@ -35,7 +35,7 @@ v4l-gconf: scripts_basic # Used by the menuconfig target, also needs lxdialog v4l-mconf: scripts_basic - $(MAKE) $(build)=scripts/kconfig scripts/kconfig/mconf + $(MAKE) $(build)=scripts/kconfig hostprogs-y=mconf scripts/kconfig/mconf # Rule used for kernel where lxdialog is in directory scripts/lxdialog v4l-%/scripts/lxdialog/lxdialog: scripts_basic |