[RESEND] drivers: soc: Allow building the sunxi driver without ARCH_SUNXI
diff mbox series

Message ID 20180909190439.20425-1-contact@paulk.fr
State New, archived
Headers show
Series
  • [RESEND] drivers: soc: Allow building the sunxi driver without ARCH_SUNXI
Related show

Commit Message

Paul Kocialkowski Sept. 9, 2018, 7:04 p.m. UTC
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.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
---
 drivers/soc/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Chen-Yu Tsai Sept. 10, 2018, 8:30 a.m. UTC | #1
Hi Hans,

On Mon, Sep 10, 2018 at 3:04 AM Paul Kocialkowski <contact@paulk.fr> wrote:
>
> 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.
>
> Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
> ---
>  drivers/soc/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/soc/Makefile b/drivers/soc/Makefile
> index 113e884697fd..446166ba0bec 100644
> --- a/drivers/soc/Makefile
> +++ b/drivers/soc/Makefile
> @@ -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/
> --
> 2.18.0
>

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

ChenYu
Maxime Ripard Sept. 10, 2018, 11:43 a.m. UTC | #2
On Sun, Sep 09, 2018 at 09:04:39PM +0200, Paul Kocialkowski wrote:
> 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.
> 
> Signed-off-by: Paul Kocialkowski <contact@paulk.fr>

Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>

Maxime
Chen-Yu Tsai Sept. 12, 2018, 2:53 p.m. UTC | #3
On Mon, Sep 10, 2018 at 7:43 PM Maxime Ripard <maxime.ripard@bootlin.com> wrote:
>
> On Sun, Sep 09, 2018 at 09:04:39PM +0200, Paul Kocialkowski wrote:
> > 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.
> >
> > Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
>
> Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>

Applied for 4.20.

ChenYu

Patch
diff mbox series

diff --git a/drivers/soc/Makefile b/drivers/soc/Makefile
index 113e884697fd..446166ba0bec 100644
--- a/drivers/soc/Makefile
+++ b/drivers/soc/Makefile
@@ -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/