[gnome-build-meta/abderrahim/gnome-boot: 1/5] Testing commit
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/abderrahim/gnome-boot: 1/5] Testing commit
- Date: Thu, 2 May 2019 06:15:23 +0000 (UTC)
commit 1dff5d4bc33df4867af636bb9ed8d4b9f49bbb0d
Author: Tristan Van Berkom <tristan vanberkom codethink co uk>
Date: Mon Mar 25 18:14:04 2019 +0900
Testing commit
elements/vm/desktop-vm-image-x86_64.bst | 43 ++++++++++++++++++++++++
elements/vm/desktop-vm.bst | 59 +++++++++++++++++++++++++++++++++
project.conf | 1 +
3 files changed, 103 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..6663a29c
--- /dev/null
+++ b/elements/vm/desktop-vm.bst
@@ -0,0 +1,59 @@
+kind: compose
+
+depends:
+- filename: vm/base-filesystem.bst
+ junction: freedesktop-sdk.bst
+ type: build
+- filename: desktop.bst
+ junction: freedesktop-sdk.bst
+ type: build
+- filename: base/util-linux.bst
+ junction: freedesktop-sdk.bst
+ type: build
+- filename: base/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: base/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: desktop/systemd.bst
+ junction: freedesktop-sdk.bst
+ type: build
+- filename: vm/linux-vm-boot/shadow.bst
+ junction: freedesktop-sdk.bst
+ type: build
+- filename: vm/linux-vm-boot/weston.bst
+ junction: freedesktop-sdk.bst
+ type: build
+- filename: vm/systemd-firstboot-integration.bst
+ junction: freedesktop-sdk.bst
+ type: build
+
+# And add GNOME core on top !
+- 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/**'
diff --git a/project.conf b/project.conf
index b6f45cff..ed1ae6a8 100644
--- a/project.conf
+++ b/project.conf
@@ -309,3 +309,4 @@ plugins:
flatpak_image: 0
flatpak_repo: 0
collect_manifest: 0
+ x86image: 0
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]