summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-contrib
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2023-04-07 16:27:14 -0700
committerMark Hatle <mark.hatle@amd.com>2023-04-10 09:03:22 -0700
commit9ddf5784a6d39dbd9cd080941f16f351d5c7c53f (patch)
tree944084f3995e9eb47bbca6f6427310070ae8d17a /meta-xilinx-contrib
parent22a09beca042df108e582941651709bf915e6a02 (diff)
downloadmeta-xilinx-9ddf5784a6d39dbd9cd080941f16f351d5c7c53f.tar.gz
meta-xilinx-contrib: Update zybo-linux-bd integrations
Disable standard bitstream-extraction, the zybo-linux-bd recipe handles this task. Zybo-linux-bd is used to provide the reference files, but needs to provide the files in the matching locations to other components. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-contrib')
-rw-r--r--meta-xilinx-contrib/recipes-bsp/bitstream/bitstream-extraction_%.bbappend2
-rw-r--r--meta-xilinx-contrib/recipes-bsp/reference-design/zybo-linux-bd.bb21
2 files changed, 15 insertions, 8 deletions
diff --git a/meta-xilinx-contrib/recipes-bsp/bitstream/bitstream-extraction_%.bbappend b/meta-xilinx-contrib/recipes-bsp/bitstream/bitstream-extraction_%.bbappend
new file mode 100644
index 00000000..4653c93a
--- /dev/null
+++ b/meta-xilinx-contrib/recipes-bsp/bitstream/bitstream-extraction_%.bbappend
@@ -0,0 +1,2 @@
1COMPATIBLE_MACHINE:zybo-linux-bd-zynq7 = "^$"
2
diff --git a/meta-xilinx-contrib/recipes-bsp/reference-design/zybo-linux-bd.bb b/meta-xilinx-contrib/recipes-bsp/reference-design/zybo-linux-bd.bb
index 4439f7f9..b54274e4 100644
--- a/meta-xilinx-contrib/recipes-bsp/reference-design/zybo-linux-bd.bb
+++ b/meta-xilinx-contrib/recipes-bsp/reference-design/zybo-linux-bd.bb
@@ -29,38 +29,43 @@ PROVIDES = "virtual/bitstream virtual/xilinx-platform-init"
29FILES:${PN}-platform-init += "${PLATFORM_INIT_DIR}/*" 29FILES:${PN}-platform-init += "${PLATFORM_INIT_DIR}/*"
30 30
31FILES:${PN}-bitstream += " \ 31FILES:${PN}-bitstream += " \
32 download.bit \ 32 /boot/bitstream \
33 " 33 "
34 34
35PACKAGES = "${PN}-platform-init ${PN}-bitstream" 35PACKAGES = "${PN}-platform-init ${PN}-bitstream"
36 36
37BITSTREAM ?= "bitstream-${PV}-${PR}.bit" 37inherit image-artifact-names
38
39BITSTREAM_NAME ?= "download"
40BITSTREAM_BASE_NAME ?= "${BITSTREAM_NAME}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
38 41
39PACKAGE_ARCH = "${MACHINE_ARCH}" 42PACKAGE_ARCH = "${MACHINE_ARCH}"
40 43
41inherit xilinx-platform-init 44inherit xilinx-platform-init
42inherit deploy 45inherit deploy
43 46
44SYSROOT_DIRS += "${PLATFORM_INIT_DIR}" 47SYSROOT_DIRS += "${PLATFORM_INIT_DIR} /boot/bitstream"
45 48
46do_install() { 49do_install() {
47 fn=$(unzip -l ${S}/${HDF} | awk '{print $NF}' | grep ".bit$") 50 fn=$(unzip -l ${S}/${HDF} | awk '{print $NF}' | grep ".bit$")
48 unzip -o ${S}/${HDF} ${fn} -d ${D} 51 unzip -o ${S}/${HDF} ${fn} -d ${D}
49 [ "${fn}" == "download.bit" ] || mv ${D}/${fn} ${D}/download.bit 52 install -d ${D}/boot/bitstream
53 mv ${D}/*.bit ${D}/boot/bitstream/${BITSTREAM_BASE_NAME}.bit
54 ln -s ${BITSTREAM_BASE_NAME}.bit ${D}/boot/bitstream/${BITSTREAM_NAME}-${MACHINE}.bit
50 55
51 install -d ${D}${PLATFORM_INIT_DIR} 56 install -d ${D}${PLATFORM_INIT_DIR}
52 for fn in ${PLATFORM_INIT_FILES}; do 57 for fn in ${PLATFORM_INIT_FILES}; do
53 unzip -o ${S}/${HDF} ${fn} -d ${D}${PLATFORM_INIT_DIR} 58 unzip -o ${S}/${HDF} ${fn} -d ${D}${PLATFORM_INIT_DIR}
54 done 59 done
60
61
55} 62}
56 63
57do_deploy () { 64do_deploy () {
58 if [ -e ${D}/download.bit ]; then 65 if [ -e ${D}/download.bit ]; then
59 install -d ${DEPLOYDIR} 66 install -d ${DEPLOYDIR}
60 install -m 0644 ${D}/download.bit ${DEPLOYDIR}/${BITSTREAM} 67 install -m 0644 ${D}/download.bit ${DEPLOYDIR}/${BITSTREAM_BASE_NAME}.bit
61 ln -sf ${BITSTREAM} ${DEPLOYDIR}/download.bit 68 ln -sf ${BITSTREAM_BASE_NAME}.bit ${DEPLOYDIR}/${BITSTREAM_NAME}-${MACHINE}.bit
62 # for u-boot 2016.3 with spl load bitstream patch
63 ln -sf ${BITSTREAM} ${DEPLOYDIR}/bitstream
64 fi 69 fi
65} 70}
66addtask deploy before do_build after do_install 71addtask deploy before do_build after do_install