49 lines
1.8 KiB
PHP
49 lines
1.8 KiB
PHP
# cn913x is from Marvell octeon tx2 family, but it's based on a cortex-A72
|
|
# so we can't use the armv8-2a/tune-octeontx2.inc (armv8a vs arm8-2a)
|
|
# instead we can use the older octeontx family previously known as thunderx
|
|
require conf/machine/include/arm/armv8a/tune-thunderx.inc
|
|
|
|
# SOC_FAMILY is added to MACHINE_OVERRIDES in the soc-family.inc file
|
|
SOC_FAMILY = "cn913x"
|
|
require conf/machine/include/soc-family.inc
|
|
|
|
# Bootloader configuration
|
|
# *****************************************************************************
|
|
|
|
PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
|
|
PREFERRED_VERSION_u-boot ?= "2020.10-marvell"
|
|
|
|
# Kernel configuration
|
|
# ******************************************************************************
|
|
|
|
PREFERRED_PROVIDER_virtual/kernel ?= "linux-nitroc"
|
|
PREFERRED_VERSION_linux-netmodule ?= "v6.6.y%"
|
|
PREFERRED_VERSION_trusted-firmware-a ?= "2.9-nitroc"
|
|
|
|
KERNEL_IMAGETYPE = "Image"
|
|
|
|
# getty configuration
|
|
# ******************************************************************************
|
|
|
|
SERIAL_CONSOLES = "115200;ttyS0 115200;ttyAMA0"
|
|
SERIAL_CONSOLES_CHECK ?= "${SERIAL_CONSOLES}"
|
|
APPEND += "console=ttyS0,115200"
|
|
|
|
# Image generation
|
|
# ******************************************************************************
|
|
|
|
# Ensure that both flash-image.bin and boot.scr are generated as they are needed
|
|
# for a wic image
|
|
do_image_wic[depends] += "trusted-firmware-a:do_deploy"
|
|
WKS_FILE = "cn913x-sdcard.wks.in"
|
|
COREOS_INSTALLER_WKS_FILE ?= "cn913x-sdcard-installer.wks"
|
|
IMAGE_FSTYPES += "wic.xz wic.bmap"
|
|
|
|
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += " kernel-modules"
|
|
COREOS_IMAGE_SWUPDATE_EXTRACLASSES += " coreos-image-swupdate-cn913x"
|
|
|
|
# No watchdog available yet
|
|
EFIBOOTGUARD_TIMEOUT ?= "0"
|
|
require conf/machine/include/coreos-generic-features/efi.inc
|
|
require conf/machine/include/coreos-generic-features/partitions.inc
|