summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2016-06-16 22:00:05 +1000
committerNathan Rossi <nathan@nathanrossi.com>2016-06-16 22:04:17 +1000
commit64a342a2d76c2397c5dff1815e6c78af9f86b9e5 (patch)
tree9226a0f4411740bfa1c94107a2da33412cc716f2
parent510c4faa2b42200e59231c7a97f6d530b1f31097 (diff)
downloadmeta-xilinx-64a342a2d76c2397c5dff1815e6c78af9f86b9e5.tar.gz
zynq7-platform-init.inc: Use the new SYSROOT_DIRS variable
Convert the sysroot stage functions into paths in the SYSROOT_DIRS variable. This variable was added to OE-Core (commit id 80e7e7f). Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
-rw-r--r--recipes-bsp/platform-init/zynq7-platform-init.inc6
-rw-r--r--recipes-bsp/reference-design/zybo-linux-bd.bb6
2 files changed, 4 insertions, 8 deletions
diff --git a/recipes-bsp/platform-init/zynq7-platform-init.inc b/recipes-bsp/platform-init/zynq7-platform-init.inc
index 9dfd94af..22824289 100644
--- a/recipes-bsp/platform-init/zynq7-platform-init.inc
+++ b/recipes-bsp/platform-init/zynq7-platform-init.inc
@@ -5,6 +5,8 @@ PROVIDES += "virtual/zynq7-platform-init"
5INHIBIT_DEFAULT_DEPS = "1" 5INHIBIT_DEFAULT_DEPS = "1"
6PACKAGE_ARCH = "${MACHINE_ARCH}" 6PACKAGE_ARCH = "${MACHINE_ARCH}"
7 7
8SYSROOT_DIRS += "${PLATFORM_INIT_DIR}"
9
8do_compile() { 10do_compile() {
9 : 11 :
10} 12}
@@ -13,10 +15,6 @@ do_install() {
13 install -d ${D}${PLATFORM_INIT_DIR} 15 install -d ${D}${PLATFORM_INIT_DIR}
14} 16}
15 17
16python sysroot_stage_all () {
17 oe.path.copytree(d.expand("${D}${PLATFORM_INIT_DIR}"), d.expand("${SYSROOT_DESTDIR}${PLATFORM_INIT_DIR}"))
18}
19
20FILES_${PN} += " \ 18FILES_${PN} += " \
21 ${PLATFORM_INIT_DIR}/ps7_init_gpl.c \ 19 ${PLATFORM_INIT_DIR}/ps7_init_gpl.c \
22 ${PLATFORM_INIT_DIR}/ps7_init_gpl.h \ 20 ${PLATFORM_INIT_DIR}/ps7_init_gpl.h \
diff --git a/recipes-bsp/reference-design/zybo-linux-bd.bb b/recipes-bsp/reference-design/zybo-linux-bd.bb
index e951f58e..a3968ac2 100644
--- a/recipes-bsp/reference-design/zybo-linux-bd.bb
+++ b/recipes-bsp/reference-design/zybo-linux-bd.bb
@@ -45,6 +45,8 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
45 45
46inherit zynq7-platform-paths 46inherit zynq7-platform-paths
47 47
48SYSROOT_DIRS += "${PLATFORM_INIT_DIR}"
49
48do_install() { 50do_install() {
49 fn=$(unzip -l ${S}/${HDF} | awk '{print $NF}' | grep ".bit$") 51 fn=$(unzip -l ${S}/${HDF} | awk '{print $NF}' | grep ".bit$")
50 unzip -o ${S}/${HDF} ${fn} -d ${D} 52 unzip -o ${S}/${HDF} ${fn} -d ${D}
@@ -56,10 +58,6 @@ do_install() {
56 done 58 done
57} 59}
58 60
59sysroot_stage_all () {
60 sysroot_stage_dir ${D}${PLATFORM_INIT_DIR} ${SYSROOT_DESTDIR}/${PLATFORM_INIT_DIR}
61}
62
63do_deploy () { 61do_deploy () {
64 if [ -e ${D}/download.bit ]; then 62 if [ -e ${D}/download.bit ]; then
65 install -d ${DEPLOY_DIR_IMAGE} 63 install -d ${DEPLOY_DIR_IMAGE}