summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core
diff options
context:
space:
mode:
authorSandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>2024-08-11 17:20:47 -0600
committerMark Hatle <mark.hatle@amd.com>2024-08-14 08:55:57 -0500
commit766d61fae70ad9029c7ce952ba7fb53af7c443fe (patch)
tree1d302980999dfd20705fe607c65c06a3f7f67968 /meta-xilinx-core
parent2da95beae0ffb61ade921c87e8c642fd5023c137 (diff)
downloadmeta-xilinx-766d61fae70ad9029c7ce952ba7fb53af7c443fe.tar.gz
bitstream_1.0.bb: Install and deploy bit file
1. Add recipe version to bitstream recipe. 2. Install and deploy bit file for non xsct builds, This is required for packaging bitstream to boot.bin when MACHINE_FEATURES=fpga-overlay is not set. Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core')
-rw-r--r--meta-xilinx-core/recipes-bsp/bitstream/bitstream_1.0.bb (renamed from meta-xilinx-core/recipes-bsp/bitstream/bitstream.bb)17
1 files changed, 14 insertions, 3 deletions
diff --git a/meta-xilinx-core/recipes-bsp/bitstream/bitstream.bb b/meta-xilinx-core/recipes-bsp/bitstream/bitstream_1.0.bb
index f61761f4..cf7ca100 100644
--- a/meta-xilinx-core/recipes-bsp/bitstream/bitstream.bb
+++ b/meta-xilinx-core/recipes-bsp/bitstream/bitstream_1.0.bb
@@ -24,13 +24,20 @@ BITSTREAM_PATH ?= ""
24 24
25inherit deploy 25inherit deploy
26 26
27BITSTREAM_NAME ?= "download"
28BITSTREAM_NAME:microblaze ?= "system"
29
30BITSTREAM_BASE_NAME ?= "${BITSTREAM_NAME}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
31
32SYSROOT_DIRS += "/boot/bitstream"
33
27do_install() { 34do_install() {
28 if [ ! -e ${BITSTREAM_PATH} ]; then 35 if [ ! -e ${BITSTREAM_PATH} ]; then
29 echo "Unable to find BITSTREAM_PATH (${BITSTREAM_PATH})" 36 echo "Unable to find BITSTREAM_PATH (${BITSTREAM_PATH})"
30 exit 1 37 exit 1
31 fi 38 fi
32 39 install -d ${D}/boot/bitstream/
33 install -Dm 0644 ${BITSTREAM_PATH} ${D}/boot/. 40 install -Dm 0644 ${BITSTREAM_PATH} ${D}/boot/bitstream/${BITSTREAM_BASE_NAME}.bit
34} 41}
35 42
36# If the item is already in OUR deploy_image_dir, nothing to deploy! 43# If the item is already in OUR deploy_image_dir, nothing to deploy!
@@ -38,10 +45,14 @@ SHOULD_DEPLOY = "${@'false' if (d.getVar('BITSTREAM_PATH')).startswith(d.getVar(
38do_deploy() { 45do_deploy() {
39 # If the item is already in OUR deploy_image_dir, nothing to deploy! 46 # If the item is already in OUR deploy_image_dir, nothing to deploy!
40 if ${SHOULD_DEPLOY}; then 47 if ${SHOULD_DEPLOY}; then
41 install -Dm 0644 ${BITSTREAM_PATH} ${DEPLOYDIR}/. 48 install -Dm 0644 ${BITSTREAM_PATH} ${DEPLOYDIR}/${BITSTREAM_BASE_NAME}.bit
42 fi 49 fi
43} 50}
44 51
52addtask deploy before do_build after do_install
53
54FILES:${PN} += "/boot/bitstream/*.bit"
55
45def check_bitstream_vars(d): 56def check_bitstream_vars(d):
46 # If BITSTREAM_PATH is not defined, we error and instruct the user 57 # If BITSTREAM_PATH is not defined, we error and instruct the user
47 # Don't cache this, as the items on disk can change! 58 # Don't cache this, as the items on disk can change!