Return-Path: Received: from foss.arm.com ([217.140.101.70]:52200 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387733AbeKHA0h (ORCPT ); Wed, 7 Nov 2018 19:26:37 -0500 Date: Wed, 7 Nov 2018 14:55:54 +0000 From: Will Deacon To: Vladimir Murzin Cc: linux-arm-kernel@lists.infradead.org, yamada.masahiro@socionext.com, linux-crypto@vger.kernel.org, linux-kbuild@vger.kernel.org, kbuild-all@01.org, Marc Zyngier , Ard Biesheuvel Subject: Re: [RFC PATCH 1/4] kconfig: add as-instr macro to scripts/Kconfig.include Message-ID: <20181107145552.GC2623@brain-police> References: <1541583608-26375-1-git-send-email-vladimir.murzin@arm.com> <1541583608-26375-2-git-send-email-vladimir.murzin@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1541583608-26375-2-git-send-email-vladimir.murzin@arm.com> Sender: linux-crypto-owner@vger.kernel.org List-ID: On Wed, Nov 07, 2018 at 09:40:05AM +0000, Vladimir Murzin wrote: > There are cases where the whole feature, for instance arm64/lse or > arm/crypto, can depend on assembler. Current practice is to report > buildtime that selected feature is not supported, which can be quite > annoying... Why is it annoying? You still end up with a working kernel. > It'd nicer if we can check assembler first and opt-in feature > visibility in Kconfig. > > Cc: Masahiro Yamada > Cc: Will Deacon > Cc: Marc Zyngier > Cc: Ard Biesheuvel > Signed-off-by: Vladimir Murzin > --- > scripts/Kconfig.include | 4 ++++ > 1 file changed, 4 insertions(+) One issue I have with doing the check like this is that if somebody sends you a .config with e.g. ARM64_LSE_ATOMICS=y and you try to build a kernel using that .config and an old toolchain, the option is silently dropped. I think the diagnostic is actually useful in this case. Will