conf/machine/ac7020c-sdt.conf
#@TYPE: Machine
#@NAME: ac7020c-sdt
#@DESCRIPTION: Machine configuration for the ac7020c-sdt boards.
BBMULTICONFIG += "ac7020c-sdt-cortexa9-fsbl"
#### Preamble
MACHINEOVERRIDES =. "${@['', 'ac7020c-sdt:']['ac7020c-sdt' !='${MACHINE}']}"
#### Regular settings follow
# First Stage Boot Loader
FSBL_DEPENDS = ""
FSBL_MCDEPENDS = "mc::ac7020c-sdt-cortexa9-fsbl:fsbl-firmware:do_deploy"
FSBL_DEPLOY_DIR = "${TMPDIR}-ac7020c-sdt-cortexa9-fsbl/deploy/images/${MACHINE}"
# Set the default (linux) domain device tree
CONFIG_DTFILE_DIR := "${@bb.utils.which(d.getVar('BBPATH'), 'conf/dts/ac7020c-sdt')}"
CONFIG_DTFILE ?= "${CONFIG_DTFILE_DIR}/cortexa9-linux.dts"
CONFIG_DTFILE[vardepsexclude] += "CONFIG_DTFILE_DIR"
DTB_FILE_PATH ?= "${RECIPE_SYSROOT}/boot/devicetree/${@os.path.basename(d.getVar('CONFIG_DTFILE').replace('.dts', '.dtb'))}"
# Serial Console Settings
SERIAL_CONSOLES ?= "115200;ttyPS0"
# Yocto u-boot-xlnx variables
# Set DDR Base address for u-boot-xlnx-scr variables
DDR_BASEADDR ?= "0x100000"
SKIP_APPEND_BASEADDR ?= "0"
# Yocto KERNEL Variables
UBOOT_ENTRYPOINT ?= "0x300000"
UBOOT_LOADADDRESS ?= "0x300000"
KERNEL_EXTRA_ARGS += "UIMAGE_LOADADDR=${UBOOT_ENTRYPOINT}"
# Required generic machine inclusion
require conf/machine/zynq-generic.conf
# This is an 'SDT' based BSP
XILINX_WITH_ESW = "sdt"
# Original SDT artifacts URL
SDT_URI = "file:///home/edf/projects/ac7020c/sdt/ac7020c"
SDT_URI[S] = "${WORKDIR}/home/edf/projects/ac7020c/sdt/ac7020c"
# Set the system device trees
SYSTEM_DTFILE_DEPENDS = "sdt-artifacts"
SYSTEM_DTFILE_DIR = "${RECIPE_SYSROOT}${datadir}/sdt/${MACHINE}"
SYSTEM_DTFILE = "${SYSTEM_DTFILE_DIR}/system-top.dts"
# Load the dynamic machine features
include conf/machine/include/ac7020c-sdt/${BB_CURRENT_MC}-features.conf
LIBXIL_CONFIG = "conf/machine/include/ac7020c-sdt/${BB_CURRENT_MC}-libxil.conf"
# zynq bitstream path
BITSTREAM_PATH_DEPENDS = "sdt-artifacts"
BITSTREAM_PATH_DIR = "${RECIPE_SYSROOT}${datadir}/sdt/${MACHINE}"
BITSTREAM_PATH = "${BITSTREAM_PATH_DIR}/ac7020c_wrapper.bit"
# Primary Bootmode value
DEFAULT_HW_BOOT_MODE = "5"
# Update bootbin to use proper device tree
BIF_PARTITION_IMAGE[device-tree] = "${DTB_FILE_PATH}"
# Remap boot files to ensure the right device tree is listed first
IMAGE_BOOT_FILES =+ "devicetree/${@os.path.basename(d.getVar('CONFIG_DTFILE').replace('.dts', '.dtb'))}"
#### No additional settings should be after the Postamble
#### Postamble
PACKAGE_EXTRA_ARCHS:append = "${@['', ' ac7020c_sdt']['ac7020c-sdt' != '${MACHINE}']}"