summaryrefslogtreecommitdiff
path: root/scripts/Makefile.build
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-03-31 16:44:25 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-03-31 17:19:31 +0200
commit5248f31613cde73ad30c05d9b9c86fe3dbe6b845 (patch)
treef07047be4764632bec90d9bf8417d6250d393d51 /scripts/Makefile.build
parentca4473e417f9a98d82adbbc59ac31061d0d674d3 (diff)
downloadembtoolkit-5248f31613cde73ad30c05d9b9c86fe3dbe6b845.tar.gz
embtoolkit-5248f31613cde73ad30c05d9b9c86fe3dbe6b845.tar.bz2
embtoolkit-5248f31613cde73ad30c05d9b9c86fe3dbe6b845.tar.xz
kconfig: update from upstream 46a1f21a679abaaeae6d
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r--scripts/Makefile.build11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index ff1720d..0e801c3 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
# ---------------------------------------------------------------------------