Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp488294pxk; Thu, 24 Sep 2020 10:21:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwg2jlbcl08/3A676QxIUk3X6qu0Gw4Qh3qZgzr0zwtCgfLWKheeH39EtG6rlYSkeL2Bsbi X-Received: by 2002:a17:906:b7d1:: with SMTP id fy17mr984502ejb.391.1600968075171; Thu, 24 Sep 2020 10:21:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600968075; cv=none; d=google.com; s=arc-20160816; b=jCnaGeCrtIspwrFusEbG7wlGJQwMy3L3k7Get3gnmqA1ExgC97ajFmSuDsIJztc7KT fKBWRXTwQjAj+gOm/xMS5x8u9LBZITubXd42nS0GZQIdo3QQQS7SMzlQBXCbou7XebBK CIgbx/NoEwfJxH4aTaHVMv8KIPoiFCiRMt4jfrf8ZvWlmG3ikHa+CwoExI+88tfiOUUE mLeP0QJ9q/R8/lP1oieVAvw5CazK1OczyqgLHXRReuY2U7EDXIXV6mDUXifC2WH9sXTf WFaPsgvWDevOKDgFEBAtmYR9mEQKVfwsDDqOZuRBHBNX9pvDBMpK0Sbw4MEJdLzEgAHS 8jcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=BfAZ+Kz7r7qkfo61OgHPAKHCGchfZtW7vHgqjvU1wtA=; b=auWMIMx6XKWUaLWblaEq2IRDknbdvnnudODJ7bZp5v2PGE6SkSAxYRqZ/1W3xMfuKM PsoKyMIwOcpnBcUt8KBt+fQHdW5nNlJc063xCbedw4/8V6jv+47aLmpmZy3gnDzn9hZk m+iCxEi37b5OyYfEnTaAAUyKjAk8KXzWiZsblVy46x3DvtGDg/r8D/waCAXlIQKn+cve ODFXLcZuoqaUyECjQ0o/5B8hyiUlufkXTtHaOBhEZxbKD/NuJPTx0JzgVDUoFRrvIVzW jpO+S8cv15dUT0xTg4KQ8ssaM8ptd/0p84YdQ3/Nj52NNib8NoN+x009ySSTk8UIXf1Y tX6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=gzUzODYz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 88si18449edq.178.2020.09.24.10.20.51; Thu, 24 Sep 2020 10:21:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=gzUzODYz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728605AbgIXRTR (ORCPT + 99 others); Thu, 24 Sep 2020 13:19:17 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:49960 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727216AbgIXRTR (ORCPT ); Thu, 24 Sep 2020 13:19:17 -0400 Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) (authenticated) by conssluserg-01.nifty.com with ESMTP id 08OHIv4W025975; Fri, 25 Sep 2020 02:18:58 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 08OHIv4W025975 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1600967938; bh=BfAZ+Kz7r7qkfo61OgHPAKHCGchfZtW7vHgqjvU1wtA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=gzUzODYzGZROgaPKme/ZxGF1T1p2u0+Gk0Icanw35xumvgnhXNEPvfTneb0XOTaKO R1bxDdSTcjE4who+FJRA8ue3SKIfB8kFsfRWtRY87QNBsbjSq6zL4ZcD4wu65rZJ2M D9VYNlJiDP1uOetE1wCmPD//IiwTTQKH1IQb6Mah5RuLd0YJsbt5fA1UPXrmzTFvP6 OTpXsPuV9FIEUk1knJ4K37DMqrSy2xuhxOzGEcQRetTWRsLmDQ2rKvk/PT9EjEJNI2 +jjAZBjkqAHiVKIaieOAxKSPqrPurdeQL2WUFIE2J8oVPfH7tVmFEZiDeVotu7elbo /U7x4O2LKHWNA== X-Nifty-SrcIP: [209.85.216.54] Received: by mail-pj1-f54.google.com with SMTP id md22so73093pjb.0; Thu, 24 Sep 2020 10:18:58 -0700 (PDT) X-Gm-Message-State: AOAM530rVAYnEPqRf/ygvdKIWiKOpuDZLfbmUDigtkHHi/LAeSnzRWHr 9zqXB46lXAzVISa8R0rBovf/D/vuPaGWUCm1I/8= X-Received: by 2002:a17:90b:208:: with SMTP id fy8mr187544pjb.153.1600967937296; Thu, 24 Sep 2020 10:18:57 -0700 (PDT) MIME-Version: 1.0 References: <20200922155341.17906-1-James.Bottomley@HansenPartnership.com> <20200922155341.17906-2-James.Bottomley@HansenPartnership.com> In-Reply-To: <20200922155341.17906-2-James.Bottomley@HansenPartnership.com> From: Masahiro Yamada Date: Fri, 25 Sep 2020 02:18:20 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/1] Makefile.build: Add an explicit error for missing ASN.1 compiler To: James Bottomley Cc: Linux Kbuild mailing list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 23, 2020 at 12:55 AM James Bottomley wrote: > > The current dependency rules mean that the build breaks if the ASN.1 > compiler is required but CONFIG_ASN1 isn't set. However, it isn't > obvious from the error message about missing files what the actual > problem is, so make the build system give an explicit error. > > Signed-off-by: James Bottomley > --- Applied to linux-kbuild. Thanks. > scripts/Makefile.build | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/scripts/Makefile.build b/scripts/Makefile.build > index a467b9323442..bca7003beac8 100644 > --- a/scripts/Makefile.build > +++ b/scripts/Makefile.build > @@ -382,6 +382,11 @@ quiet_cmd_asn1_compiler = ASN.1 $(basename $@).[ch] > cmd_asn1_compiler = $(objtree)/scripts/asn1_compiler $< \ > $(basename $@).c $(basename $@).h > > +ifndef CONFIG_ASN1 > +$(objtree)/scripts/asn1_compiler: > + $(error CONFIG_ASN1 must be defined for the asn1_compiler) > +endif > + > $(obj)/%.asn1.c $(obj)/%.asn1.h: $(src)/%.asn1 $(objtree)/scripts/asn1_compiler > $(call cmd,asn1_compiler) > > -- > 2.26.2 > -- Best Regards Masahiro Yamada