This patch adds support for the kernel_xconfig top-level target. If
qt3 is detected on the system (by checking for the presence of the
directory /usr/include/qt3), the top-level target expands to the
invocation of the kernel xconfig target. Otherwise, the target prints
a message and errors.

Signed-off-by: Emmanuel Deloget <emmanuel.delo...@efixo.com>

(Warning)
Please note that this patch does not apply cleanly, although it applies.
I get the following warning (after I applied patches 1/4 to 3/4):

  patching file include/toplevel.mk
  Hunk #1 succeeded at 129 (offset 22 lines).

The resulting file is still valid.

--

Index: include/toplevel.mk
===================================================================
--- include/toplevel.mk	(revision 27257)
+++ include/toplevel.mk	(working copy)
@@ -107,6 +107,16 @@
 kernel_nconfig: prepare_kernel_conf
 	$(_SINGLE)$(NO_TRACE_MAKE) -C target/linux nconfig
 
+ifneq ($(have-qt3-dev),)
+kernel_xconfig: prepare_kernel_conf
+	$(_SINGLE)$(NO_TRACE_MAKE) -C target/linux xconfig
+else
+kernel_xconfig:
+	@echo "  Target kernel_xconfig adds qt3-dev to the dependencies of OpenWRT, and this dependency is missing on your system"
+	@echo "  You shall install qt3-dev to be able to run make xconfig."
+	@false
+endif
+
 tmp/.prereq-build: include/prereq-build.mk
 	mkdir -p tmp
 	rm -f tmp/.host.mk

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to