blob: 83f1aca137ae8d55e8fa1b6701d2cde0715fd268 [file] [log] [blame]
Patrick Williamsb58112e2024-03-07 11:16:36 -06001#@TYPE: Machine
2#@NAME: genericarm64
3#@DESCRIPTION: Generic Arm64 machine for typical SystemReady platforms, which
4#have working firmware and boot via EFI.
5
6require conf/machine/include/arm/arch-armv8a.inc
7
8# Arm Base System Architecture says v8.0+ is allowed, but FEAT_CRC32 is required
9DEFAULTTUNE = "armv8a-crc"
10
11MACHINE_FEATURES = "acpi alsa bluetooth efi keyboard pci qemu-usermode rtc screen usbhost vfat wifi"
12
13# Install all the kernel modules and all the firmware
14MACHINE_EXTRA_RRECOMMENDS += "kernel-modules linux-firmware"
15
16KERNEL_IMAGETYPE = "Image"
17PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
18
19# Use an initramfs and populate it with the kernel modules
20INITRAMFS_IMAGE ?= "core-image-initramfs-boot"
21PACKAGE_INSTALL:append:pn-core-image-initramfs-boot = " kernel-modules"
22
23IMAGE_FSTYPES ?= "wic"
24WKS_FILE ?= "genericarm64.wks.in"
25
26EFI_PROVIDER ?= "${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd-boot", "grub-efi", d)}"
27
28# Try to bring up one physical serial console, or a virtualized serial console
29SERIAL_CONSOLES ?= "115200;ttyAMA0 115200;hvc0"