[meta-freescale] [PATCH] rcw: export PYTHON to override the assignment in Makefile

Chunrong Guo B40290 at freescale.com
Thu Mar 23 00:00:56 PDT 2017


From: Chunrong Guo <chunrong.guo at nxp.com>

    On buildhosts where default python has switched to using python3
    fix the below error:
    |make[1]: python2: Command not found
    | ../Makefile.inc:14: recipe for target 'RR_FQPP_1455/rcw_uefi_1600.bin' faile
---
 recipes-bsp/rcw/rcw_git.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/recipes-bsp/rcw/rcw_git.bb b/recipes-bsp/rcw/rcw_git.bb
index 9fafa02..a5126ad 100644
--- a/recipes-bsp/rcw/rcw_git.bb
+++ b/recipes-bsp/rcw/rcw_git.bb
@@ -12,6 +12,8 @@ SRCREV = "7bd43d920065171a8d805a3d02fa4c0b39885664"
 
 S = "${WORKDIR}/git"
 
+export PYTHON = "${USRBINPATH}/python2"
+
 EXTRA_OEMAKE = "BOARDS=${@d.getVar('MACHINE', True).replace('-64b','').replace('-32b','')} DESTDIR=${D}/boot/rcw/"
 
 do_install () {
-- 
1.9.0



More information about the meta-freescale mailing list