Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1621877 > unrolled thread
| Started by | Tobias Klauser <tklauser@distanz.ch> |
|---|---|
| First post | 2017-04-12 09:30 +0200 |
| Last post | 2017-04-12 16:50 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH v2] fpga: allow to compile-test Altera FPGA bridge drivers Tobias Klauser <tklauser@distanz.ch> - 2017-04-12 09:30 +0200
Re: [PATCH v2] fpga: allow to compile-test Altera FPGA bridge drivers Alan Tull <atull@kernel.org> - 2017-04-12 16:50 +0200
| From | Tobias Klauser <tklauser@distanz.ch> |
|---|---|
| Date | 2017-04-12 09:30 +0200 |
| Subject | [PATCH v2] fpga: allow to compile-test Altera FPGA bridge drivers |
| Message-ID | <tvkT0-1CE-19@gated-at.bofh.it> |
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@distanz.ch> --- drivers/fpga/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig index 161ba9dccede..544600db8052 100644 --- a/drivers/fpga/Kconfig +++ b/drivers/fpga/Kconfig @@ -69,14 +69,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.12.2
[toc] | [next] | [standalone]
| From | Alan Tull <atull@kernel.org> |
|---|---|
| Date | 2017-04-12 16:50 +0200 |
| Message-ID | <tvrKO-5EQ-13@gated-at.bofh.it> |
| In reply to | #1621877 |
On Wed, Apr 12, 2017 at 2:20 AM, Tobias Klauser <tklauser@distanz.ch> wrote: > 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@distanz.ch> Signed-off-by: Alan Tull <atull@kernel.org> > --- > drivers/fpga/Kconfig | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig > index 161ba9dccede..544600db8052 100644 > --- a/drivers/fpga/Kconfig > +++ b/drivers/fpga/Kconfig > @@ -69,14 +69,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.12.2 > >
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web