Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752039AbdGROZk (ORCPT ); Tue, 18 Jul 2017 10:25:40 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:35213 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751487AbdGROZh (ORCPT ); Tue, 18 Jul 2017 10:25:37 -0400 MIME-Version: 1.0 In-Reply-To: <20170718133723.12709-9-laurentiu.tudor@nxp.com> References: <20170718133723.12709-1-laurentiu.tudor@nxp.com> <20170718133723.12709-9-laurentiu.tudor@nxp.com> From: Arnd Bergmann Date: Tue, 18 Jul 2017 16:25:36 +0200 X-Google-Sender-Auth: lTxYljU5KHOZTCwjFAoeqZCNu1g Message-ID: Subject: Re: [PATCH v2 8/8] staging: fsl-mc: allow the driver compile multi-arch To: Laurentiu Tudor Cc: gregkh , Stuart Yoder , devel@driverdev.osuosl.org, Linux Kernel Mailing List , Marc Zyngier , Alexander Graf , Robin Murphy , Ioana Ciornei , Ruxandra Ioana Radulescu , Bharat Bhushan , Catalin Horghidan , Leo Li , Roy Pledge , Linux ARM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 812 Lines: 24 On Tue, Jul 18, 2017 at 3:37 PM, wrote: > --- a/drivers/staging/fsl-dpaa2/Kconfig > +++ b/drivers/staging/fsl-dpaa2/Kconfig > @@ -4,7 +4,7 @@ > > config FSL_DPAA2 > bool "Freescale DPAA2 devices" > - depends on FSL_MC_BUS > + depends on FSL_MC_BUS && ARCH_LAYERSCAPE > ---help--- > Build drivers for Freescale DataPath Acceleration > Architecture (DPAA2) family of SoCs. I would probably leave the dependency in there conditionally, like depends on ARCH_LAYERSCAPE || COMPILE_TEST That way, we can build the driver on all architectures with "make allmodconfig" or "make randconfig", but regular users that disable COMPILE_TEST won't be bothered by the extra config options unless they have the right hardware. Arnd