Skip to contentSkip to conversation

recipes-ti: Don't use deprecated functions from utils.bbclass

PATCH New Fabio Berton 1 participant 1 message Jan 30, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 recipes-ti: Don't use deprecated functions from utils.bbclass

From OE-Core commit c97acbd034532895ce57c6717ed1b3ccc7900b0d:

These functions were moved to meta/lib/oe in 2010 and the base_* functions in utils.bbclass were intended to be a short-term compatibility layer. They're still used in a few places, so update the callers to use the new functions.

---
 recipes-ti/dsplink/ti-dsplink.inc                         | 2 +-
 recipes-ti/local-power-manager/ti-local-power-manager.inc | 2 +-
 recipes-ti/syslink/ti-syslink.inc                         | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
recipes-ti/dsplink/ti-dsplink.inc +1 -1
index e0096155..606b9e5c 100644
@@ -150,7 +150,7 @@ do_compile() {
       all
 }
 
-KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"
+KERNEL_VERSION = "${@oe.utils.read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"
 
 do_install () {
 	
recipes-ti/local-power-manager/ti-local-power-manager.inc +1 -1
index 0e5d4f29..5321251a 100644
@@ -92,7 +92,7 @@ do_compile () {
     XDCPATH=${S} ${XDC_INSTALL_DIR}/xdc -PR .
 }
 
-KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"
+KERNEL_VERSION = "${@oe.utils.read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"
 
 do_install () {
 
recipes-ti/syslink/ti-syslink.inc +1 -1
index 5ff6af7c..0968a986 100644
@@ -181,7 +181,7 @@ do_compile() {
 	 `${XDC_INSTALL_DIR}/bin/xdcpkg ${SYSLINK_ROOT}/ti/syslink | grep samples`
 }
 
-KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"
+KERNEL_VERSION = "${@oe.utils.read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"
 
 do_install () {
 
Signature · 1 line
2.14.2