Patrick Williams | b58112e | 2024-03-07 11:16:36 -0600 | [diff] [blame] | 1 | #@TYPE: Machine |
| 2 | #@NAME: genericarm64 |
| 3 | #@DESCRIPTION: Generic Arm64 machine for typical SystemReady platforms, which |
| 4 | #have working firmware and boot via EFI. |
| 5 | |
| 6 | require conf/machine/include/arm/arch-armv8a.inc |
| 7 | |
| 8 | # Arm Base System Architecture says v8.0+ is allowed, but FEAT_CRC32 is required |
| 9 | DEFAULTTUNE = "armv8a-crc" |
| 10 | |
| 11 | MACHINE_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 |
| 14 | MACHINE_EXTRA_RRECOMMENDS += "kernel-modules linux-firmware" |
| 15 | |
| 16 | KERNEL_IMAGETYPE = "Image" |
| 17 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" |
| 18 | |
| 19 | # Use an initramfs and populate it with the kernel modules |
| 20 | INITRAMFS_IMAGE ?= "core-image-initramfs-boot" |
| 21 | PACKAGE_INSTALL:append:pn-core-image-initramfs-boot = " kernel-modules" |
| 22 | |
| 23 | IMAGE_FSTYPES ?= "wic" |
| 24 | WKS_FILE ?= "genericarm64.wks.in" |
| 25 | |
| 26 | EFI_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 |
| 29 | SERIAL_CONSOLES ?= "115200;ttyAMA0 115200;hvc0" |