@@ -12,17 +12,16 @@
header:
version: 10
includes:
- - kas/opt/efibootguard.yml
+ - kas/opt/ebg-swu.yml
local_conf_header:
- image-options-swupdate: |
- CIP_IMAGE_OPTIONS_append = " swupdate.inc"
-
secure-boot-image: |
IMAGE_CLASSES += "verity"
IMAGE_FSTYPES = "wic"
WKS_FILE = "${MACHINE}-efibootguard-secureboot.wks.in"
INITRAMFS_INSTALL_append = " initramfs-verity-hook"
+ # abrootfs cannot be installed together with verity
+ INITRAMFS_INSTALL_remove = " initramfs-abrootfs-hook"
secure-boot: |
IMAGER_BUILD_DEPS += "ebg-secure-boot-signer"
@@ -12,12 +12,24 @@
header:
version: 10
includes:
- - kas/opt/efibootguard.yml
- kas/opt/swupdate.yml
local_conf_header:
+ ebg_swu_bootloader: |
+ WKS_FILE ?= "${MACHINE}-efibootguard.wks.in"
+ SWUPDATE_BOOTLOADER = "efibootguard"
+ ebg_swu_image_options: |
+ CIP_IMAGE_OPTIONS_append = " efibootguard.inc image-uuid.inc"
initramfs: |
INITRAMFS_INSTALL_append = " initramfs-abrootfs-hook"
+ firmware-binaries: |
+ # Add ovmf binaries for qemu
+ IMAGER_BUILD_DEPS_append_qemu-amd64 += "ovmf-binaries"
+ # not needed for Debian 11 and later
+ OVERRIDES_append_qemu-amd64 = ":${BASE_DISTRO_CODENAME}"
+ DISTRO_APT_SOURCES_append_qemu-amd64_buster = " conf/distro/debian-buster-backports.list"
+ DISTRO_APT_PREFERENCES_append_qemu-amd64_buster = " conf/distro/preferences.ovmf-snakeoil.conf"
+ # Add U-Boot for qemu
+ IMAGER_BUILD_DEPS_append_qemu-arm64 += "u-boot-qemu-arm64"
+ IMAGER_BUILD_DEPS_append_qemu-arm += "u-boot-qemu-arm"
- image-option-uuid: |
- CIP_IMAGE_OPTIONS_append = " image-uuid.inc"
deleted file mode 100644
@@ -1,39 +0,0 @@
-#
-# CIP Core, generic profile
-#
-# Copyright (c) Siemens AG, 2020
-#
-# Authors:
-# Quirin Gylstorff <quirin.gylstorff@siemens.com>
-#
-# SPDX-License-Identifier: MIT
-#
-# This kas file adds efibootguard as the bootloader to the image
-
-header:
- version: 10
-
-local_conf_header:
- efibootguard: |
- IMAGE_INSTALL_append = " efibootguard"
-
- efibootguard-swupdate: |
- SWUPDATE_BOOTLOADER = "efibootguard"
-
- efibootguard-wic: |
- WIC_IMAGER_INSTALL_append = " efibootguard"
- WDOG_TIMEOUT ?= "60"
- WICVARS += "WDOG_TIMEOUT KERNEL_IMAGE INITRD_IMAGE DTB_FILES"
- IMAGE_FSTYPES ?= "wic"
- WKS_FILE ?= "${MACHINE}-efibootguard.wks.in"
-
- firmware-binaries: |
- # Add ovmf binaries for qemu
- IMAGER_BUILD_DEPS_append_qemu-amd64 += "ovmf-binaries"
- # not needed for Debian 11 and later
- OVERRIDES_append_qemu-amd64 = ":${BASE_DISTRO_CODENAME}"
- DISTRO_APT_SOURCES_append_qemu-amd64_buster = " conf/distro/debian-buster-backports.list"
- DISTRO_APT_PREFERENCES_append_qemu-amd64_buster = " conf/distro/preferences.ovmf-snakeoil.conf"
- # Add U-Boot for qemu
- IMAGER_BUILD_DEPS_append_qemu-arm64 += "u-boot-qemu-arm64"
- IMAGER_BUILD_DEPS_append_qemu-arm += "u-boot-qemu-arm"
new file mode 100644
@@ -0,0 +1,18 @@
+#
+# CIP Core, generic profile
+#
+# Copyright (c) Siemens AG, 2020
+#
+# Authors:
+# Quirin Gylstorff <quirin.gylstorff@siemens.com>
+#
+# SPDX-License-Identifier: MIT
+#
+
+IMAGE_INSTALL_append = " efibootguard"
+
+WIC_IMAGER_INSTALL_append = " efibootguard"
+WDOG_TIMEOUT ?= "60"
+WICVARS += "WDOG_TIMEOUT KERNEL_IMAGE INITRD_IMAGE DTB_FILES"
+IMAGE_FSTYPES += "wic"
+