X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=scripts%2FMakefile.build;h=0e801c3cdaf8f4173ce5abbf9cee0554374bfbc7;hb=0c0936eb6cf7fb1935764f2f290a5429ff0dd871;hp=ff1720d28d0c80be0df2e1d0ae8f5697794e36e9;hpb=6ac1ef482d7ae0c690f1640bf6eb818ff9a2d91e;p=~andy%2Flinux diff --git a/scripts/Makefile.build b/scripts/Makefile.build index ff1720d28d0..0e801c3cdaf 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -354,6 +354,17 @@ quiet_cmd_cpp_lds_S = LDS $@ $(obj)/%.lds: $(src)/%.lds.S FORCE $(call if_changed_dep,cpp_lds_S) +# ASN.1 grammar +# --------------------------------------------------------------------------- +quiet_cmd_asn1_compiler = ASN.1 $@ + cmd_asn1_compiler = $(objtree)/scripts/asn1_compiler $< \ + $(subst .h,.c,$@) $(subst .c,.h,$@) + +.PRECIOUS: $(objtree)/$(obj)/%-asn1.c $(objtree)/$(obj)/%-asn1.h + +$(obj)/%-asn1.c $(obj)/%-asn1.h: $(src)/%.asn1 $(objtree)/scripts/asn1_compiler + $(call cmd,asn1_compiler) + # Build the compiled-in targets # ---------------------------------------------------------------------------