[gnome-build-meta/valentindavid/eos-installer: 12/12] Patch freedesktop SDK



commit 846e8113cd3c2d9c2edd059be852c0d843c0d064
Author: Valentin David <valentin david codethink co uk>
Date:   Wed Feb 26 13:14:59 2020 +0100

    Patch freedesktop SDK

 elements/freedesktop-sdk.bst                    |  4 ++++
 files/freedesktop-sdk/kernel-live-boot.patch    | 25 +++++++++++++++++++++++++
 files/freedesktop-sdk/prepare-image-param.patch | 21 +++++++++++++++++++++
 3 files changed, 50 insertions(+)
---
diff --git a/elements/freedesktop-sdk.bst b/elements/freedesktop-sdk.bst
index 50147d49..39ad490c 100644
--- a/elements/freedesktop-sdk.bst
+++ b/elements/freedesktop-sdk.bst
@@ -4,6 +4,10 @@ sources:
   url: https://gitlab.com/freedesktop-sdk/freedesktop-sdk.git
   track: 19.08
   track-tags: true
+- kind: patch
+  path: files/freedesktop-sdk/kernel-live-boot.patch
+- kind: patch
+  path: files/freedesktop-sdk/prepare-image-param.patch
 config:
   options:
     target_arch: '%{arch}'
diff --git a/files/freedesktop-sdk/kernel-live-boot.patch b/files/freedesktop-sdk/kernel-live-boot.patch
new file mode 100644
index 00000000..ada62063
--- /dev/null
+++ b/files/freedesktop-sdk/kernel-live-boot.patch
@@ -0,0 +1,25 @@
+commit 767540ecb079311e568d1db9eeae5e3533b68f1d
+Author: Valentin David <valentin david codethink co uk>
+Date:   Wed Feb 26 13:08:11 2020 +0100
+
+    components/linux.bst: Enable features required for live boots
+    
+    This will be used in GNOMEOS's installer.
+
+diff --git a/elements/components/linux.bst b/elements/components/linux.bst
+index 7e4aee720..a9375aa04 100644
+--- a/elements/components/linux.bst
++++ b/elements/components/linux.bst
+@@ -123,6 +123,12 @@ config:
+     # Sound with QEMU
+     scripts/config -e SND_HDA_GENERIC
+ 
++    # Required for live boot
++    scripts/config -e SQUASHFS
++    scripts/config -e SQUASHFS_ZLIB
++    scripts/config -e DM_SNAPSHOT
++    scripts/config -e OVERLAY_FS
++
+   build-commands:
+   - |
+     make
diff --git a/files/freedesktop-sdk/prepare-image-param.patch b/files/freedesktop-sdk/prepare-image-param.patch
new file mode 100644
index 00000000..22feaab0
--- /dev/null
+++ b/files/freedesktop-sdk/prepare-image-param.patch
@@ -0,0 +1,21 @@
+commit 7e379e75c88aeb4d4d4c4c32d01eb77f21d265db
+Author: Valentin David <valentin david codethink co uk>
+Date:   Wed Feb 26 13:09:50 2020 +0100
+
+    prepare-image.sh: Fix ignored last parameter
+    
+    The last parameter was ignored.
+
+diff --git a/files/vm/prepare-image.sh b/files/vm/prepare-image.sh
+index fe465ded3..df6296f9b 100755
+--- a/files/vm/prepare-image.sh
++++ b/files/vm/prepare-image.sh
+@@ -11,7 +11,7 @@ rootfstype="ext4"
+ rootfsopts="errors=remount-ro,relatime"
+ root_source=
+ 
+-while [ $# -gt 1 ]; do
++while [ $# -gt 0 ]; do
+     param="$1"
+     shift
+     case "${param}" in


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]