corstone1000.inc 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. require conf/machine/include/arm/armv8a/tune-cortexa35.inc
  2. MACHINEOVERRIDES =. "corstone1000:"
  3. # TF-M
  4. PREFERRED_VERSION_trusted-firmware-m ?= "2.1.%"
  5. # TF-A
  6. TFA_PLATFORM = "corstone1000"
  7. PREFERRED_VERSION_trusted-firmware-a ?= "2.11.%"
  8. PREFERRED_VERSION_tf-a-tests ?= "2.10.%"
  9. TFA_BL2_BINARY = "bl2-corstone1000.bin"
  10. TFA_FIP_BINARY = "fip-corstone1000.bin"
  11. # optee
  12. PREFERRED_VERSION_optee-os ?= "4.4.%"
  13. PREFERRED_VERSION_optee-client ?= "4.4.%"
  14. # Trusted Services
  15. TS_PLATFORM = "arm/corstone1000"
  16. TS_SP_SE_PROXY_CONFIG = "corstone1000"
  17. # Include smm-gateway and se-proxy SPs into optee-os binary
  18. MACHINE_FEATURES += "ts-smm-gateway ts-se-proxy"
  19. # u-boot
  20. PREFERRED_VERSION_u-boot ?= "2023.07%"
  21. MACHINE_FEATURES += "efi"
  22. EFI_PROVIDER ?= "grub-efi"
  23. # Grub
  24. LINUX_KERNEL_ARGS ?= "earlycon=pl011,0x1a510000 console=ttyAMA0,115200"
  25. GRUB_LINUX_APPEND ?= "${LINUX_KERNEL_ARGS}"
  26. IMAGE_CMD:wic[vardeps] += "GRUB_LINUX_APPEND"
  27. # Linux kernel
  28. PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
  29. PREFERRED_VERSION_linux-yocto ?= "6.12.%"
  30. KERNEL_IMAGETYPE = "Image"
  31. KERNEL_IMAGETYPE:firmware = "Image.gz"
  32. # add FF-A support in the kernel
  33. MACHINE_FEATURES += "arm-ffa"
  34. # enable this feature for kernel debugging
  35. # MACHINE_FEATURES += "corstone1000_kernel_debug"
  36. # login terminal serial port settings
  37. SERIAL_CONSOLES ?= "115200;ttyAMA0"
  38. IMAGE_FSTYPES += "wic"
  39. # Need to clear the suffix so TESTIMAGE_AUTO works
  40. IMAGE_NAME_SUFFIX = ""
  41. WKS_FILE ?= "efi-disk-no-swap.wks.in"
  42. WKS_FILE:firmware ?= "corstone1000-flash-firmware.wks.in"
  43. # making sure EXTRA_IMAGEDEPENDS will be used while creating the image
  44. WKS_FILE_DEPENDS:append = " ${EXTRA_IMAGEDEPENDS}"
  45. # If not building under the firmware multiconf we need to build the actual firmware
  46. FIRMWARE_DEPLOYMENT ?= "firmware-deploy-image"
  47. FIRMWARE_DEPLOYMENT:firmware ?= ""
  48. EXTRA_IMAGEDEPENDS += "${FIRMWARE_DEPLOYMENT}"
  49. ARM_SYSTEMREADY_FIRMWARE = "${FIRMWARE_DEPLOYMENT}:do_deploy \
  50. corstone1000-esp-image:do_image_complete \
  51. "
  52. ARM_SYSTEMREADY_ACS_CONSOLE ?= "default"
  53. # Workaround IMAGE_ROOTFS_EXTRA_SPACE being ignored when images are repacked
  54. IMAGE_ROOTFS_EXTRA_ARGS += "--extra-space ${@${IMAGE_ROOTFS_EXTRA_SPACE}}K"
  55. # Enable Authenticated variable support in SmmGW
  56. SMMGW_AUTH_VAR = "1"
  57. # Use MbedTLS build into SmmGW for authentication related crypto operations.
  58. SMMGW_INTERNAL_CRYPTO = "1"