anchor.diff:  PACKAGE_ARCH = "${MACHINE_ARCH}"
   
   COMPATIBLE_MACHINE = "^$"
  -COMPATIBLE_MACHINE_zynq = "zynq"
  +COMPATIBLE_MACHINE_zynq = ".*"
  +COMPATIBLE_MACHINE_zynqmp = ".*"
   
   inherit deploy
   
  
positive.code:             return dtbs[0]
      return ""
  
  do_compile() {
  	echo "machine_name=${MACHINE}" > ${WORKDIR}/uEnv.txt
  
  	echo "kernel_image=${KERNEL_IMAGETYPE}" >> ${WORKDIR}/uEnv.txt
  	echo "kernel_load_address=0x2080000" >> ${WORKDIR}/uEnv.txt
  	echo "devicetree_image=${@bootfiles_dtb_filepath(d)}" >> ${WORKDIR}/uEnv.txt
  	echo "devicetree_load_address=0x2000000" >> ${WORKDIR}/uEnv.txt
  
  	# bootargs, default to booting with the rootfs device being partition 2 of the first mmc device
  	echo 'bootargs=console=ttyPS0,115200 root=/dev/mmcblk0p2 rw rootwait earlyprintk' >> ${WORKDIR}/uEnv.txt
  
  	echo 'loadkernel=fatload mmc 0 ${kernel_load_address} ${kernel_image}' >> ${WORKDIR}/uEnv.txt
  	echo 'loaddtb=fatload mmc 0 ${devicetree_load_address} ${devicetree_image}' >> ${WORKDIR}/uEnv.txt
  	echo 'bootkernel=run loadkernel && run loaddtb && bootm ${kernel_load_address} - ${devicetree_load_address}' >> ${WORKDIR}/uEnv.txt
  
  	BITSTREAMPATH="${@bootfiles_bitstream(d)[0]}"
  	if [ ! -z "$BITSTREAMPATH" ]; then
  		echo "bitstream_image=$BITSTREAMPATH" >> ${WORKDIR}/uEnv.txt
  		# if bitstream is "bit" format use loadb, otherwise use load
  		echo "bitstream_type=${@'loadb' if bootfiles_bitstream(d)[1] else 'load'}" >> ${WORKDIR}/uEnv.txt
  		echo 'loadfpga=fatload mmc 0 ${loadbit_addr} ${bitstream_image} && fpga ${bitstream_type} 0 ${loadbit_addr} ${filesize}' >> ${WORKDIR}/uEnv.txt
  
  		# load bitstream first
  		echo "uenvcmd=run loadfpga && run bootkernel" >> ${WORKDIR}/uEnv.txt
  	else
  		# no need to load bitstream during boot
  		echo "uenvcmd=run bootkernel" >> ${WORKDIR}/uEnv.txt
  	fi
  }
  
  FILES_${PN} += "/boot/uEnv.txt"
  
negative.code:         if ';' in f:
              sf, rf = f.split(';')
  
          # skip boot.bin and u-boot.bin, it is not a bitstream
          skip = ["boot.bin", "u-boot.bin"]
          if sf in skip or rf in skip:
              continue
  
          for e, t in expectedfiles:
  