From 2f1346f7980a78d71eec346d3d74bce98b5836c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Trung=20L=C3=AA?= <8@tle.id.au> Date: Tue, 9 Jun 2026 10:55:39 +1000 Subject: [PATCH] sbe: use python3 for build scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Modern host distros no longer ship python2. The SBE build invokes python2 for buildInfo.py / securityRegListGen.py and via #!/usr/bin/python2 shebangs; these scripts are python3-compatible, so call python3. Signed-off-by: Trung LĂȘ <8@tle.id.au> --- src/boot/sbeCompression.py | 2 +- src/build/Makefile | 4 ++-- src/build/buildInfo.py | 2 +- src/build/parsAndCutElf.py | 2 +- src/build/updateBuildTag.py | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/boot/sbeCompression.py b/src/boot/sbeCompression.py index 39abb4282..85c4a14f3 100755 --- a/src/boot/sbeCompression.py +++ b/src/boot/sbeCompression.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/python3 # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # diff --git a/src/build/Makefile b/src/build/Makefile index eb58244a9..0470f2a85 100644 --- a/src/build/Makefile +++ b/src/build/Makefile @@ -244,7 +244,7 @@ report: $(P9_XIP_TOOL) $(IMG_DIR)/$(IMAGE_NAME).bin # Create build Info file buildInfo: - python2 buildInfo.py $(GENFILES_DIR) + python3 buildInfo.py $(GENFILES_DIR) buildtag: ./updateBuildTag.py $(P9_XIP_TOOL) $(IMG_DIR) $(IMAGE_NAME) @@ -321,7 +321,7 @@ ppe_trace_bin: # generate whitelist and blacklist security algorithm security: $(OBJDIR) - python2 $(SECURITY_SRC_DIR)/securityRegListGen.py -f $(SECURITY_LIST) -o $(GENFILES_DIR) + python3 $(SECURITY_SRC_DIR)/securityRegListGen.py -f $(SECURITY_LIST) -o $(GENFILES_DIR) # Build hwp_error_info.H. If the script fails then print the contents of # the header and then delete whatever garbage the script left to force it to diff --git a/src/build/buildInfo.py b/src/build/buildInfo.py index 0ed4264b1..9ee9c0ef1 100755 --- a/src/build/buildInfo.py +++ b/src/build/buildInfo.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/python3 # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # diff --git a/src/build/parsAndCutElf.py b/src/build/parsAndCutElf.py index 94742d3e7..6502fdd8c 100755 --- a/src/build/parsAndCutElf.py +++ b/src/build/parsAndCutElf.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/python3 # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # diff --git a/src/build/updateBuildTag.py b/src/build/updateBuildTag.py index d812cb058..2b4b9ca05 100755 --- a/src/build/updateBuildTag.py +++ b/src/build/updateBuildTag.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/python3 # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. #