diff options
author | Mark Hatle <mark.hatle@amd.com> | 2023-04-07 16:27:14 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2023-04-10 09:03:22 -0700 |
commit | 9ddf5784a6d39dbd9cd080941f16f351d5c7c53f (patch) | |
tree | 944084f3995e9eb47bbca6f6427310070ae8d17a /meta-xilinx-contrib | |
parent | 22a09beca042df108e582941651709bf915e6a02 (diff) | |
download | meta-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_%.bbappend | 2 | ||||
-rw-r--r-- | meta-xilinx-contrib/recipes-bsp/reference-design/zybo-linux-bd.bb | 21 |
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 @@ | |||
1 | COMPATIBLE_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" | |||
29 | FILES:${PN}-platform-init += "${PLATFORM_INIT_DIR}/*" | 29 | FILES:${PN}-platform-init += "${PLATFORM_INIT_DIR}/*" |
30 | 30 | ||
31 | FILES:${PN}-bitstream += " \ | 31 | FILES:${PN}-bitstream += " \ |
32 | download.bit \ | 32 | /boot/bitstream \ |
33 | " | 33 | " |
34 | 34 | ||
35 | PACKAGES = "${PN}-platform-init ${PN}-bitstream" | 35 | PACKAGES = "${PN}-platform-init ${PN}-bitstream" |
36 | 36 | ||
37 | BITSTREAM ?= "bitstream-${PV}-${PR}.bit" | 37 | inherit image-artifact-names |
38 | |||
39 | BITSTREAM_NAME ?= "download" | ||
40 | BITSTREAM_BASE_NAME ?= "${BITSTREAM_NAME}-${MACHINE}${IMAGE_VERSION_SUFFIX}" | ||
38 | 41 | ||
39 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 42 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
40 | 43 | ||
41 | inherit xilinx-platform-init | 44 | inherit xilinx-platform-init |
42 | inherit deploy | 45 | inherit deploy |
43 | 46 | ||
44 | SYSROOT_DIRS += "${PLATFORM_INIT_DIR}" | 47 | SYSROOT_DIRS += "${PLATFORM_INIT_DIR} /boot/bitstream" |
45 | 48 | ||
46 | do_install() { | 49 | do_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 | ||
57 | do_deploy () { | 64 | do_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 | } |
66 | addtask deploy before do_build after do_install | 71 | addtask deploy before do_build after do_install |