upgrade hello unikernel to mirage4

This commit is contained in:
Hannes Mehnert 2022-08-05 11:10:46 +02:00
parent d84cc0048e
commit 93e0a26344
2 changed files with 53 additions and 32 deletions

View file

@ -1,32 +0,0 @@
# Generated by ./config.exe configure -t hvt (2022-03-01 21:26:18-00:00).
opam-version: "2.0"
name: "mirage-unikernel-hello-hvt"
depends: [ "duration"
"functoria-runtime"
"lwt"
"mirage" {build & >= "3.10.0" & < "3.11.0"}
"mirage-bootvar-solo5" { >= "0.6.0" & < "0.7.0"}
"mirage-clock-freestanding" { >= "3.0.0" & < "5.0.0"}
"mirage-logs" { >= "1.2.0" & < "2.0.0"}
"mirage-runtime" { >= "3.10.0" & < "3.11.0"}
"mirage-solo5" { >= "0.6.1" & < "0.7.0"}
"mirage-types" { >= "3.10.0" & < "3.11.0"}
"mirage-types-lwt" { >= "3.10.0" & < "3.11.0"}
"ocaml" {build & >= "4.08.0"}
"ocamlbuild" {build}
"ocamlfind" {build}
"solo5-bindings-hvt" { >= "0.6.0" & < "0.7.0"}
]
maintainer: "dummy"
authors: "dummy"
homepage: "dummy"
bug-reports: "dummy"
dev-repo: "git+https://example.com/nonexistent"
build: [ "sh" "-exc" "cd tutorial/hello-key && mirage configure -t hvt && mirage build" ]
synopsis: "The famous hello world unikernel."
install: [
[ "cp" "tutorial/hello-key/hello.hvt" "%{bin}%/hello.hvt" ]
[ "strip" "%{bin}%/hello.hvt" ]
[ "cp" "tutorial/hello-key/hello.hvt" "%{prefix}%/hello.hvt.debug" ]
]
url { src: "git+https://github.com/mirage/mirage-skeleton.git#mirage-3" }

View file

@ -0,0 +1,53 @@
# Generated by mirage.v4.2.0
opam-version: "2.0"
maintainer: "dummy"
authors: "dummy"
homepage: "dummy"
bug-reports: "dummy"
dev-repo: "git://dummy"
synopsis: "Unikernel hello-key - switch dependencies"
description: """
It assumes that local dependencies are already
fetched.
"""
build: ["sh" "-exc" "cd tutorial/hello-key/ && mirage build"]
install: [
[ "cp" "tutorial/hello-key/dist/hello-key.hvt" "%{bin}%/hello-key.hvt" ]
[ "strip" "%{bin}%/hello-key.hvt" ]
[ "cp" "tutorial/hello-key/dist/hello-key.hvt" "%{prefix}%/hello-key.hvt.debug" ]
]
depends: [
"duration" { ?monorepo }
"lwt" { ?monorepo }
"mirage" { build & >= "4.2.0" & < "4.3.0" }
"mirage-bootvar-solo5" { ?monorepo & >= "0.6.0" & < "0.7.0" }
"mirage-clock-solo5" { ?monorepo & >= "4.2.0" & < "5.0.0" }
"mirage-logs" { ?monorepo & >= "1.2.0" & < "2.0.0" }
"mirage-runtime" { ?monorepo & >= "4.2.0" & < "4.3.0" }
"mirage-solo5" { ?monorepo & >= "0.9.0" & < "0.10.0" }
"mirage-time" { ?monorepo }
"ocaml" { build & >= "4.08.0" }
"ocaml-solo5" { build & >= "0.8.1" & < "0.9.0" }
"opam-monorepo" { build & >= "0.3.2" }
]
x-mirage-opam-lock-location: "tutorial/hello-key/mirage/hello-key-hvt.opam.locked"
x-mirage-configure: ["sh" "-exc" "cd tutorial/hello-key/ && mirage configure -t hvt --context ./mirage/context --no-extra-repo"]
x-mirage-pre-build: [make "-Ctutorial/hello-key/" "lock" "pull"]
x-mirage-extra-repo: [
["opam-overlays" "https://github.com/dune-universe/opam-overlays.git"]
["mirage-overlays" "https://github.com/dune-universe/mirage-opam-overlays.git"]]
x-opam-monorepo-opam-provided: ["mirage"
"ocaml""ocaml-solo5"
"opam-monorepo"]
url { src: "git+https://github.com/mirage/mirage-skeleton.git" }