stubdom: remove caml-stubdom
PATCH v2 1/1 stubdom: remove caml-stubdom
In order to build caml-stubdom, it must be explicitly enabled via "configure --enable-caml-stubdom". The build process is failing due to stubdom/ocaml.patch failing to apply. Since the patched file has been modified in 2014 the last time, it seems nobody cares for caml-stubdom since at least then.
Remove caml-stubdom from the build system.
---
V2:
- add CHANGELOG entry (Andrew Cooper)
--- CHANGELOG.md | 2 ++ INSTALL | 1 - stubdom/Makefile | 52 ------------------------------------- stubdom/caml/Makefile | 24 ----------------- stubdom/caml/hello.ml | 4 --- stubdom/caml/main-caml.c | 42 ------------------------------ stubdom/caml/minios.cfg | 0 stubdom/configure | 56 ---------------------------------------- stubdom/configure.ac | 2 -- stubdom/ocaml.patch | 19 -------------- 10 files changed, 2 insertions(+), 200 deletions(-) delete mode 100644 stubdom/caml/Makefile delete mode 100644 stubdom/caml/hello.ml delete mode 100644 stubdom/caml/main-caml.c delete mode 100644 stubdom/caml/minios.cfg delete mode 100644 stubdom/ocaml.patch
CHANGELOG.md +2 -0
@@ -14,6 +14,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) for IPIs and Physical addressing mode for external interrupts. ### Removed +- caml-stubdom has been removed. It didn't build since 2014, so nobody seems + to care. ## [4.18.0](https://xenbits.xenproject.org/gitweb/?p=xen.git;a=shortlog;h=RELEASE-4.18.0) - 2023-11-16
INSTALL +0 -1
@@ -163,7 +163,6 @@ Build various stubom components, some are only example code. Its usually enough to specify just --enable-stubdom and leave these options alone. --enable-ioemu-stubdom --enable-c-stubdom - --enable-caml-stubdom --disable-pv-grub --disable-xenstore-stubdom --enable-vtpm-stubdom
stubdom/Makefile +0 -52
99 lines not on this page · raw message
stubdom/caml/Makefile deleted +0 -24
@@ -1,24 +0,0 @@ -XEN_ROOT = $(CURDIR)/../.. - -ifeq (,$(findstring clean,$(MAKECMDGOALS))) -include $(XEN_ROOT)/Config.mk -endif - -CAMLLIB = $(shell $(OCAMLC_CROSS_PREFIX)ocamlc -where) -DEF_CPPFLAGS += -I$(CAMLLIB) - -OCAMLOPT=$(OCAMLC_CROSS_PREFIX)ocamlopt - -OBJS := hello.cmx -LIBS := - -all: main-caml.o caml.o - -%.cmx: %.ml - $(OCAMLOPT) -c $< -o $@ - -caml.o: $(OBJS) - $(OCAMLOPT) $(LIBS) $^ -output-obj -o $@ - -clean: - rm -f *.a *.o *.cmx *.cmi
stubdom/caml/hello.ml deleted +0 -4
@@ -1,4 +0,0 @@ -let main arg = - Printf.printf "Hello, world!\n%!." - -let _ = Callback.register "main" main
stubdom/caml/main-caml.c deleted +0 -42
42 lines not on this page · raw message
stubdom/caml/minios.cfg deleted +0 -0
stubdom/configure +0 -56
104 lines not on this page · raw message
stubdom/configure.ac +0 -2
@@ -20,7 +20,6 @@ m4_include([../m4/fetcher.m4]) # Enable/disable stub domains AX_STUBDOM_CONDITIONAL([ioemu-stubdom], [ioemu]) AX_STUBDOM_DEFAULT_DISABLE([c-stubdom], [c]) -AX_STUBDOM_DEFAULT_DISABLE([caml-stubdom], [caml]) AX_STUBDOM_DEFAULT_DISABLE([pv-grub], [grub]) AX_STUBDOM_DEFAULT_ENABLE([xenstore-stubdom], [xenstore]) AX_STUBDOM_DEFAULT_ENABLE([xenstorepvh-stubdom], [xenstorepvh])
@@ -60,7 +59,6 @@ AX_STUBDOM_LIB([LIBPCI], [libpci], [2.2.9], [https://mirrors.edge.kernel.org/pub AX_STUBDOM_LIB([NEWLIB], [newlib], [1.16.0], [https://sourceware.org/ftp/newlib]) AX_STUBDOM_LIB([LWIP], [lwip], [1.3.0], [https://download.savannah.gnu.org/releases/lwip]) AX_STUBDOM_LIB([GRUB], [grub], [0.97], [https://alpha.gnu.org/gnu/grub]) -AX_STUBDOM_LIB_NOEXT([OCAML], [ocaml], [4.02.0], [https://caml.inria.fr/pub/distrib/ocaml-4.02]) AX_STUBDOM_LIB([GMP], [libgmp], [4.3.2], [https://gmplib.org/download/gmp/archive]) AX_STUBDOM_LIB([POLARSSL], [polarssl], [1.1.4]) AX_STUBDOM_LIB([TPMEMU], [berlios tpm emulator], [0.7.4])
stubdom/ocaml.patch deleted +0 -19
@@ -1,19 +0,0 @@ ---- byterun/Makefile.orig 2009-04-07 12:14:02.000000000 +0100 -+++ byterun/Makefile 2009-04-07 12:13:50.000000000 +0100 -@@ -22,14 +22,14 @@ - DOBJS=$(OBJS:.o=.d.o) instrtrace.d.o - PICOBJS=$(OBJS:.o=.pic.o) - --#ifeq ($(SUPPORTS_SHARED_LIBRARIES),true) -+ifeq ($(SUPPORTS_SHARED_LIBRARIES),true) - - all:: libcamlrun_shared.so - - install:: - cp libcamlrun_shared.so $(LIBDIR)/libcamlrun_shared.so - --#endif -+endif - - ocamlrun$(EXE): libcamlrun.a prims.o - $(MKEXE) $(BYTECCLINKOPTS) -o ocamlrun$(EXE) \
Signature · 1 line
2.35.3
Hi Juergen,
Quoted 8 lines · Juergen Gross
In order to build caml-stubdom, it must be explicitly enabled via "configure --enable-caml-stubdom". The build process is failing due to
stubdom/ocaml.patchfailing to apply. Since the patched file has been modified in 2014 the last time, it seems nobody cares for caml-stubdom since at least then.
Quoted 8 lines
Remove caml-stubdom from the build system.
Signed-off-by Juergen Gross <[email protected]>---
V2:
- add CHANGELOG entry (Andrew Cooper)
---
CHANGELOG.md | 2 ++
Kind regards,
Henry
CHANGELOG.md The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · line 18
Quoted 10 lines · Juergen Gross
CHANGELOG.md +2
-0@@ -14,6 +14,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) for IPIs and Physical addressing mode for external interrupts. ### Removed +- caml-stubdom has been removed. It didn't build since 2014, so nobody seems + to care.
May I suggest some different phrasing.
"caml-stubdom. It hasn't built since 2014, was pinned to Ocaml 4.02, and has been superseded by the MirageOS/SOLO5 projects."
Also, one last ping to anyone Ocaml folks for any comment whatsoever.
~Andrew
Quoted 8 lines · Andrew Cooper
Quoted 7 lines · Juergen Gross
CHANGELOG.md +0
-0@@ -14,6 +14,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) for IPIs and Physical addressing mode for external interrupts.
Quoted 8 lines
CHANGELOG.md The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · line 18
Quoted 3 lines
CHANGELOG.md +2
-0### Removed +- caml-stubdom has been removed. It didn't build since 2014, so nobody seems + to care.May I suggest some different phrasing.
"caml-stubdom. It hasn't built since 2014, was pinned to Ocaml 4.02, and has been superseded by the MirageOS/SOLO5 projects."
Fine with me.
Juergen
Christian Lindig
Acked-byQuoted 19 lines · Juergen Gross
Quoted 13 lines · Andrew Cooper
CHANGELOG.md The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · line 17
Quoted 9 lines · Juergen Gross
CHANGELOG.md +2
-0@@ -14,6 +14,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) for IPIs and Physical addressing mode for external interrupts. ### Removed +- caml-stubdom has been removed. It didn't build since 2014, so nobody seems + to care.May I suggest some different phrasing.
"caml-stubdom. It hasn't built since 2014, was pinned to Ocaml 4.02, and has been superseded by the MirageOS/SOLO5 projects."
Quoted 5 lines
Fine with me.
Juergen
<OpenPGP_0xB0DE9DD628BF132F.asc>
I am fine with removing it as well.
— C
Quoted 18 lines · Andrew Cooper
CHANGELOG.md The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · line 18
Quoted 10 lines · Juergen Gross
CHANGELOG.md +2
-0@@ -14,6 +14,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) for IPIs and Physical addressing mode for external interrupts. ### Removed +- caml-stubdom has been removed. It didn't build since 2014, so nobody seems + to care.May I suggest some different phrasing.
Quoted 5 lines
"caml-stubdom. It hasn't built since 2014, was pinned to Ocaml 4.02, and has been superseded by the MirageOS/SOLO5 projects."
Also, one last ping to anyone Ocaml folks for any comment whatsoever.
I'm fine with removing it, seems to predate the Lwt based Mirage, and the way to cross-compile OCaml to unikernels is completely different now.
I think the latest way to use Mirage under Xen is to use Solo5 (which has Xen support and gives you a PVH domain).
https://mirage.io/blog/announcing-mirage-39-release
"The Xen backend has been re-written from scratch to be based on Solo5, and now supports PVHv2 on Xen 4.10 or higher, and QubesOS 4.0."
The mirage version of xenstore is here (a functor that can be instantiated on both Unix and Unikernel implementations and doesn't depend on Irmin): https://github.com/mirage/ocaml-xenstore
And I think the Unikernel instantiation of the Xenstore Server functor is here https://github.com/djs55/ocaml-xenstore-xen/blob/master/xen/src/server_xen.ml, but probably needs to be updated to work with newer versions of Mirage. I haven't got around to trying it out yet.
I never tried to use the unikernel build inside the Xen tree, it seems to be completely undocumented so I wouldn't know where to start.
The new way is shown here, and dune has some builtin support to make this easier: https://mirage.io/blog/2022-03-30.cross-compilation
Best regards,
--Edwin