]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging: fsl-mc: allow the driver compile multi-arch
authorLaurentiu Tudor <laurentiu.tudor@nxp.com>
Wed, 19 Jul 2017 11:42:32 +0000 (14:42 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 30 Jul 2017 15:23:28 +0000 (08:23 -0700)
Add an alternate dependency on COMPILE_TEST, thus leaving
this driver compile on other architectures.
Also, other drivers depending on the bus are updated to depend
on ARCH_LAYERSCAPE until they'll also be made multi-arch.
This was compiled tested on:
 - booke powerpc (corenet{32,64}_smp_defconfig)
 - x86 (i386_defconfig, x86_64_defconfig, needs CONFIG_OF)
 - arm64 (defconfig)

Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-dpaa2/Kconfig
drivers/staging/fsl-mc/bus/Kconfig

index 730fd6d4db33e9bb9fc607b0a6d1cbc26f7079b2..dfff675b30550c741f68009c71016f763f9f15fc 100644 (file)
@@ -4,7 +4,7 @@
 
 config FSL_DPAA2
        bool "Freescale DPAA2 devices"
-       depends on FSL_MC_BUS
+       depends on FSL_MC_BUS && ARCH_LAYERSCAPE
        ---help---
          Build drivers for Freescale DataPath Acceleration
          Architecture (DPAA2) family of SoCs.
index a10aaf03f31426bfda8086686e5587f49598c416..1af8d1d23fd95e3c71402bb32f684abb1d78e286 100644 (file)
@@ -8,7 +8,7 @@
 
 config FSL_MC_BUS
        bool "QorIQ DPAA2 fsl-mc bus driver"
-       depends on OF && ARCH_LAYERSCAPE
+       depends on OF && (ARCH_LAYERSCAPE || COMPILE_TEST)
        select GENERIC_MSI_IRQ_DOMAIN
        help
          Driver to enable the bus infrastructure for the QorIQ DPAA2
@@ -18,7 +18,7 @@ config FSL_MC_BUS
 
 config FSL_MC_DPIO
         tristate "QorIQ DPAA2 DPIO driver"
-        depends on FSL_MC_BUS
+        depends on FSL_MC_BUS && ARCH_LAYERSCAPE
         help
          Driver for the DPAA2 DPIO object.  A DPIO provides queue and
          buffer management facilities for software to interact with