[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170605190741.10508-4-atull@kernel.org>
Date: Mon, 5 Jun 2017 14:07:34 -0500
From: Alan Tull <atull@...nel.org>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: linux-kernel@...r.kernel.org, linux-fpga@...r.kernel.org,
Moritz Fischer <moritz.fischer@...us.com>,
delicious.quinoa@...il.com, Tobias Klauser <tklauser@...tanz.ch>,
Alan Tull <atull@...nel.org>
Subject: [PATCH 03/10] fpga: allow to compile-test Altera FPGA bridge drivers
From: Tobias Klauser <tklauser@...tanz.ch>
Add COMPILE_TEST to the Kconfig entry for the Altera SoCFPGA FPGA
Bridge. The Altera FPGA Freeze Bridge can also be used on Altera PEIe
FPGAs, so the driver shouldn't depend on ARCH_SOCFPGA in the first place.
This allows test-compiling the drivers on other architectures to catch
compiler errors/warnings, e.g. due to API/header changes earlier on.
Signed-off-by: Tobias Klauser <tklauser@...tanz.ch>
Signed-off-by: Alan Tull <atull@...nel.org>
---
drivers/fpga/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig
index 10361902c830..d6493655de1b 100644
--- a/drivers/fpga/Kconfig
+++ b/drivers/fpga/Kconfig
@@ -67,14 +67,14 @@ config FPGA_BRIDGE
config SOCFPGA_FPGA_BRIDGE
tristate "Altera SoCFPGA FPGA Bridges"
- depends on ARCH_SOCFPGA && FPGA_BRIDGE
+ depends on (ARCH_SOCFPGA || COMPILE_TEST) && FPGA_BRIDGE
help
Say Y to enable drivers for FPGA bridges for Altera SOCFPGA
devices.
config ALTERA_FREEZE_BRIDGE
tristate "Altera FPGA Freeze Bridge"
- depends on ARCH_SOCFPGA && FPGA_BRIDGE
+ depends on FPGA_BRIDGE
help
Say Y to enable drivers for Altera FPGA Freeze bridges. A
freeze bridge is a bridge that exists in the FPGA fabric to
--
2.11.0
Powered by blists - more mailing lists