| #@TYPE: Machine |
| #@NAME: genericarm64 |
| #@DESCRIPTION: Generic Arm64 machine for typical SystemReady platforms, which |
| #have working firmware and boot via EFI. |
| |
| require conf/machine/include/arm/arch-armv8a.inc |
| |
| # Arm Base System Architecture says v8.0+ is allowed, but FEAT_CRC32 is required |
| DEFAULTTUNE = "armv8a-crc" |
| |
| MACHINE_FEATURES = "acpi alsa bluetooth efi keyboard pci qemu-usermode rtc screen usbhost vfat wifi" |
| |
| # Install all the kernel modules and all the firmware |
| MACHINE_EXTRA_RRECOMMENDS += "kernel-modules linux-firmware" |
| |
| KERNEL_IMAGETYPE = "Image" |
| PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto" |
| |
| # Use an initramfs and populate it with the kernel modules |
| INITRAMFS_IMAGE ?= "core-image-initramfs-boot" |
| PACKAGE_INSTALL:append:pn-core-image-initramfs-boot = " kernel-modules" |
| |
| IMAGE_FSTYPES ?= "wic" |
| WKS_FILE ?= "genericarm64.wks.in" |
| |
| EFI_PROVIDER ?= "${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd-boot", "grub-efi", d)}" |
| |
| # Try to bring up one physical serial console, or a virtualized serial console |
| SERIAL_CONSOLES ?= "115200;ttyAMA0 115200;hvc0" |