From 23503ff24962478e1decb16be7011cca31c1c21a Mon Sep 17 00:00:00 2001 From: Nathan Rossi Date: Tue, 14 Apr 2015 14:35:56 +1000 Subject: kc705-trd_2013.1: Add recipe for retrieveing KC705 TRD Bitstream * The recipe downloads the pre-built bitstream from the Xilinx that is provided as part of the TRD * Bitstream is populated into /boot/download.bit and is also populated into the deploy directory * The recipe provides the 'virtual/bitstream' target Signed-off-by: Nathan Rossi --- conf/machine/kc705-trd-microblazeel.conf | 3 ++ recipes-bsp/reference-design/kc705-trd_2013.1.bb | 42 ++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 recipes-bsp/reference-design/kc705-trd_2013.1.bb diff --git a/conf/machine/kc705-trd-microblazeel.conf b/conf/machine/kc705-trd-microblazeel.conf index be46e31a..43063c6c 100644 --- a/conf/machine/kc705-trd-microblazeel.conf +++ b/conf/machine/kc705-trd-microblazeel.conf @@ -24,3 +24,6 @@ SERIAL_CONSOLE = "115200 ttyS0" MACHINE_DEVICETREE := "kc705/kc705-trd-microblazeel.dts" MACHINE_XPARAMETERS := "kc705/kc705-trd-microblazeel.xparameters.h" + +EXTRA_IMAGEDEPENDS += "virtual/bitstream" + diff --git a/recipes-bsp/reference-design/kc705-trd_2013.1.bb b/recipes-bsp/reference-design/kc705-trd_2013.1.bb new file mode 100644 index 00000000..9384a9cc --- /dev/null +++ b/recipes-bsp/reference-design/kc705-trd_2013.1.bb @@ -0,0 +1,42 @@ +SUMMARY = "KC705 Targeted Reference Design" +DESCRIPTION = "Contains the Reference Design Files and pre-built bitstream." +HOMEPAGE = "http://www.xilinx.com" +SECTION = "bsp" + +LICENSE = "Proprietary" +LIC_FILES_CHKSUM = "file://readme.txt;md5=3460f0b771d39ff306837a28cd1d2532" + +COMPATIBLE_MACHINE = "kc705-trd-microblazeel" + +SRC_URI = "http://www.xilinx.com/support/documentation/boards_and_kits/k7_emb/2013_1/k7-embedded-trd-rdf0283.zip" +SRC_URI[md5sum] = "226cac219b1307cd465caa411d76d657" +SRC_URI[sha256sum] = "82096948c2c74a16f4d6c5a43d9e6d76eab73e322ace56d30f9c84a9be43edbe" + +S = "${WORKDIR}/k7-embedded-trd-rdf0283" + +PROVIDES = "virtual/bitstream" + +FILES_${PN} += "/boot/download.bit" + +INHIBIT_DEFAULT_DEPS = "1" +PACKAGE_ARCH = "${MACHINE_ARCH}" + +# Copy the bitstream into the boot directory +do_install() { + install -d ${D}/boot + install ${S}/KC705_Embedded_Kit/KC705_System/ready_for_download/download.bit ${D}/boot/download.bit +} + +do_compile() { + : +} + +do_deploy () { + install -d ${DEPLOY_DIR_IMAGE} + if [ -e ${D}/boot/download.bit ]; then + install ${D}/boot/download.bit ${DEPLOY_DIR_IMAGE}/download.bit + fi +} + +addtask deploy before do_build after do_install + -- cgit v1.2.3-54-g00ecf