89c245b97a
Add a defconfig to build an AArch64 U-Boot based firmware implementing the subset of UEFI defined by EBBR[1], as well as a Linux OS disk image booting with UEFI, to run on Qemu. The generated firmware binary can also be used to install or run another OS supporting the EBBR specification. We do not have Linux 5.19 headers at the moment therefore we rely on 5.17 in the defconfig. [1]: https://github.com/ARM-software/ebbr Signed-off-by: Vincent Stehlé <vincent.stehle@arm.com> Reviewed-by: Romain Naour <romain.naour@gmail.com> Reviewed-by: Giulio Benetti <giulio.benetti@benettiengineering.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
51 lines
1.5 KiB
Plaintext
51 lines
1.5 KiB
Plaintext
# Architecture
|
|
BR2_aarch64=y
|
|
|
|
# Image
|
|
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/qemu/post-image.sh board/qemu/aarch64-ebbr/post-image.sh support/scripts/genimage.sh"
|
|
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_DEFCONFIG) -c board/qemu/aarch64-ebbr/genimage.cfg"
|
|
|
|
# Linux headers
|
|
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_17=y
|
|
|
|
# Kernel
|
|
BR2_LINUX_KERNEL=y
|
|
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
|
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.19.8"
|
|
BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
|
|
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
|
|
|
|
# Packages
|
|
BR2_PACKAGE_OPTEE_CLIENT=y
|
|
|
|
# Filesystem
|
|
BR2_TARGET_ROOTFS_EXT2=y
|
|
BR2_TARGET_ROOTFS_EXT2_4=y
|
|
BR2_TARGET_ROOTFS_EXT2_SIZE="200M"
|
|
# BR2_TARGET_ROOTFS_TAR is not set
|
|
|
|
# Firmware and bootloader
|
|
BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
|
|
BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION=y
|
|
BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE="v2.7"
|
|
BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="qemu"
|
|
BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP=y
|
|
BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL32_OPTEE=y
|
|
BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33=y
|
|
BR2_TARGET_GRUB2=y
|
|
BR2_TARGET_OPTEE_OS=y
|
|
BR2_TARGET_OPTEE_OS_NEEDS_DTC=y
|
|
BR2_TARGET_OPTEE_OS_PLATFORM="vexpress-qemu_armv8a"
|
|
BR2_TARGET_UBOOT=y
|
|
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
|
|
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
|
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2022.07"
|
|
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="qemu_arm64"
|
|
BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="board/qemu/aarch64-ebbr/u-boot.config"
|
|
BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
|
|
|
|
# Host tools
|
|
BR2_PACKAGE_HOST_DOSFSTOOLS=y
|
|
BR2_PACKAGE_HOST_GENIMAGE=y
|
|
BR2_PACKAGE_HOST_MTOOLS=y
|