Skip to contentSkip to conversation

drivers: soc: Allow building the sunxi driver without ARCH_SUNXI

PATCH RESEND In review Paul Kocialkowski 3 participants 4 messages Sep 9, 2018 – Sep 12, 2018

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 drivers: soc: Allow building the sunxi driver without ARCH_SUNXI

This makes it possible to build the sunxi SRAM driver without building for the sunxi architecture. This allows selecting the driver when building the kernel in testing environments.

In particular, this is necessary for testing of the Cedrus driver, that selects the sunxi SRAM driver.

---
 drivers/soc/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/Makefile +1 -1
index 113e884697fd..446166ba0bec 100644
@@ -18,7 +18,7 @@ obj-y				+= qcom/
 obj-y				+= renesas/
 obj-$(CONFIG_ARCH_ROCKCHIP)	+= rockchip/
 obj-$(CONFIG_SOC_SAMSUNG)	+= samsung/
-obj-$(CONFIG_ARCH_SUNXI)	+= sunxi/
+obj-y				+= sunxi/
 obj-$(CONFIG_ARCH_TEGRA)	+= tegra/
 obj-$(CONFIG_SOC_TI)		+= ti/
 obj-$(CONFIG_ARCH_U8500)	+= ux500/
Signature · 1 line
2.18.0
#1 lore raw

Hi Hans,

Quoted 27 lines · Paul Kocialkowski

This makes it possible to build the sunxi SRAM driver without building for the sunxi architecture. This allows selecting the driver when building the kernel in testing environments.

In particular, this is necessary for testing of the Cedrus driver, that selects the sunxi SRAM driver.

---
 drivers/soc/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/Makefile +1 -2
index 113e884697fd..446166ba0bec 100644
@@ -18,7 +18,7 @@ obj-y                         += qcom/
 obj-y                          += renesas/
 obj-$(CONFIG_ARCH_ROCKCHIP)    += rockchip/
 obj-$(CONFIG_SOC_SAMSUNG)      += samsung/
-obj-$(CONFIG_ARCH_SUNXI)       += sunxi/
+obj-y                          += sunxi/
 obj-$(CONFIG_ARCH_TEGRA)       += tegra/
 obj-$(CONFIG_SOC_TI)           += ti/
 obj-$(CONFIG_ARCH_U8500)       += ux500/
--
Quoted 2 lines

2.18.0

Do you want us to merge this on an immutable tag for you to pull?

ChenYu

Acked-by on v1 1/1
#2 lore raw
In reply to Paul Kocialkowski
Quoted 8 lines · Paul Kocialkowski

This makes it possible to build the sunxi SRAM driver without building for the sunxi architecture. This allows selecting the driver when building the kernel in testing environments.

In particular, this is necessary for testing of the Cedrus driver, that selects the sunxi SRAM driver.

Maxime

Signature · 10 lines
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180910/9568d060/attachment.sig>
#3 lore raw
Quoted 6 lines · Maxime Ripard
Quoted 4 lines · Paul Kocialkowski

This makes it possible to build the sunxi SRAM driver without building for the sunxi architecture. This allows selecting the driver when building the kernel in testing environments.

Quoted 6 lines
Quoted 4 lines

In particular, this is necessary for testing of the Cedrus driver, that selects the sunxi SRAM driver.

Applied for 4.20.

ChenYu