Update this recipe to use the new class, and change the virtual provider to the more generic 'virtual/xilinx-platform-init'.
Additionally simplify the FILES_${PN}-platform-init paths, and take advantage of the PLATFORM_INIT_FILES variable. Signed-off-by: Nathan Rossi <nat...@nathanrossi.com> --- recipes-bsp/reference-design/zybo-linux-bd.bb | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/recipes-bsp/reference-design/zybo-linux-bd.bb b/recipes-bsp/reference-design/zybo-linux-bd.bb index 8920580221..be68918cfe 100644 --- a/recipes-bsp/reference-design/zybo-linux-bd.bb +++ b/recipes-bsp/reference-design/zybo-linux-bd.bb @@ -24,15 +24,9 @@ HDF = "/Projects/${HW_BD}/hw_handoff/${HW_BD}_wrapper.hdf" S ?= "${WORKDIR}/${MACHINE}" -PROVIDES = "virtual/bitstream virtual/zynq7-platform-init" +PROVIDES = "virtual/bitstream virtual/xilinx-platform-init" -PLATFORM_INIT ?= "ps7_init_gpl.c \ - ps7_init_gpl.h" - -FILES_${PN}-platform-init += " \ - ${PLATFORM_INIT_DIR}/ps7_init_gpl.c \ - ${PLATFORM_INIT_DIR}/ps7_init_gpl.h \ - " +FILES_${PN}-platform-init += "${PLATFORM_INIT_DIR}/*" FILES_${PN}-bitstream += " \ download.bit \ @@ -44,7 +38,7 @@ BITSTREAM ?= "bitstream-${PV}-${PR}.bit" PACKAGE_ARCH = "${MACHINE_ARCH}" -inherit zynq7-platform-paths +inherit xilinx-platform-init inherit deploy SYSROOT_DIRS += "${PLATFORM_INIT_DIR}" @@ -55,7 +49,7 @@ do_install() { [ "${fn}" == "download.bit" ] || mv ${D}/${fn} ${D}/download.bit install -d ${D}${PLATFORM_INIT_DIR} - for fn in ${PLATFORM_INIT}; do + for fn in ${PLATFORM_INIT_FILES}; do unzip -o ${S}/${HDF} ${fn} -d ${D}${PLATFORM_INIT_DIR} done } -- 2.11.0 -- _______________________________________________ meta-xilinx mailing list meta-xilinx@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-xilinx