[meta-xilinx] [meta-xilinx-tools][master][patch] device-tree: make do_compile_prepend a python function

Jean-Francois Dagenais jeff.dagenais at gmail.com
Thu Jan 24 09:32:47 PST 2019


Since device-tree.bb in meta-xilinx now inherits devicetree, which
defines the do_compile step as a python function, this bbappend needs to
comply with this.

Signed-off-by: Jean-Francois Dagenais <jeff.dagenais at gmail.com>
---
 recipes-bsp/device-tree/device-tree.bbappend | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-bsp/device-tree/device-tree.bbappend b/recipes-bsp/device-tree/device-tree.bbappend
index e077955..9589aac 100644
--- a/recipes-bsp/device-tree/device-tree.bbappend
+++ b/recipes-bsp/device-tree/device-tree.bbappend
@@ -69,7 +69,7 @@ do_compile_prepend_kc705-microblazeel() {
 }
 
 do_compile_prepend() {
-	[ -e ${DTS_FILES_PATH}/system.dts ] && rm ${DTS_FILES_PATH}/system.dts
+    bb.utils.remove(d.getVar('DTS_FILES_PATH') + '/system.dts')
 }
 
 DTB_BASE_NAME ?= "${MACHINE}-system-${DATETIME}"
-- 
2.11.0



More information about the meta-xilinx mailing list