linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
commit c485db7d43fe2eb5d5480a34a69e5bd17c4aab40 parent ec25a689fbeeca43e57f045df159ef05d09d8785 Author: Jul <jul@9o.is> Date: Wed, 26 Nov 2025 02:58:44 -0500 build xl xen binary Diffstat:
| M | pkg/xen/gen.sh | | | 56 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| D | pkg/xen/xldevd.c | | | 43 | ------------------------------------------- |
2 files changed, 56 insertions(+), 43 deletions(-)
diff --git a/pkg/xen/gen.sh b/pkg/xen/gen.sh @@ -312,6 +312,62 @@ lib libxenlight.a --src-prefix tools/libs/light $libxenlight_cflags " $outdir/dsdt_pvh.c " +lib libxlutil.a --src-prefix tools/libs/util -I$outdir -Wno-unused-but-set-variable " + libxlu_cfg_y.c + libxlu_cfg_l.c + libxlu_cfg.c + libxlu_disk_l.c + libxlu_disk.c + libxlu_vif.c + libxlu_pci.c +" + +bin xl --src-prefix tools/xl -I$outdir -I$pkgdir/yajl/include -D__XEN_TOOLS__ -Wno-missing-field-initializers \ + -Wno-unused-but-set-variable -Wno-implicit-fallthrough " + xl.c + xl_cmdtable.c + xl_sxp.c + xl_utils.c + xl_psr.c + xl_parse.c + xl_cpupool.c + xl_flask.c + xl_vtpm.c + xl_block.c + xl_nic.c + xl_usb.c + xl_sched.c + xl_pci.c + xl_vcpu.c + xl_cdrom.c + xl_mem.c + xl_info.c + xl_console.c + xl_misc.c + xl_vmcontrol.c + xl_saverestore.c + xl_migrate.c + xl_vdispl.c + xl_vsnd.c + xl_vkb.c + $libdir/libxlutil.a + $libdir/libxenlight.a + $libdir/libxenguest.a + $libdir/libxenctrl.a + $libdir/libxenhypfs.a + $libdir/libxenstore.a + $libdir/libxendevicemodel.a + $libdir/libxenforeignmemory.a + $libdir/libxengnttab.a + $libdir/libxenevtchn.a + $libdir/libxencall.a + $libdir/libxentoollog.a + $libdir/libxentoolcore.a + $pkgdir/util-linux/libuuid.a.d + $pkgdir/zlib/libz.a + $pkgdir/yajl/yajl.a +" + host() { cflags -D__XEN_TOOLS__ -DCONFIG_X86 -I$srcdir/tools/include exe mk_dsdt tools/libacpi/mk_dsdt.c diff --git a/pkg/xen/xldevd.c b/pkg/xen/xldevd.c @@ -1,43 +0,0 @@ -#include <stdlib.h> -#include <xentoollog.h> - -typedef struct libxl__ctx libxl_ctx; -#define LIBXL_VERSION 0 -#define minmsglevel_default XTL_PROGRESS - -libxl_ctx *ctx; -xentoollog_logger_stdiostream *logger; -xentoollog_level minmsglevel = minmsglevel_default; - -void xl_ctx_alloc(void) -{ - if (libxl_ctx_alloc(&ctx, LIBXL_VERSION, 0, (xentoollog_logger*)logger)) { - fprintf(stderr, "cannot init xl context\n"); - exit(1); - } -} - -static void xl_ctx_free(void) -{ - if (ctx) { - libxl_ctx_free(ctx); - ctx = NULL; - } - if (logger) { - xtl_logger_destroy((xentoollog_logger*)logger); - logger = NULL; - } -} - -int main(int argc, char **argv) -{ - unsigned int xtl_flags = 0; - - logger = xtl_createlogger_stdiostream(stderr, minmsglevel, xtl_flags); - if (!logger) exit(EXIT_FAILURE); - - xl_ctx_alloc(); - atexit(xl_ctx_free); - - return libxl_device_events_handler(ctx, 0) ? EXIT_FAILURE : EXIT_SUCCESS; -}