]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
of: enable unittests on UML
authorRob Herring <robh@kernel.org>
Tue, 25 Jul 2017 19:46:56 +0000 (14:46 -0500)
committerRob Herring <robh@kernel.org>
Tue, 12 Dec 2017 17:35:53 +0000 (11:35 -0600)
The unittests can run on UML, but OF_IRQ and OF_ADDRESS need to be
enabled. Rework the kconfig dependencies to enable the unittests. The
unittests cannot build on Sparc, so we need to add an explicit
dependency for !SPARC.

There's one failure in overlay tests because the base DT is not
unflattened early.

Cc: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/Kconfig

index ad9a9578f9c453a63332db175e27629a0234d7fa..5020d7ef74945e9659ed0941834357dae498454e 100644 (file)
@@ -13,7 +13,8 @@ if OF
 
 config OF_UNITTEST
        bool "Device Tree runtime unit tests"
-       depends on OF_IRQ
+       depends on !SPARC
+       select IRQ_DOMAIN
        select OF_EARLY_FLATTREE
        select OF_RESOLVE
        help
@@ -61,7 +62,7 @@ config OF_DYNAMIC
 
 config OF_ADDRESS
        def_bool y
-       depends on !SPARC && HAS_IOMEM
+       depends on !SPARC && (HAS_IOMEM || UML)
        select OF_ADDRESS_PCI if PCI
 
 config OF_ADDRESS_PCI