Skip to contentSkip to conversation

cavium-octeon: determine if helper should build

PATCH Applied Andreas Bießmann 3 participants 3 messages Aug 11, 2010 – Aug 17, 2010 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cavium-octeon: determine if helper should build

This patch adds an config switch to determine if we need to build some workaround helper files.

The staging driver octeon-ethernet references some symbols which are only built when PCI is enabled. The new config switch enables these symbols in bothe cases.

---
 arch/mips/cavium-octeon/Kconfig            |    4 ++++
 arch/mips/cavium-octeon/executive/Makefile |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)
arch/mips/cavium-octeon/Kconfig +4 -0
index 094c17e..47323ca 100644
@@ -83,3 +83,7 @@ config ARCH_SPARSEMEM_ENABLE
 	def_bool y
 	select SPARSEMEM_STATIC
 	depends on CPU_CAVIUM_OCTEON
+
+config CAVIUM_OCTEON_HELPER
+	def_bool y
+	depends on OCTEON_ETHERNET || PCI
arch/mips/cavium-octeon/executive/Makefile +1 -1
index 2fd66db..7f41c5b 100644
@@ -11,4 +11,4 @@
 
 obj-y += cvmx-bootmem.o cvmx-l2c.o cvmx-sysinfo.o octeon-model.o
 
-obj-$(CONFIG_PCI) += cvmx-helper-errata.o cvmx-helper-jtag.o
+obj-$(CONFIG_CAVIUM_OCTEON_HELPER) += cvmx-helper-errata.o cvmx-helper-jtag.o
Signature · 1 line
1.7.1
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Andreas Bießmann

This patch adds an config switch to determine if we need to build some workaround helper files.

The staging driver octeon-ethernet references some symbols which are only built when PCI is enabled. The new config switch enables these symbols in bothe cases.

Quoted 27 lines
---
  arch/mips/cavium-octeon/Kconfig            |    4 ++++
  arch/mips/cavium-octeon/executive/Makefile |    2 +-
  2 files changed, 5 insertions(+), 1 deletions(-)
arch/mips/cavium-octeon/Kconfig +4 -0
index 094c17e..47323ca 100644
@@ -83,3 +83,7 @@ config ARCH_SPARSEMEM_ENABLE
  	def_bool y
  	select SPARSEMEM_STATIC
  	depends on CPU_CAVIUM_OCTEON
+
+config CAVIUM_OCTEON_HELPER
+	def_bool y
+	depends on OCTEON_ETHERNET || PCI
arch/mips/cavium-octeon/executive/Makefile +1 -1
index 2fd66db..7f41c5b 100644
@@ -11,4 +11,4 @@
 
  obj-y += cvmx-bootmem.o cvmx-l2c.o cvmx-sysinfo.o octeon-model.o
 
-obj-$(CONFIG_PCI) += cvmx-helper-errata.o cvmx-helper-jtag.o
+obj-$(CONFIG_CAVIUM_OCTEON_HELPER) += cvmx-helper-errata.o cvmx-helper-jtag.o