From 02c69e0026a355af4f3adf729a9c6a165e448377 Mon Sep 17 00:00:00 2001 From: Hannes Mehnert Date: Tue, 17 Dec 2024 15:19:59 +0100 Subject: [PATCH] new release: ocaml-solo5 1.0.1 --- .../ocaml-solo5-cross-aarch64.1.0.1/opam | 58 +++++++++++++++++++ packages/ocaml-solo5/ocaml-solo5.1.0.1/opam | 56 ++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 packages/ocaml-solo5-cross-aarch64/ocaml-solo5-cross-aarch64.1.0.1/opam create mode 100644 packages/ocaml-solo5/ocaml-solo5.1.0.1/opam diff --git a/packages/ocaml-solo5-cross-aarch64/ocaml-solo5-cross-aarch64.1.0.1/opam b/packages/ocaml-solo5-cross-aarch64/ocaml-solo5-cross-aarch64.1.0.1/opam new file mode 100644 index 00000000000..a14fe050ec0 --- /dev/null +++ b/packages/ocaml-solo5-cross-aarch64/ocaml-solo5-cross-aarch64.1.0.1/opam @@ -0,0 +1,58 @@ +opam-version: "2.0" +maintainer: "Martin Lucina " +authors: "Martin Lucina " +homepage: "https://github.com/mirage/ocaml-solo5" +bug-reports: "https://github.com/mirage/ocaml-solo5/issues/" +license: "MIT" +tags: "org:mirage" +dev-repo: "git+https://github.com/mirage/ocaml-solo5.git" +build: [ + ["./configure.sh" + "--prefix=%{prefix}%" + "--sysroot=%{_:lib}%" + "--target=aarch64-solo5-none-static" + "--ocaml-configure-option=--disable-flat-float-array" {ocaml-option-no-flat-float-array:installed} + "--ocaml-configure-option=--enable-flambda" {ocaml-option-flambda:installed} + ] + [make "-j%{jobs}%"] + [make "%{name}%.install"] +] +depopts: [ + "ocaml-option-no-flat-float-array" + "ocaml-option-flambda" +] +run-test: [ + [make "test"] +] +depends: [ + "conf-git" {build} # to patch the compiler sources + "conf-pkg-config" {build} # to detect how to link with zstd + "ocamlfind" {build} # needed by dune context (for tests) + "ocaml-src" {build} + "ocaml" {= "5.2.1"} + "solo5" {>= "0.9.0"} + "solo5-cross-aarch64" {>= "0.9.0" } +] +conflicts: [ + "ocaml-solo5" + "sexplib" {= "v0.9.0"} + "solo5-kernel-ukvm" + "solo5-kernel-virtio" + "solo5-kernel-muen" +] +available: [ + ((os = "linux" & (arch = "x86_64" | arch = "arm64")) + | (os = "freebsd" & arch = "x86_64") + | (os = "openbsd" & arch = "x86_64")) +] +synopsis: "OCaml cross-compiler to the freestanding 64-bit ARM Solo5 backend" +description: + "This package provides a OCaml cross-compiler for ARM64, suitable for linking with a Solo5 unikernel." +url { + src: + "https://github.com/mirage/ocaml-solo5/archive/refs/tags/v1.0.1.tar.gz" + checksum: [ + "md5=11ce90fb59f3ddf2ca04d33ce971e247" + "sha512=a7fbd333154e8892f621000b7c852f6a3dce1aa66d6f2a16e9543cfdb479003f90eb9c02ae5e925edbe6cb4d83ce45e726c55754dfbaee7dc2a51029fb921c25" + ] +} diff --git a/packages/ocaml-solo5/ocaml-solo5.1.0.1/opam b/packages/ocaml-solo5/ocaml-solo5.1.0.1/opam new file mode 100644 index 00000000000..6260c5fe3c6 --- /dev/null +++ b/packages/ocaml-solo5/ocaml-solo5.1.0.1/opam @@ -0,0 +1,56 @@ +opam-version: "2.0" +maintainer: "Martin Lucina " +authors: "Martin Lucina " +homepage: "https://github.com/mirage/ocaml-solo5" +bug-reports: "https://github.com/mirage/ocaml-solo5/issues/" +license: "MIT" +tags: "org:mirage" +dev-repo: "git+https://github.com/mirage/ocaml-solo5.git" +build: [ + ["./configure.sh" + "--prefix=%{prefix}%" + "--target=x86_64-solo5-none-static" { arch = "x86_64" } + "--target=aarch64-solo5-none-static" { arch = "arm64" } + "--ocaml-configure-option=--disable-flat-float-array" {ocaml-option-no-flat-float-array:installed} + "--ocaml-configure-option=--enable-flambda" {ocaml-option-flambda:installed} + ] + [make "-j%{jobs}%"] + [make "%{name}%.install"] +] +depopts: [ + "ocaml-option-no-flat-float-array" + "ocaml-option-flambda" +] +run-test: [ + [make "test"] +] +depends: [ + "conf-git" {build} # to patch the compiler sources + "conf-pkg-config" {build} # to detect how to link with zstd + "ocamlfind" {build} # needed by dune context (for tests) + "ocaml-src" {build} + "ocaml" {= "5.2.1"} + "solo5" {>= "0.9.0"} +] +conflicts: [ + "sexplib" {= "v0.9.0"} + "solo5-kernel-ukvm" + "solo5-kernel-virtio" + "solo5-kernel-muen" +] +available: [ + ((os = "linux" & (arch = "x86_64" | arch = "arm64")) + | (os = "freebsd" & arch = "x86_64") + | (os = "openbsd" & arch = "x86_64")) +] +synopsis: "OCaml cross-compiler to the freestanding Solo5 backend" +description: + "This package provides a OCaml cross-compiler, suitable for linking with a Solo5 unikernel." +url { + src: + "https://github.com/mirage/ocaml-solo5/archive/refs/tags/v1.0.1.tar.gz" + checksum: [ + "md5=11ce90fb59f3ddf2ca04d33ce971e247" + "sha512=a7fbd333154e8892f621000b7c852f6a3dce1aa66d6f2a16e9543cfdb479003f90eb9c02ae5e925edbe6cb4d83ce45e726c55754dfbaee7dc2a51029fb921c25" + ] +}