anchor.diff:  
   # Building for Juno and FVP requires a special SCP firmware to be packed with
   # the FIP. You can Refer to the documentation here:
  -# https://github.com/ARM-software/arm-trusted-firmware/blob/master/docs/user-guide.rst#id19
  +# https://github.com/ARM-software/arm-trusted-firmware/blob/master/docs/user-guide.rst#building-a-fip-for-juno-and-fvp
   # This must be obtained from the Arm deliverables as released by Linaro:
   # https://community.arm.com/dev-platforms/b/documents/posts/linaro-release-notes-deprecated
   do_compile() {
       oe_runmake CROSS_COMPILE=${TARGET_PREFIX} 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
  +
  +    # Create new recovery image
  +    cp -a build/${COMPATIBLE_MACHINE}/release/bl1.bin build/${COMPATIBLE_MACHINE}/release/fip.bin \
  +        ${WORKDIR}/juno-oe-uboot/SOFTWARE/
  +    cd ${WORKDIR}/juno-oe-uboot/
  +    zip -r ${WORKDIR}/juno-oe-uboot.zip .
   }
  +
  +do_deploy() {
  +    # Deploy recovery package
  +    install -D -p -m0644 ${WORKDIR}/juno-oe-uboot.zip ${DEPLOYDIR}/juno-oe-uboot.zip
  +}
  +
  +addtask deploy before do_build after do_compile
  
positive.code: 
  COMPATIBLE_MACHINE = "juno"
  
  DEPENDS += "u-boot-juno"
  
  SRCREV = "b762fc7481c66b64eb98b6ff694d569e66253973"
  
  
negative.code: inherit deploy
  
  require atf.inc
  
  DESCRIPTION = "ARM Trusted Firmware Juno"
  