[lkml]   [2020]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH 1/1] Add an explicit error for missing ASN.1 compiler
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/ | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/scripts/ b/scripts/
index a467b9323442..bca7003beac8 100644
--- a/scripts/
+++ b/scripts/
@@ -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
+ $(error CONFIG_ASN1 must be defined for the asn1_compiler)
$(obj)/%.asn1.c $(obj)/%.asn1.h: $(src)/%.asn1 $(objtree)/scripts/asn1_compiler
$(call cmd,asn1_compiler)

 \ /
  Last update: 2020-09-22 18:05    [W:0.050 / U:6.616 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site