diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2016-06-16 22:00:05 +1000 |
---|---|---|
committer | Nathan Rossi <nathan@nathanrossi.com> | 2016-06-16 22:04:17 +1000 |
commit | 64a342a2d76c2397c5dff1815e6c78af9f86b9e5 (patch) | |
tree | 9226a0f4411740bfa1c94107a2da33412cc716f2 | |
parent | 510c4faa2b42200e59231c7a97f6d530b1f31097 (diff) | |
download | meta-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.inc | 6 | ||||
-rw-r--r-- | recipes-bsp/reference-design/zybo-linux-bd.bb | 6 |
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" | |||
5 | INHIBIT_DEFAULT_DEPS = "1" | 5 | INHIBIT_DEFAULT_DEPS = "1" |
6 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 6 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
7 | 7 | ||
8 | SYSROOT_DIRS += "${PLATFORM_INIT_DIR}" | ||
9 | |||
8 | do_compile() { | 10 | do_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 | ||
16 | python sysroot_stage_all () { | ||
17 | oe.path.copytree(d.expand("${D}${PLATFORM_INIT_DIR}"), d.expand("${SYSROOT_DESTDIR}${PLATFORM_INIT_DIR}")) | ||
18 | } | ||
19 | |||
20 | FILES_${PN} += " \ | 18 | FILES_${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 | ||
46 | inherit zynq7-platform-paths | 46 | inherit zynq7-platform-paths |
47 | 47 | ||
48 | SYSROOT_DIRS += "${PLATFORM_INIT_DIR}" | ||
49 | |||
48 | do_install() { | 50 | do_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 | ||
59 | sysroot_stage_all () { | ||
60 | sysroot_stage_dir ${D}${PLATFORM_INIT_DIR} ${SYSROOT_DESTDIR}/${PLATFORM_INIT_DIR} | ||
61 | } | ||
62 | |||
63 | do_deploy () { | 61 | do_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} |