um: Prevent building modules incompatible with MODVERSIONS
authorPeter Foley <pefoley2@pefoley.com>
Fri, 13 Jan 2023 04:49:09 +0000 (23:49 -0500)
committerRichard Weinberger <richard@nod.at>
Mon, 13 Feb 2023 09:14:16 +0000 (10:14 +0100)
The manual ld invocation in arch/um/drivers doesn't play nicely with
genksyms. Given the problematic modules are deprecated anyway, just
prevent building them when using MODVERSIONS.

e.g.
MODPOST Module.symvers
arch/um/drivers/.pcap.o.cmd: No such file or directory

Signed-off-by: Peter Foley <pefoley2@pefoley.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/drivers/Kconfig

index a4f0a19fbe14ba3668cb8bc19139b01b9e079801..36911b1fddcf00653eae02ff2c645ef4938b9a52 100644 (file)
@@ -261,6 +261,7 @@ config UML_NET_VECTOR
 config UML_NET_VDE
        bool "VDE transport (obsolete)"
        depends on UML_NET
+       depends on !MODVERSIONS
        select MAY_HAVE_RUNTIME_DEPS
        help
          This User-Mode Linux network transport allows one or more running
@@ -309,6 +310,7 @@ config UML_NET_MCAST
 config UML_NET_PCAP
        bool "pcap transport (obsolete)"
        depends on UML_NET
+       depends on !MODVERSIONS
        select MAY_HAVE_RUNTIME_DEPS
        help
          The pcap transport makes a pcap packet stream on the host look