+ dune stuff

This commit is contained in:
swrup 2026-03-12 12:29:50 +01:00
parent 96f10ec373
commit 1e82b25087
5 changed files with 31 additions and 4 deletions

View file

@ -1,5 +1,5 @@
let db_connection caqti_switch : (unit, Caqti_miou.connection) Vifu.Device.device
=
let db_connection caqti_switch :
(unit, Caqti_miou.connection) Vifu.Device.device =
let f () =
let db_uri = Config.Exchangedb_postgres.config in
match Caqti_miou_unix.connect ~sw:caqti_switch db_uri with

View file

@ -1,8 +1,11 @@
(executable
(public_name mte)
(name mte)
(modules mte)
(libraries mte))
(link_flags :standard -cclib "-z solo5-abi=hvt")
(libraries mte)
(foreign_stubs
(language c)
(names manifest)))
(library
(name mte)
@ -43,3 +46,18 @@
(with-stdout-to
%{null}
(run ocaml-crunch -m plain ../assets -o %{target}))))
(rule
(targets manifest.c)
(deps manifest.json)
(enabled_if
(= %{context_name} "solo5"))
(action
(run solo5-elftool gen-manifest manifest.json manifest.c)))
(rule
(targets manifest.c)
(enabled_if
(= %{context_name} "default"))
(action
(write-file manifest.c "")))

1
src/manifest.json Normal file
View file

@ -0,0 +1 @@
{"type":"solo5.manifest","version":1,"devices":[]}