142 lines
5.4 KiB
Plaintext
142 lines
5.4 KiB
Plaintext
#@TYPE: Machine
|
|
#@NAME: stm32mp157c-dcm
|
|
#@DESCRIPTION: Configuration for STM32MP157C DCM custom board
|
|
#@NEEDED_BSPLAYERS: meta-st-stm32mp
|
|
|
|
require include/st-machine-common-stm32mp.inc
|
|
require include/st-machine-providers-stm32mp.inc
|
|
|
|
# Define specific common machine name
|
|
MACHINEOVERRIDES .= ":stm32mp1common:stm32mp15common:stm32mpcommon"
|
|
|
|
# =========================================================================
|
|
# Chip architecture
|
|
# =========================================================================
|
|
DEFAULTTUNE = "cortexa7thf-neon-vfpv4"
|
|
include conf/machine/include/arm/armv7a/tune-cortexa7.inc
|
|
|
|
# =========================================================================
|
|
# boot scheme
|
|
# =========================================================================
|
|
BOOTSCHEME_LABELS += "optee"
|
|
DEFAULT_BOOTSCHEME = "optee"
|
|
|
|
# =========================================================================
|
|
# boot device
|
|
# =========================================================================
|
|
BOOTDEVICE_LABELS += "emmc"
|
|
BOOTDEVICE_LABELS += "sdcard"
|
|
#DEFAULT_BOOTDEVICE = "emmc"
|
|
|
|
# =========================================================================
|
|
# Machine settings
|
|
# =========================================================================
|
|
# Define list of devicetree per board
|
|
STM32MP_DT_FILES_EMMC += "stm32mp157c-dcm"
|
|
STM32MP_DT_FILES_SDCARD += "stm32mp157c-dcm"
|
|
|
|
# Define kernel devicetree
|
|
STM32MP_KERNEL_DEVICETREE += "stm32mp157c-dcm.dtb"
|
|
|
|
# =========================================================================
|
|
# Machine features
|
|
# =========================================================================
|
|
MACHINE_FEATURES += "splashscreen"
|
|
MACHINE_FEATURES += "watchdog"
|
|
MACHINE_FEATURES += "gpu"
|
|
MACHINE_FEATURES += "bluetooth"
|
|
MACHINE_FEATURES += "wifi"
|
|
MACHINE_FEATURES += "optee"
|
|
|
|
# =========================================================================
|
|
# Device tree
|
|
# =========================================================================
|
|
KERNEL_DEVICETREE = "stm32mp157c-dcm.dtb"
|
|
UBOOT_DEVICE_TREE = "stm32mp157c-dcm"
|
|
OPTEE_DEVICE_TREE = "stm32mp157c-dcm"
|
|
|
|
# =========================================================================
|
|
# FIP Configuration
|
|
# =========================================================================
|
|
# Define FIP configurations for DCM board - Use OP-TEE instead of TF-A BL32
|
|
FIP_CONFIG[optee-emmc] = "optee,stm32mp157c-dcm,optee-emmc"
|
|
FIP_CONFIG[optee-sdcard] = "optee,stm32mp157c-dcm,optee-sdcard"
|
|
|
|
# Set default FIP configuration to use OP-TEE with SD-Card
|
|
FIP_CONFIG = "optee-sdcard"
|
|
|
|
# Define SOC name for FIP tools
|
|
STM32MP_SOC_NAME = "stm32mp15"
|
|
|
|
# =========================================================================
|
|
# Machine specific software/packages
|
|
# =========================================================================
|
|
# Define the root filesystem image type to be used
|
|
IMAGE_CLASSES += "image_types"
|
|
IMAGE_FSTYPES:append = " tar.xz ext4"
|
|
|
|
# =========================================================================
|
|
# bootloader
|
|
# =========================================================================
|
|
# Define U-Boot provider
|
|
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-stm32mp"
|
|
PREFERRED_PROVIDER_u-boot = "u-boot-stm32mp"
|
|
|
|
# Use UBOOT_CONFIG for STM32MP (this is the correct way for ST layers)
|
|
UBOOT_CONFIG = "stm32mp157c-dcm"
|
|
UBOOT_CONFIG[stm32mp157c-dcm] = "stm32mp15_defconfig,stm32mp157c-dcm,u-boot.dtb"
|
|
|
|
# U-Boot Extlinux configuration for SD-Card boot
|
|
UBOOT_EXTLINUX = "1"
|
|
UBOOT_EXTLINUX_LABELS ??= "stm32mp157c-dcm"
|
|
UBOOT_EXTLINUX_DEFAULT_LABEL ??= "stm32mp157c-dcm"
|
|
UBOOT_EXTLINUX_ROOT ??= "root=/dev/mmcblk1p6"
|
|
|
|
# U-Boot binary settings
|
|
SPL_BINARY = "spl/u-boot-spl.stm32"
|
|
UBOOT_SUFFIX = "img"
|
|
|
|
# =========================================================================
|
|
# TF-A (Trusted Firmware-A) Configuration
|
|
# =========================================================================
|
|
PREFERRED_PROVIDER_virtual/trusted-firmware-a = "tf-a-stm32mp"
|
|
|
|
# TF-A Configuration - Required by FIP system
|
|
TF_A_CONFIG = "stm32mp157c-dcm"
|
|
TF_A_CONFIG[stm32mp157c-dcm] = "stm32mp1,stm32mp157c-dcm"
|
|
|
|
# =========================================================================
|
|
# OP-TEE Configuration (Required by FIP system)
|
|
# =========================================================================
|
|
PREFERRED_PROVIDER_virtual/optee-os = "optee-os-stm32mp"
|
|
|
|
# OP-TEE Configuration - Use only the board-specific DTS that exists
|
|
OPTEE_CONFIG = "stm32mp157c-dcm"
|
|
OPTEE_CONFIG[stm32mp157c-dcm] = "stm32mp157c-dcm"
|
|
|
|
# =========================================================================
|
|
# Kernel
|
|
# =========================================================================
|
|
# Kernel config
|
|
KERNEL_DEFCONFIG = "stm32_defconfig"
|
|
KERNEL_CONFIG_FRAGMENTS += "${WORKDIR}/fragment-01-dcm.config"
|
|
PREFERRED_PROVIDER_virtual/kernel = "linux-stm32mp-dcm"
|
|
|
|
# =========================================================================
|
|
# Serial console
|
|
# =========================================================================
|
|
SERIAL_CONSOLES = "115200;ttySTM0"
|
|
SERIAL_CONSOLE = "115200 ttySTM0"
|
|
|
|
# =========================================================================
|
|
# Extra settings for DCM
|
|
# =========================================================================
|
|
# Ship all kernel modules by default
|
|
MACHINE_EXTRA_RRECOMMENDS = " kernel-modules"
|
|
|
|
# Don't include kernels in standard images
|
|
RDEPENDS:${KERNEL_PACKAGE_NAME}-base = ""
|
|
|
|
# EULA Akzeptanz für diese Machine
|
|
ACCEPT_EULA_stm32mp157c-dcm = "1"
|