Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | require conf/machine/include/arm/armv8a/tune-cortexa35.inc |
| 2 | |
| 3 | MACHINEOVERRIDES =. "corstone1000:" |
| 4 | |
| 5 | # TF-A |
| 6 | TFA_PLATFORM = "corstone1000" |
| 7 | EXTRA_IMAGEDEPENDS += "trusted-firmware-a" |
| 8 | |
| 9 | TFA_BL2_BINARY = "bl2-corstone1000.bin" |
| 10 | TFA_FIP_BINARY = "fip-corstone1000.bin" |
| 11 | |
| 12 | # TF-M |
| 13 | EXTRA_IMAGEDEPENDS += "virtual/trusted-firmware-m" |
| 14 | |
| 15 | # TF-M settings for signing host images |
| 16 | TFA_BL2_RE_IMAGE_LOAD_ADDRESS = "0x62353000" |
| 17 | TFA_BL2_RE_SIGN_BIN_SIZE = "0x2d000" |
| 18 | TFA_FIP_RE_IMAGE_LOAD_ADDRESS = "0x68130000" |
| 19 | TFA_FIP_RE_SIGN_BIN_SIZE = "0x00200000" |
| 20 | RE_LAYOUT_WRAPPER_VERSION = "0.0.7" |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 21 | TFM_SIGN_PRIVATE_KEY = "${libdir}/tfm-scripts/root-RSA-3072_1.pem" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 22 | RE_IMAGE_OFFSET = "0x1000" |
| 23 | |
| 24 | # u-boot |
Andrew Geissler | ea144b03 | 2023-01-27 16:03:57 -0600 | [diff] [blame^] | 25 | PREFERRED_VERSION_u-boot ?= "2022.10" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 26 | EXTRA_IMAGEDEPENDS += "u-boot" |
| 27 | |
| 28 | UBOOT_CONFIG ??= "EFI" |
| 29 | UBOOT_CONFIG[EFI] = "corstone1000_defconfig" |
| 30 | UBOOT_ENTRYPOINT = "0x80000000" |
| 31 | UBOOT_LOADADDRESS = "0x80000000" |
| 32 | UBOOT_BOOTARGS = "earlycon=pl011,0x1a510000 console=ttyAMA0 loglevel=9" |
| 33 | UBOOT_ARCH = "arm" |
| 34 | UBOOT_EXTLINUX = "0" |
| 35 | |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 36 | #optee |
| 37 | PREFERRED_VERSION_optee-os ?= "3.18.%" |
| 38 | PREFERRED_VERSION_optee-client ?= "3.18.%" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 39 | EXTRA_IMAGEDEPENDS += "optee-os" |
| 40 | OPTEE_ARCH = "arm64" |
| 41 | OPTEE_BINARY = "tee-pager_v2.bin" |
| 42 | |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 43 | # Include smm-gateway and se-proxy SPs into optee-os binary |
| 44 | MACHINE_FEATURES += "ts-smm-gateway ts-se-proxy" |
| 45 | TS_PLATFORM = "arm/corstone1000" |
| 46 | |
| 47 | # External System(Cortex-M3) |
| 48 | EXTRA_IMAGEDEPENDS += "external-system" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 49 | |
| 50 | # Linux kernel |
| 51 | PREFERRED_PROVIDER_virtual/kernel:forcevariable = "linux-yocto" |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 52 | PREFERRED_VERSION_linux-yocto = "5.19%" |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 53 | KERNEL_IMAGETYPE = "Image.gz" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 54 | |
| 55 | INITRAMFS_IMAGE_BUNDLE ?= "1" |
| 56 | |
| 57 | #telling the build system which image is responsible of the generation of the initramfs rootfs |
| 58 | INITRAMFS_IMAGE = "corstone1000-initramfs-image" |
| 59 | |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 60 | # add FF-A support in the kernel |
| 61 | MACHINE_FEATURES += "arm-ffa" |
| 62 | |
| 63 | # prevent the kernel image from being included in the intramfs rootfs |
| 64 | PACKAGE_EXCLUDE = "kernel-image-*" |
| 65 | |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 66 | # enable this feature for kernel debugging |
| 67 | # MACHINE_FEATURES += "corstone1000_kernel_debug" |
| 68 | |
| 69 | # login terminal serial port settings |
| 70 | SERIAL_CONSOLES ?= "115200;ttyAMA0" |
| 71 | |
| 72 | # making sure EXTRA_IMAGEDEPENDS will be used while creating the image |
| 73 | WKS_FILE_DEPENDS:append = " ${EXTRA_IMAGEDEPENDS}" |
| 74 | |
| 75 | WKS_FILE ?= "corstone1000-image.corstone1000.wks" |