#@TYPE: Machine
#@NAME: stm32mp15 dhcor custom board
#@SOC:  ST STM32MP157
#@DESCRIPTION: Machine configuration for custom board

# Define specific familly common machine name
MACHINEOVERRIDES .= ":stm32mp1common:stm32mp15common:dh-stm32mp1-dhcor-custom"
MACHINEOVERRIDES =. ":stm32mp1custom"

include conf/machine/include/st-machine-providers-stm32mp.inc
include conf/machine/include/st-machine-common-stm32mp.inc

# =========================================================================
# Chip architecture
# =========================================================================
DEFAULTTUNE = "cortexa7thf-neon-vfpv4"
include conf/machine/include/arm/armv7a/tune-cortexa7.inc

# =========================================================================
# boot scheme
# =========================================================================
BOOTSCHEME_LABELS += "optee"

# =========================================================================
# boot device
# =========================================================================
# Define the boot device supported
BOOTDEVICE_LABELS += "sdcard"

# =========================================================================
# Machine settings
# =========================================================================
# Define list of devicetree per supported storage
STM32MP_DT_FILES_SDCARD += "stm32mp157c-dhcor-custom"

# =========================================================================
# Machine features
# =========================================================================
MACHINE_FEATURES += "fit"
MACHINE_FEATURES:remove = "fw-update"
MACHINE_EXTRA_RRECOMMENDS:remove = "kernel-imagebootfs"

# =========================================================================
# Image
# =========================================================================
unset IMAGE_ROOTFS_MAXSIZE
ENABLE_PARTITIONS_IMAGE = "0"
WKS_IMAGE_FSTYPES = "wic.xz wic.bmap"
IMAGE_BOOT_FILES ?= "kernel/${KERNEL_IMAGETYPE}-initramfs;fitImage"
