distribution/projects/Rockchip/packages/u-boot/patches/RK3588/002-python.patch

165 lines
4.6 KiB
Diff
Raw Normal View History

2023-01-11 21:31:08 +00:00
diff --git a/arch/arm/mach-rockchip/decode_bl31.py b/arch/arm/mach-rockchip/decode_bl31.py
index 42fa32d23..e71d1daf9 100755
--- a/arch/arm/mach-rockchip/decode_bl31.py
+++ b/arch/arm/mach-rockchip/decode_bl31.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
#
# Copyright (C) 2020 Rockchip Electronics Co., Ltd
#
diff --git a/arch/arm/mach-rockchip/make_fit_atf.py b/arch/arm/mach-rockchip/make_fit_atf.py
index fac8d6f12..c65963aa2 100755
--- a/arch/arm/mach-rockchip/make_fit_atf.py
+++ b/arch/arm/mach-rockchip/make_fit_atf.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
"""
A script to generate FIT image source for rockchip boards
with ARM Trusted Firmware
diff --git a/make.sh b/make.sh
index 233bc9aa3..d781b8b58 100755
--- a/make.sh
+++ b/make.sh
@@ -721,8 +721,8 @@ function pack_fit_image()
echo "ERROR: No 'dtc', please: apt-get install device-tree-compiler"
exit 1
elif [ "${ARM64_TRUSTZONE}" == "y" ]; then
- if ! which python2 >/dev/null 2>&1 ; then
- echo "ERROR: No python2"
+ if ! which python >/dev/null 2>&1 ; then
+ echo "ERROR: No python"
exit 1
fi
fi
@@ -785,7 +785,7 @@ select_ini_file
handle_args_late
sub_commands
clean_files
-make PYTHON=python2 CROSS_COMPILE=${TOOLCHAIN} all --jobs=${JOB}
+make PYTHON=python CROSS_COMPILE=${TOOLCHAIN} all --jobs=${JOB}
pack_images
finish
echo ${TOOLCHAIN}
diff --git a/scripts/dtc/pylibfdt/setup.py b/scripts/dtc/pylibfdt/setup.py
index 4f7cf042b..daf108942 100755
--- a/scripts/dtc/pylibfdt/setup.py
+++ b/scripts/dtc/pylibfdt/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
"""
setup.py file for SWIG libfdt
diff --git a/scripts/fill_scrapyard.py b/scripts/fill_scrapyard.py
index 9a9435494..3593af92c 100755
--- a/scripts/fill_scrapyard.py
+++ b/scripts/fill_scrapyard.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
#
# Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
#
diff --git a/scripts/mailmapper b/scripts/mailmapper
index 78b23d152..922ada6f5 100755
--- a/scripts/mailmapper
+++ b/scripts/mailmapper
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
#
# Copyright (C) 2014, Masahiro Yamada <yamada.m@jp.panasonic.com>
#
diff --git a/test/py/test.py b/test/py/test.py
index 4695079ef..74e560a4d 100755
--- a/test/py/test.py
+++ b/test/py/test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
# Copyright (c) 2015 Stephen Warren
# Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved.
diff --git a/tools/binman/binman.py b/tools/binman/binman.py
index e75a59d95..96093493b 100755
--- a/tools/binman/binman.py
+++ b/tools/binman/binman.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
# Copyright (c) 2016 Google, Inc
# Written by Simon Glass <sjg@chromium.org>
diff --git a/tools/buildman/buildman.py b/tools/buildman/buildman.py
index f5c4b047d..607429df7 100755
--- a/tools/buildman/buildman.py
+++ b/tools/buildman/buildman.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
#
# Copyright (c) 2012 The Chromium OS Authors.
#
diff --git a/tools/dtoc/dtoc.py b/tools/dtoc/dtoc.py
index 6eacfc90a..49b3326ad 100755
--- a/tools/dtoc/dtoc.py
+++ b/tools/dtoc/dtoc.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
#
# Copyright (C) 2016 Google, Inc
# Written by Simon Glass <sjg@chromium.org>
diff --git a/tools/genboardscfg.py b/tools/genboardscfg.py
index 2345a1979..9ef4fd007 100755
--- a/tools/genboardscfg.py
+++ b/tools/genboardscfg.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
#
# Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
#
diff --git a/tools/microcode-tool.py b/tools/microcode-tool.py
index 069d961d8..790c27e45 100755
--- a/tools/microcode-tool.py
+++ b/tools/microcode-tool.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
#
# Copyright (c) 2014 Google, Inc
#
diff --git a/tools/moveconfig.py b/tools/moveconfig.py
index 6f549a51c..db3cf6e44 100755
--- a/tools/moveconfig.py
+++ b/tools/moveconfig.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
#
# Author: Masahiro Yamada <yamada.masahiro@socionext.com>
#
diff --git a/tools/patman/patman.py b/tools/patman/patman.py
index 7647440be..4b3bc7874 100755
--- a/tools/patman/patman.py
+++ b/tools/patman/patman.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
#
# Copyright (c) 2011 The Chromium OS Authors.
#
diff --git a/tools/rkmux.py b/tools/rkmux.py
index 11c192a07..4c1469e62 100755
--- a/tools/rkmux.py
+++ b/tools/rkmux.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
# Script to create enums from datasheet register tables
#