diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2016-09-03 23:27:18 +1000 |
---|---|---|
committer | Nathan Rossi <nathan@nathanrossi.com> | 2016-09-28 23:16:11 +1000 |
commit | 893ac4f2e357dccde3499d6750e1976a75e7a252 (patch) | |
tree | 998473a607b4f32b2c6b70224a18d6f839aa102c | |
parent | f5659468aaf63ee02a0cd6f26b0cc455f4c9e3b9 (diff) | |
download | meta-xilinx-893ac4f2e357dccde3499d6750e1976a75e7a252.tar.gz |
zybo-linux-bd: Use deploy class to handle shared state
Use the deploy class and DEPLOYDIR to ensure that deploy objects are
populated into the shared state cache. This ensures that the objects are
also correctly populated into the output deploy directory regardless of
whether the do_deploy task is executed.
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
-rw-r--r-- | recipes-bsp/reference-design/zybo-linux-bd.bb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/recipes-bsp/reference-design/zybo-linux-bd.bb b/recipes-bsp/reference-design/zybo-linux-bd.bb index a3968ac2..a6df84d8 100644 --- a/recipes-bsp/reference-design/zybo-linux-bd.bb +++ b/recipes-bsp/reference-design/zybo-linux-bd.bb | |||
@@ -44,6 +44,7 @@ BITSTREAM ?= "bitstream-${PV}-${PR}.bit" | |||
44 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 44 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
45 | 45 | ||
46 | inherit zynq7-platform-paths | 46 | inherit zynq7-platform-paths |
47 | inherit deploy | ||
47 | 48 | ||
48 | SYSROOT_DIRS += "${PLATFORM_INIT_DIR}" | 49 | SYSROOT_DIRS += "${PLATFORM_INIT_DIR}" |
49 | 50 | ||
@@ -60,11 +61,11 @@ do_install() { | |||
60 | 61 | ||
61 | do_deploy () { | 62 | do_deploy () { |
62 | if [ -e ${D}/download.bit ]; then | 63 | if [ -e ${D}/download.bit ]; then |
63 | install -d ${DEPLOY_DIR_IMAGE} | 64 | install -d ${DEPLOYDIR} |
64 | install -m 0644 ${D}/download.bit ${DEPLOY_DIR_IMAGE}/${BITSTREAM} | 65 | install -m 0644 ${D}/download.bit ${DEPLOYDIR}/${BITSTREAM} |
65 | ln -sf ${BITSTREAM} ${DEPLOY_DIR_IMAGE}/download.bit | 66 | ln -sf ${BITSTREAM} ${DEPLOYDIR}/download.bit |
66 | # for u-boot 2016.3 with spl load bitstream patch | 67 | # for u-boot 2016.3 with spl load bitstream patch |
67 | ln -sf ${BITSTREAM} ${DEPLOY_DIR_IMAGE}/bitstream | 68 | ln -sf ${BITSTREAM} ${DEPLOYDIR}/bitstream |
68 | fi | 69 | fi |
69 | } | 70 | } |
70 | addtask deploy before do_build after do_install | 71 | addtask deploy before do_build after do_install |