[gnome-build-meta/tristan/gnome-boot: 12/15] Adding vm/desktop-vm.bst & vm/desktop-vm-image-x86_64.bst
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/tristan/gnome-boot: 12/15] Adding vm/desktop-vm.bst & vm/desktop-vm-image-x86_64.bst
- Date: Tue, 4 Jun 2019 10:37:24 +0000 (UTC)
commit 59ad3c2f8763c3ec47e4fb2537e0be308ce4fca4
Author: Tristan Van Berkom <tristan vanberkom codethink co uk>
Date: Fri May 3 16:54:31 2019 +0900
Adding vm/desktop-vm.bst & vm/desktop-vm-image-x86_64.bst
These collect artifacts from freedesktop-sdk and GNOME core
modules to assemble a bootable VM image for x86_64 platforms.
elements/vm/desktop-vm-image-x86_64.bst | 43 ++++++++++++++++++++++
elements/vm/desktop-vm.bst | 64 +++++++++++++++++++++++++++++++++
2 files changed, 107 insertions(+)
---
diff --git a/elements/vm/desktop-vm-image-x86_64.bst b/elements/vm/desktop-vm-image-x86_64.bst
new file mode 100644
index 00000000..db150a01
--- /dev/null
+++ b/elements/vm/desktop-vm-image-x86_64.bst
@@ -0,0 +1,43 @@
+kind: x86image
+description: Create a deployment of the desktop image
+depends:
+- filename: vm/desktop-vm.bst
+ type: build
+- filename: vm/deploy-tools.bst
+ junction: freedesktop-sdk.bst
+ type: build
+
+variables:
+ # Size of the disk to create
+ #
+ # Should be able to calculate this based on the space
+ # used, however it must be a multiple of (63 * 512) bytes
+ # as mtools wants a size that is devisable by sectors (512 bytes)
+ # per track (63).
+ #
+ # This is the smallest boot partition I managed to make.
+ boot-size: 38912K
+
+ rootfs-size: 20G
+ sector-size: 512
+ swap-size: 40K
+
+ kernel-args: root=/dev/sda2 rootfstype=ext4 init=/usr/lib/systemd/systemd console=ttyS0
+
+config:
+ base: vm/deploy-tools.bst
+ input: vm/desktop-vm.bst
+
+ filesystem-tree-setup-commands:
+ (<):
+ - mkdir -p %{build-root}/dev
+ - mkdir -p %{build-root}/proc
+
+ final-commands:
+ (>):
+ - |
+ cat > %{install-root}/run-in-qemu.sh << EOF
+ #!/bin/sh
+ qemu-system-x86_64 -drive file=sda.img,format=raw -enable-kvm -m 2G -vga virtio -display sdl,gl=on
-usb -usbdevice tablet
+ EOF
+ chmod +x %{install-root}/run-in-qemu.sh
diff --git a/elements/vm/desktop-vm.bst b/elements/vm/desktop-vm.bst
new file mode 100644
index 00000000..3a9d8286
--- /dev/null
+++ b/elements/vm/desktop-vm.bst
@@ -0,0 +1,64 @@
+kind: compose
+
+depends:
+- filename: vm/base-filesystem.bst
+ junction: freedesktop-sdk.bst
+ type: build
+- filename: sdk.bst
+ junction: freedesktop-sdk.bst
+ type: build
+- filename: components/util-linux.bst
+ junction: freedesktop-sdk.bst
+ type: build
+- filename: components/man-db-generate.bst
+ junction: freedesktop-sdk.bst
+ type: build
+- filename: split-locales.bst
+ junction: freedesktop-sdk.bst
+ type: build
+- filename: split-docs.bst
+ junction: freedesktop-sdk.bst
+ type: build
+- filename: components/tzdata.bst
+ junction: freedesktop-sdk.bst
+ type: build
+- filename: vm/bsp-generic.bst
+ junction: freedesktop-sdk.bst
+ type: build
+- filename: vm/initramfs/initramfs-gz.bst
+ junction: freedesktop-sdk.bst
+ type: build
+- filename: components/systemd.bst
+ junction: freedesktop-sdk.bst
+ type: build
+- filename: components/xorg-server.bst
+ junction: freedesktop-sdk.bst
+ type: build
+- filename: vm/linux-vm-boot/shadow.bst
+ junction: freedesktop-sdk.bst
+ type: build
+- filename: vm/systemd-firstboot-integration.bst
+ junction: freedesktop-sdk.bst
+ type: build
+- filename: vm/mesa-default.bst
+ junction: freedesktop-sdk.bst
+ type: build
+
+# And add GNOME core on top !
+- filename: sdk.bst
+ type: build
+- filename: core.bst
+ type: build
+
+# Hmm lets create a huge image for now, I don't trust the splits
+# config:
+# include:
+# - runtime
+
+public:
+ bst:
+ split-rules:
+ docs:
+ - '%{datadir}/runtime/docs/**'
+ locale:
+ - '%{datadir}/runtime/locale/**'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]