summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2017-08-21 18:57:50 +1000
committerNathan Rossi <nathan@nathanrossi.com>2017-08-28 23:51:55 +1000
commit19bfffd1a993eefb8991dc788154636b06ce37db (patch)
tree8e778eca8f2ffb7ab345ee19ba82699a865a59dd
parent9bb4337aca9c71b18d6dbd9c11032aba68d09d27 (diff)
downloadmeta-xilinx-19bfffd1a993eefb8991dc788154636b06ce37db.tar.gz
kc705-bitstream_2016.3.bb: Update to use the PetaLinux BSP bitstream
This recipe was never updated when the rest of the configuration was updated to be built for the PetaLinux v2016.3 BSP. This was due to download access issues which were not resolved. Instead of pointing at the old bitstream point at the download path on Xilinx's servers which is restricted by account access, and using the xilinx-fetch-restricted class to handle erroring properly and providing user instructions for fetching the BSP file. This recipe now also manually extracts the 'download.bit' from the BSP and populates it into a package as well as the deploy directory. The recipe is now marked with the 'xilinx' license flag due to its use of content that has licensing/legal requirements. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Tested-by: Alistair Francis <alistair.francis@xilinx.com> Acked-by: Alistair Francis <alistair.francis@xilinx.com> Acked-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
-rw-r--r--recipes-bsp/reference-design/kc705-bitstream_2016.1.bb44
-rw-r--r--recipes-bsp/reference-design/kc705-bitstream_2016.3.bb48
2 files changed, 48 insertions, 44 deletions
diff --git a/recipes-bsp/reference-design/kc705-bitstream_2016.1.bb b/recipes-bsp/reference-design/kc705-bitstream_2016.1.bb
deleted file mode 100644
index 56bb54dc..00000000
--- a/recipes-bsp/reference-design/kc705-bitstream_2016.1.bb
+++ /dev/null
@@ -1,44 +0,0 @@
1SUMMARY = "KC705 design file for bitstream"
2DESCRIPTION = "Contains the pre-built bitstream and hardware project."
3HOMEPAGE = "http://www.xilinx.com"
4SECTION = "bsp"
5
6LICENSE = "Proprietary"
7LIC_FILES_CHKSUM = "file://implementation/system.mmi;md5=1992d9c9006c524f4178949897749f21"
8
9COMPATIBLE_MACHINE = "kc705-microblazeel"
10
11inherit deploy
12
13SRC_URI = "http://www.xilinx.com/support/documentation/boards_and_kits/k7_emb/2016_1/xilinx-kc705-axi-full-2016.1.tar"
14SRC_URI[md5sum] = "59ade57ab0a15c8700c129f040fe4c75"
15SRC_URI[sha256sum] = "8e3e5c5d30e6d02eaa58cb6e9255b8d6456857185744904fb931e3d8e44ba62e"
16
17S = "${WORKDIR}/Xilinx-KC705-AXI-full-2016.1"
18
19PROVIDES = "virtual/bitstream"
20
21FILES_${PN} += "/boot/download.bit"
22
23INHIBIT_DEFAULT_DEPS = "1"
24PACKAGE_ARCH = "${MACHINE_ARCH}"
25
26# Copy the bitstream into the boot directory
27do_install() {
28 install -d ${D}/boot
29 install ${S}/implementation/system.bit ${D}/boot/download.bit
30}
31
32do_compile() {
33 :
34}
35
36do_deploy () {
37 install -d ${DEPLOYDIR}
38 if [ -e ${D}/boot/download.bit ]; then
39 install ${D}/boot/download.bit ${DEPLOYDIR}/download.bit
40 fi
41}
42
43addtask deploy before do_build after do_install
44
diff --git a/recipes-bsp/reference-design/kc705-bitstream_2016.3.bb b/recipes-bsp/reference-design/kc705-bitstream_2016.3.bb
new file mode 100644
index 00000000..195d60cc
--- /dev/null
+++ b/recipes-bsp/reference-design/kc705-bitstream_2016.3.bb
@@ -0,0 +1,48 @@
1SUMMARY = "KC705 Pre-built Bitstream"
2DESCRIPTION = "A Pre-built bitstream for the KC705, which is capable of booting a Linux system."
3HOMEPAGE = "http://www.xilinx.com"
4SECTION = "bsp"
5
6# The BSP package does not include any license information.
7LICENSE = "Proprietary"
8LICENSE_FLAGS = "xilinx"
9LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Proprietary;md5=0557f9d92cf58f2ccdd50f62f8ac0b28"
10
11COMPATIBLE_MACHINE = "kc705-microblazeel"
12
13inherit deploy
14inherit xilinx-fetch-restricted
15
16BSP_NAME = "Xilinx-KC705"
17BSP_FILE = "${BSP_NAME}-v${PV}-final.bsp"
18SRC_URI = "https://www.xilinx.com/member/forms/download/xef.html?filename=${BSP_FILE};downloadfilename=${BSP_FILE}"
19SRC_URI[md5sum] = "6a2276088759f10b9504eae2f13fe8a2"
20SRC_URI[sha256sum] = "dbb722cc051a2d8517238948ddec1c029511ff391a8f9fc0b0f1e58e52ade399"
21
22PROVIDES = "virtual/bitstream"
23
24FILES_${PN} += "/boot/download.bit"
25
26INHIBIT_DEFAULT_DEPS = "1"
27PACKAGE_ARCH = "${MACHINE_ARCH}"
28
29# deps needed to extract content from the .bsp file
30DEPENDS += "tar-native gzip-native"
31
32do_compile() {
33 # Extract the bitstream into workdir
34 tar -xf ${WORKDIR}/${BSP_FILE} ${BSP_NAME}-AXI-full-${PV}/pre-built/linux/images/download.bit -C ${S}
35 # move the bit file to ${S}/ as it is in a subdir in the tar file
36 for i in $(find -type f -name download.bit); do mv $i ${S}; done
37}
38
39do_install() {
40 install -D ${S}/download.bit ${D}/boot/download.bit
41}
42
43do_deploy () {
44 install -D ${S}/download.bit ${DEPLOYDIR}/download.bit
45}
46
47addtask deploy before do_build after do_install
48