Some of our python3 scripts are python3 only.
We can't assume python is python3 on build platforms.
Explictly use python3 for running those scripts.
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
---
Makefile | 2 +-
scripts/buildrom.py | 2 +-
scripts/buildversion.py | 2 +-
scripts/checkrom.py | 2 +-
scripts/checkstack.py | 2 +-
scripts/checksum.py | 2 +-
scripts/encodeint.py | 2 +-
scripts/layoutrom.py | 2 +-
scripts/ldnoexec.py | 2 +-
scripts/readserial.py | 2 +-
scripts/transdump.py | 2 +-
scripts/vgafixup.py | 2 +-
12 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/Makefile b/Makefile
index b5660928c2056970e3174be368e65752a948f16a..64bd55d997009b2838d7ede437ca7dd5e860d84e 100644
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,7 @@ LD=$(CROSS_PREFIX)ld
OBJCOPY=$(CROSS_PREFIX)objcopy
OBJDUMP=$(CROSS_PREFIX)objdump
STRIP=$(CROSS_PREFIX)strip
-PYTHON=python
+PYTHON=python3
LD32BIT_FLAG:=-melf_i386
# Source files
diff --git a/scripts/buildrom.py b/scripts/buildrom.py
index 48bfc177d27f1a4eb4984f5d1a1ff12413cceb6e..a4a7b95f8d3170bf5f231e6f41eda17953cd2134 100755
--- a/scripts/buildrom.py
+++ b/scripts/buildrom.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Fill in checksum/size of an option rom, and pad it to proper length.
#
# Copyright (C) 2009 Kevin O'Connor <kevin@koconnor.net>
diff --git a/scripts/buildversion.py b/scripts/buildversion.py
index 8875497cb72cb26f6e438d10419c4583b61c5b64..13624ce8aa996e805e9c7cd08920e2608d504869 100755
--- a/scripts/buildversion.py
+++ b/scripts/buildversion.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Generate version information for a program
#
# Copyright (C) 2015 Kevin O'Connor <kevin@koconnor.net>
diff --git a/scripts/checkrom.py b/scripts/checkrom.py
index a5b15a4c2816cffecc99dc9e2da6e3d9f87f2bb6..7d73eebb67db229c4bee2c977dee764dd7ff22cb 100755
--- a/scripts/checkrom.py
+++ b/scripts/checkrom.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Script to check a bios image and report info on it.
#
# Copyright (C) 2008 Kevin O'Connor <kevin@koconnor.net>
diff --git a/scripts/checkstack.py b/scripts/checkstack.py
index 255768aebce0341f0bb06d13973e653735aa5154..3bb58bc8d5f5e021ec1cbe2f74e4c6b3a641e6a9 100755
--- a/scripts/checkstack.py
+++ b/scripts/checkstack.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Script that tries to find how much stack space each function in an
# object is using.
#
diff --git a/scripts/checksum.py b/scripts/checksum.py
index 773fa7aa9f956385ea20e055275b481adec8b4a4..87cce60319a43b256c2689ef282b19d6b68c2121 100755
--- a/scripts/checksum.py
+++ b/scripts/checksum.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Script to report the checksum of a file.
#
# Copyright (C) 2009 Kevin O'Connor <kevin@koconnor.net>
diff --git a/scripts/encodeint.py b/scripts/encodeint.py
index 0d34aee071ffea8fd7b489cfae82fcc6e6528091..e861d8156b0db440f8301dd539115e739bfbadf8 100755
--- a/scripts/encodeint.py
+++ b/scripts/encodeint.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Encode an integer in little endian format in a file.
#
# Copyright (C) 2011 Kevin O'Connor <kevin@koconnor.net>
diff --git a/scripts/layoutrom.py b/scripts/layoutrom.py
index abebf0211fa9627cec31cce76b8d55e688445b45..a193f258123bd36e8c6bdf455aff6584d4216efd 100755
--- a/scripts/layoutrom.py
+++ b/scripts/layoutrom.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Script to analyze code and arrange ld sections.
#
# Copyright (C) 2008-2014 Kevin O'Connor <kevin@koconnor.net>
diff --git a/scripts/ldnoexec.py b/scripts/ldnoexec.py
index 60bed078866363a52c573360b3426dc91af0ebc1..97e0f387c9fa88e8d3cc958922ee90d3d93db166 100755
--- a/scripts/ldnoexec.py
+++ b/scripts/ldnoexec.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Script to remove EXEC flag from an ELF file
#
# Copyright (C) 2020 Kevin O'Connor <kevin@koconnor.net>
diff --git a/scripts/readserial.py b/scripts/readserial.py
index e3f56e5da57c1a97c59ab856f82fae6c2346363c..b64fe07dc9bd709d8fd56fa1123c4e0fa2a45cd5 100755
--- a/scripts/readserial.py
+++ b/scripts/readserial.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Script that can read from a serial device and show timestamps.
#
# Copyright (C) 2009 Kevin O'Connor <kevin@koconnor.net>
diff --git a/scripts/transdump.py b/scripts/transdump.py
index 665f04a000fccd9250a94357be9c16891a45c855..9877b33a2380a61138c4c6236dec059be2e87b95 100755
--- a/scripts/transdump.py
+++ b/scripts/transdump.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# This script is useful for taking the output of memdump() and
# converting it back into binary output. This can be useful, for
diff --git a/scripts/vgafixup.py b/scripts/vgafixup.py
index 2053cd5d78e5935658e1fecec074b258ba1d75ba..01ec81496a18995197b4095217fbe25fd90b081d 100644
--- a/scripts/vgafixup.py
+++ b/scripts/vgafixup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Work around x86emu bugs by replacing problematic instructions.
#
# Copyright (C) 2012 Kevin O'Connor <kevin@koconnor.net>
--
2.43.0
_______________________________________________
SeaBIOS mailing list -- seabios@seabios.org
To unsubscribe send an email to seabios-leave@seabios.org