diff options
author | Nathan Rossi <nathan.rossi@xilinx.com> | 2015-04-14 14:35:56 +1000 |
---|---|---|
committer | Nathan Rossi <nathan.rossi@xilinx.com> | 2015-04-14 14:35:56 +1000 |
commit | 23503ff24962478e1decb16be7011cca31c1c21a (patch) | |
tree | d816c2e9e4d350fcb33987a3acb0d8154951f86d | |
parent | e1a7205fa5cf2a6186121c8394cb18d59b477e27 (diff) | |
download | meta-xilinx-23503ff24962478e1decb16be7011cca31c1c21a.tar.gz |
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 <nathan.rossi@xilinx.com>
-rw-r--r-- | conf/machine/kc705-trd-microblazeel.conf | 3 | ||||
-rw-r--r-- | recipes-bsp/reference-design/kc705-trd_2013.1.bb | 42 |
2 files changed, 45 insertions, 0 deletions
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" | |||
24 | 24 | ||
25 | MACHINE_DEVICETREE := "kc705/kc705-trd-microblazeel.dts" | 25 | MACHINE_DEVICETREE := "kc705/kc705-trd-microblazeel.dts" |
26 | MACHINE_XPARAMETERS := "kc705/kc705-trd-microblazeel.xparameters.h" | 26 | MACHINE_XPARAMETERS := "kc705/kc705-trd-microblazeel.xparameters.h" |
27 | |||
28 | EXTRA_IMAGEDEPENDS += "virtual/bitstream" | ||
29 | |||
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 @@ | |||
1 | SUMMARY = "KC705 Targeted Reference Design" | ||
2 | DESCRIPTION = "Contains the Reference Design Files and pre-built bitstream." | ||
3 | HOMEPAGE = "http://www.xilinx.com" | ||
4 | SECTION = "bsp" | ||
5 | |||
6 | LICENSE = "Proprietary" | ||
7 | LIC_FILES_CHKSUM = "file://readme.txt;md5=3460f0b771d39ff306837a28cd1d2532" | ||
8 | |||
9 | COMPATIBLE_MACHINE = "kc705-trd-microblazeel" | ||
10 | |||
11 | SRC_URI = "http://www.xilinx.com/support/documentation/boards_and_kits/k7_emb/2013_1/k7-embedded-trd-rdf0283.zip" | ||
12 | SRC_URI[md5sum] = "226cac219b1307cd465caa411d76d657" | ||
13 | SRC_URI[sha256sum] = "82096948c2c74a16f4d6c5a43d9e6d76eab73e322ace56d30f9c84a9be43edbe" | ||
14 | |||
15 | S = "${WORKDIR}/k7-embedded-trd-rdf0283" | ||
16 | |||
17 | PROVIDES = "virtual/bitstream" | ||
18 | |||
19 | FILES_${PN} += "/boot/download.bit" | ||
20 | |||
21 | INHIBIT_DEFAULT_DEPS = "1" | ||
22 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
23 | |||
24 | # Copy the bitstream into the boot directory | ||
25 | do_install() { | ||
26 | install -d ${D}/boot | ||
27 | install ${S}/KC705_Embedded_Kit/KC705_System/ready_for_download/download.bit ${D}/boot/download.bit | ||
28 | } | ||
29 | |||
30 | do_compile() { | ||
31 | : | ||
32 | } | ||
33 | |||
34 | do_deploy () { | ||
35 | install -d ${DEPLOY_DIR_IMAGE} | ||
36 | if [ -e ${D}/boot/download.bit ]; then | ||
37 | install ${D}/boot/download.bit ${DEPLOY_DIR_IMAGE}/download.bit | ||
38 | fi | ||
39 | } | ||
40 | |||
41 | addtask deploy before do_build after do_install | ||
42 | |||