Skip to contentSkip to conversation

macintosh: Do not arbitrarily limit architecture for macintosh drivers.

PATCH In review Michal Suchanek 3 participants 3 messages Mar 29, 2017 Linux for power macintosh

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 macintosh: Do not arbitrarily limit architecture for macintosh drivers.

The mac mouse emulation is neat solution for notebooks with suboptimal touchpads. For historical reason this is available on x86 but not arm or mips so remove the limitation.

The other more specific drivers depend on various platform drivers anyway so users will not select those by accident.

---
 drivers/macintosh/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/macintosh/Kconfig +0 -1
index 97a420c11eed..c23c040bc668 100644
@@ -1,7 +1,6 @@
 
 menuconfig MACINTOSH_DRIVERS
 	bool "Macintosh device drivers"
-	depends on PPC || MAC || X86
 	default y if (PPC_PMAC || MAC)
 	---help---
 	  Say Y here to get to see options for devices used with Macintosh
Signature · 1 line
2.10.2
#1 lore raw
Quoted 17 lines · Michal Suchanek

The mac mouse emulation is neat solution for notebooks with suboptimal touchpads. For historical reason this is available on x86 but not arm or mips so remove the limitation.

The other more specific drivers depend on various platform drivers anyway so users will not select those by accident.

---
 drivers/macintosh/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/macintosh/Kconfig +0 -0
index 97a420c11eed..c23c040bc668 100644

drivers/macintosh/Kconfig

Quoted 8 lines
drivers/macintosh/Kconfig +0 -2
@@ -1,7 +1,6 @@
 
 menuconfig MACINTOSH_DRIVERS
        bool "Macintosh device drivers"
-       depends on PPC || MAC || X86
        default y if (PPC_PMAC || MAC)
        ---help---
          Say Y here to get to see options for devices used with Macintosh
--

Why not move the mac_hid module to drivers/input instead so it no longer depends on MACINTOSH_DRIVERS?

For the other mac drivers, it may be helpful to to add '|| COMPILE_TEST' to the dependency line here to allow building them on ARM (after you have verified that we can in fact build them all without warnings), but that would be unrelated.

Arnd

#2 lore raw
Quoted 9 lines · Arnd Bergmann

Why not move the mac_hid module to drivers/input instead so it no longer depends on MACINTOSH_DRIVERS?

For the other mac drivers, it may be helpful to to add '|| COMPILE_TEST'
to the dependency line here to allow building them on ARM (after you have verified that we can in fact build them all without warnings),
but that would be unrelated.

A bunch of them will rely on specific powermac infrastructure from arch, it's likely they won't build.

Cheers,
Ben.