From fa5c18a91cfd0fa3478fb6ead2898ac9e1942bd9 Mon Sep 17 00:00:00 2001 From: Ting Liu Date: Thu, 7 May 2020 19:50:51 +0800 Subject: u-boot-qoriq: fix pylibfdt build with Python3 Backport patches to fix build failure on powerpc machines: | /bin/sh: 1: python2: not found | make[4]: *** [scripts/dtc/pylibfdt/_libfdt.so] Error 127 | make[3]: *** [scripts/dtc/pylibfdt] Error 2 Signed-off-by: Ting Liu --- .../0001-binman-Move-to-use-Python-3.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 recipes-bsp/u-boot/u-boot-qoriq/0001-binman-Move-to-use-Python-3.patch (limited to 'recipes-bsp/u-boot/u-boot-qoriq/0001-binman-Move-to-use-Python-3.patch') diff --git a/recipes-bsp/u-boot/u-boot-qoriq/0001-binman-Move-to-use-Python-3.patch b/recipes-bsp/u-boot/u-boot-qoriq/0001-binman-Move-to-use-Python-3.patch new file mode 100644 index 000000000..c1a05b327 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-qoriq/0001-binman-Move-to-use-Python-3.patch @@ -0,0 +1,30 @@ +From 388560134b99dc4cc752627d3a7e9f8c8c2a89a7 Mon Sep 17 00:00:00 2001 +From: Simon Glass +Date: Thu, 31 Oct 2019 07:43:05 -0600 +Subject: [PATCH] binman: Move to use Python 3 + +Update this tool to use Python 3 to meet the 2020 deadline. + +Unfortunately this introduces a test failure due to a problem in pylibfdt +on Python 3. I will investigate. + +Upstream-Status: Backport + +Signed-off-by: Simon Glass +--- + tools/binman/binman.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/binman/binman.py b/tools/binman/binman.py +index 8bd5868df2..9e6fd72117 100755 +--- a/tools/binman/binman.py ++++ b/tools/binman/binman.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python2 ++#!/usr/bin/env python3 + # SPDX-License-Identifier: GPL-2.0+ + + # Copyright (c) 2016 Google, Inc +-- +2.24.0 + -- cgit v1.2.3-54-g00ecf