From 86dc09602f8abf86057a0b7b4ac571b995ee5acd Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Thu, 27 May 2021 12:10:34 +0100
Subject: [PATCH] x-efi-systemd-microcode.wks.in: Add wic configuration for
 seco-intel-b68

The configuration is based on systemd-bootdisk.wks but with our common
partition layout.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 .../wic/x-efi-systemd-microcode.wks.in        | 26 +++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 meta-ohos-core/wic/x-efi-systemd-microcode.wks.in

diff --git a/meta-ohos-core/wic/x-efi-systemd-microcode.wks.in b/meta-ohos-core/wic/x-efi-systemd-microcode.wks.in
new file mode 100644
index 00000000..fac9e0d5
--- /dev/null
+++ b/meta-ohos-core/wic/x-efi-systemd-microcode.wks.in
@@ -0,0 +1,26 @@
+# SPDX-FileCopyrightText: Huawei Inc.
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# short-description: Create an EFI disk image with systemd-boot
+# long-description: Creates a partitioned EFI disk image that the user
+# can directly dd to boot media. The selected bootloader is systemd-boot.
+# It also includes intel-microcode as an initrd for early update support.
+# Based on OE-core's systemd-bootdisk.wks file.
+#
+# Disk layout:
+#  -- -------- --------- --------- ------------ ------------ ------------
+# |  | x-boot | x-sys-a | x-sys-b | x-dev-data | x-sys-data | x-app-data |
+#  -- -------- --------- --------- ------------ ------------ ------------
+# ^  ^
+# |  |
+# 0  4096KiB
+
+bootloader --ptable gpt --timeout=5 --append=" rootfstype=ext4 "
+
+part --source bootimg-efi --sourceparams="loader=systemd-boot,initrd=microcode.cpio" --label x-boot --align 4096 --fixed-size ${BOOT_PARTITION_SIZE} --active --offset 4096
+${WIC_ROOTA_PARTITION}
+${WIC_ROOTB_PARTITION}
+${WIC_DEVICEDATA_PARTITION}
+${WIC_SYSDATA_PARTITION}
+${WIC_APPDATA_PARTITION}
-- 
GitLab