aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/mx_archive.py
diff options
context:
space:
mode:
authoralexv-smirnov <alex@ydb.tech>2023-06-13 11:05:01 +0300
committeralexv-smirnov <alex@ydb.tech>2023-06-13 11:05:01 +0300
commitbf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0 (patch)
tree1d1df72c0541a59a81439842f46d95396d3e7189 /build/plugins/mx_archive.py
parent8bfdfa9a9bd19bddbc58d888e180fbd1218681be (diff)
downloadydb-bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0.tar.gz
add ymake export to ydb
Diffstat (limited to 'build/plugins/mx_archive.py')
-rw-r--r--build/plugins/mx_archive.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/build/plugins/mx_archive.py b/build/plugins/mx_archive.py
new file mode 100644
index 0000000000..76b785fcde
--- /dev/null
+++ b/build/plugins/mx_archive.py
@@ -0,0 +1,17 @@
+def onmx_formulas(unit, *args):
+ """
+ @usage: MX_FORMULAS(BinFiles...) # deprecated, matrixnet
+ Create MatrixNet formulas archive
+ """
+
+ def iter_infos():
+ for a in args:
+ if a.endswith('.bin'):
+ unit.on_mx_bin_to_info([a])
+ yield a[:-3] + 'info'
+ else:
+ yield a
+
+ infos = list(iter_infos())
+ unit.onarchive_asm(['NAME', 'MxFormulas'] + infos)
+ unit.on_mx_gen_table(infos)