anchor.diff:  
   # ATF requires u-boot.bin file. Ensure it's deployed before we compile.
   do_compile[depends] += "u-boot-juno:do_deploy"
  +# Same for OP-TEE files.
  +do_compile[depends] += "optee-os:do_deploy"
   
   # Building for Juno requires a special SCP firmware to be packed with FIP.
   # You can refer to the documentation here:
  
positive.code:       all \
        fip \
        PLAT=${COMPATIBLE_MACHINE} \
        SPD=none \
        SCP_BL2=${WORKDIR}/juno-oe-uboot/SOFTWARE/scp_bl2.bin \
        BL33=${DEPLOY_DIR_IMAGE}/u-boot.bin
  
      # Generate new FIP using our U-boot
      ./tools/fiptool/fiptool update \
        --nt-fw ${DEPLOY_DIR_IMAGE}/u-boot.bin \
        build/${COMPATIBLE_MACHINE}/release/fip.bin
  }
  
  # Ensure we deploy kernel/dtb before we create the recovery image.
  do_deploy[depends] += "virtual/kernel:do_deploy"
  
negative.code: DESCRIPTION = "ARM Trusted Firmware Juno"
  LICENSE = "BSD"
  LIC_FILES_CHKSUM = "file://license.rst;md5=33065335ea03d977d0569f270b39603e"
  DEPENDS += "optee-os u-boot-juno zip-native"
  SRCREV = "e83769c07bb09b7727a36389c9dd92096860637e"
  
  PV = "1.4+git${SRCPV}"
  
  SRC_URI = "git://github.com/ARM-software/arm-trusted-firmware.git;protocol=https;name=atf;branch=master \
      http://releases.linaro.org/members/arm/platforms/17.04/juno-latest-oe-uboot.zip;name=junofip;subdir=juno-oe-uboot \
  