Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | #@TYPE: Machine |
| 2 | #@NAME: Corstone-500 machine |
| 3 | #@DESCRIPTION: Machine configuration for the Corstone-500 platform |
| 4 | |
| 5 | require conf/machine/include/arm/armv7a/tune-cortexa5.inc |
| 6 | |
| 7 | # Corstone-500 is built against poky-tiny distro. |
| 8 | # poky-tiny sets PREFERRED_PROVIDER_virtual/kernel to linux-yocto-tiny. |
| 9 | # Since distro config is evaluated after the machine config, we need to |
| 10 | # use the strongest override possible (forcevariable) so the |
| 11 | # PREFERRED_PROVIDER_virtual/kernel specified in the machine config will |
| 12 | # apply. |
| 13 | # |
| 14 | PREFERRED_PROVIDER_virtual/kernel:forcevariable = "linux-yocto" |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 15 | PREFERRED_VERSION_linux-yocto ?= "5.19%" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 16 | |
| 17 | EXTRA_IMAGEDEPENDS += "trusted-firmware-a u-boot" |
| 18 | |
| 19 | IMAGE_CLASSES += "wic_nopt" |
| 20 | IMAGE_FEATURES += "debug-tweaks" |
| 21 | IMAGE_FSTYPES:forcevariable = "cpio.gz squashfs wic wic.nopt" |
| 22 | |
| 23 | SERIAL_CONSOLES = "115200;ttyAMA0" |
| 24 | |
| 25 | # Corstone-500 u-boot configuration |
| 26 | UBOOT_MACHINE = "corstone500_defconfig" |
| 27 | UBOOT_IMAGE_ENTRYPOINT = "0x84000000" |
| 28 | UBOOT_IMAGE_LOADADDRESS = "0x84000000" |
Andrew Geissler | ea144b03 | 2023-01-27 16:03:57 -0600 | [diff] [blame] | 29 | PREFERRED_VERSION_u-boot ?= "2022.10" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 30 | |
| 31 | # making sure EXTRA_IMAGEDEPENDS will be used while creating the image |
| 32 | WKS_FILE_DEPENDS:append = " ${EXTRA_IMAGEDEPENDS}" |
| 33 | |
| 34 | WKS_FILE ?= "core-image-minimal.corstone500.wks" |
| 35 | |
| 36 | TEST_TARGET = "OEFVPSerialTarget" |
| 37 | TEST_SUITES = "linuxboot" |
| 38 | |
| 39 | FVP_PROVIDER ?= "fvp-corstone500-native" |
| 40 | FVP_EXE ?= "FVP_Corstone-500" |
| 41 | FVP_CONFIG[board.flashloader0.fname] ?= "${DEPLOY_DIR_IMAGE}/bl1.bin" |
| 42 | FVP_DATA ?= "css.cluster.cpu0=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.wic.nopt@0x80000000" |
| 43 | FVP_CONSOLE ?= "terminal_0" |
| 44 | FVP_TERMINALS[css.terminal_0] ?= "console" |
| 45 | FVP_TERMINALS[css.terminal_1] ?= "" |