Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4051067pxk; Tue, 22 Sep 2020 09:07:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwehDDwtejPdsgwFbig8rEut1x73VSBPjR24AsXI1OCo3NeOhy3IfJd5j6MemTcN7Z14Ed X-Received: by 2002:a5d:53d1:: with SMTP id a17mr5784996wrw.98.1600790879186; Tue, 22 Sep 2020 09:07:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600790879; cv=none; d=google.com; s=arc-20160816; b=Q9M0VOc1St6TU4dAZbCnPyBNsgaCeLC7QU+Uwm1fmne9VY2deGoeflf/metj2UZEpT p6ZFWkf0l+minEdaa0FA868h6t56d90Gcp8Tn/eBKlXF4FJuk2ENEbN1pccPh0+rvxeX i9h4dfn3vxNlVxnK49O1QO+9fM+1kvZJRc186FEfaJEHKLUgnORiea7zRMwkDTcDsNzS jCY2/QDffWkUqYQ6ndi5t8qzCmOmnuZEIxFYJLDblkpuIC3zjSauSOFKyohOk0ns6vD8 IdrOFu5eCuiwh8IbPJxjY/sTQnXzihFt6MXezee/+KoDkFqvOvX8yQ1stR8vvgh1ABdj kXdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bnYG6Vt7uHHtVXNNzwkBi8E32YMH3EHO5ZAi9UMXOrw=; b=ZfGCRPfJSN0l/JmsCWd6pUYqMf6I3sMqiBQadMJUAEnHfRd6VWZY6XZsRlVS559qVT g3yXOpiZAmfPT5hxsuB2aLdn0bfYLqMJZFS2TusXpeVrS3eInc/w9RFnxjL5A5JWHd+e R6F/w0l3euTP8UxdDojm8e1vX5KvJ2XpAuMm9gxd/eG9+3yhqLkLGBw2X1v3slfpzqfc 0OW1Fa8itazavpBhePYsCR7qAU353GWbOTvgVT/PdpSGaQQ1aZVnfapstwGGxYmex9uK 6EZSLoijSxpKZYcvEArAI9F0ntYgMLCSb6Qj1WoK6oy5OOSjghViG/JzIbktSgXXeMAm 9ldw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=jEbgnEmk; 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=fail (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a14si11140051edk.57.2020.09.22.09.07.34; Tue, 22 Sep 2020 09:07:59 -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=fail header.i=@hansenpartnership.com header.s=20151216 header.b=jEbgnEmk; 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=fail (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726654AbgIVQFV (ORCPT + 99 others); Tue, 22 Sep 2020 12:05:21 -0400 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:53286 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726709AbgIVQFU (ORCPT ); Tue, 22 Sep 2020 12:05:20 -0400 Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id A0C7B8EE1CB; Tue, 22 Sep 2020 08:55:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hansenpartnership.com; s=20151216; t=1600790154; bh=onSSkyHXeiC7G+ragyMOoMevMlY5DZ6Croa+2J3cFZk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jEbgnEmk21LGtU3N91Oq0gH98slwfaQcOaEy3CfHmiyrldddl1arJcMGoI9X4rAHE lkLRqAwY4EVu7Kcer32qW5H/vNuYATbhFcyTdBn03l3omyqKwxfe7WTw1NBJQKrmYV DSD0wtuMb/q0WrB62C4tG8XZt/dq3jze8CQXcE48= Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3RVzxqZL35BJ; Tue, 22 Sep 2020 08:55:54 -0700 (PDT) Received: from jarvis.int.hansenpartnership.com (jarvis.ext.hansenpartnership.com [153.66.160.226]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id 350518EE1C8; Tue, 22 Sep 2020 08:55:53 -0700 (PDT) From: James Bottomley To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 1/1] Makefile.build: Add an explicit error for missing ASN.1 compiler Date: Tue, 22 Sep 2020 08:53:41 -0700 Message-Id: <20200922155341.17906-2-James.Bottomley@HansenPartnership.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200922155341.17906-1-James.Bottomley@HansenPartnership.com> References: <20200922155341.17906-1-James.Bottomley@HansenPartnership.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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