[gnome-build-meta/gnome-43] Refactor genimage to match other boards
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/gnome-43] Refactor genimage to match other boards
- Date: Sun, 25 Sep 2022 14:33:31 +0000 (UTC)
commit a4c6d1e9df721b682223044c623efc9f7887dccc
Author: Lawrence Hunter <lawrence hunter codethink co uk>
Date: Mon Aug 29 20:18:58 2022 +0100
Refactor genimage to match other boards
Part-of: <https://gitlab.gnome.org/GNOME/gnome-build-meta/-/merge_requests/1731>
elements/boards/pinephone/image.bst | 24 +++++++++---------------
1 file changed, 9 insertions(+), 15 deletions(-)
---
diff --git a/elements/boards/pinephone/image.bst b/elements/boards/pinephone/image.bst
index 69c909aa9..fd6e5b919 100644
--- a/elements/boards/pinephone/image.bst
+++ b/elements/boards/pinephone/image.bst
@@ -6,7 +6,7 @@ build-depends:
- boards/pinephone/linux.bst
variables:
- linux-root: b921b045-1df0-41c3-af44-4c6f280d3fae
+ linux-root: B921B045-1DF0-41C3-AF44-4C6F280D3FAE
ostree-branch: gnome-os/aarch64/pinephone
board: pinephone
@@ -24,14 +24,12 @@ config:
layout:
- element: ''
destination: '/sysroot'
- - element: components/genimage.bst
- destination: '/'
+ - element: ''
+ destination: '/genimage'
- element: boards/pinephone/repo.bst
destination: '/source-repo'
- element: boards/pinephone/image-deps.bst
destination: '/'
- - element: core-deps/libostree.bst
- destination: '/'
- element: boards/pinephone/linux.bst
destination: '/kernel'
@@ -73,7 +71,7 @@ config:
- |
size=$(($(du -s -B 4K "%{sysroot}" | cut -f1)*4+200*1024))
- cat >%{install-root}/genimage.cfg <<EOF
+ cat >/genimage/genimage.cfg <<EOF
image efi.img {
vfat {
extraargs = "-F32 -n EFI"
@@ -115,12 +113,8 @@ config:
EOF
- |
- cd %{install-root}
- genimage --rootpath "%{sysroot}" --inputpath "%{indep-libdir}/u-boot/pinephone/"
- mv images/disk.img .
- rm -rf genimage.cfg images/ tmp/
-
-
- - sfdisk --part-attrs %{install-root}/disk.img 2 55
-
- - xz ${XZFLAGS} %{install-root}/disk.img
+ cd /genimage
+ genimage --rootpath "%{sysroot}" --inputpath "%{indep-libdir}/u-boot/%{board}"
+ sfdisk --part-attrs /genimage/images/disk.img 2 55
+ mv /genimage/images/disk.img %{install-root}/disk.img
+ xz ${XZFLAGS} %{install-root}/disk.img
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]