fip: Fix pyc version dismatch error. [1/1]
PD#SWPL-176710
Problem:
python acs_tool.pyc would fail when python default version is 3.x.
Solution:
Use python2 rather than python to execute acs_tool.pyc.
Verify:
S400
Change-Id: Iae5515b3b2767ff6e820ad0807105f5bf321a465
Signed-off-by: hanliang.xiong <hanliang.xiong@amlogic.com>
diff --git a/axg/build.sh b/axg/build.sh
index 50baade..fe84430 100755
--- a/axg/build.sh
+++ b/axg/build.sh
@@ -146,7 +146,7 @@
bl30
# acs_tool process ddr timing and configurable parameters
- python ${FIP_FOLDER}/acs_tool.pyc ${BUILD_PATH}/${AML_BL2_NAME} ${BUILD_PATH}/bl2_acs.bin ${BUILD_PATH}/acs.bin 0
+ python2 ${FIP_FOLDER}/acs_tool.pyc ${BUILD_PATH}/${AML_BL2_NAME} ${BUILD_PATH}/bl2_acs.bin ${BUILD_PATH}/acs.bin 0
# fix bl2/bl21
fix_blx \
diff --git a/gxb/build.sh b/gxb/build.sh
index 3aafa71..b100d38 100755
--- a/gxb/build.sh
+++ b/gxb/build.sh
@@ -121,7 +121,7 @@
bl30
# acs_tool process ddr timing and configurable parameters
- python ${FIP_FOLDER}/acs_tool.pyc ${BUILD_PATH}/${AML_BL2_NAME} ${BUILD_PATH}/bl2_acs.bin ${BUILD_PATH}/acs.bin 0
+ python2 ${FIP_FOLDER}/acs_tool.pyc ${BUILD_PATH}/${AML_BL2_NAME} ${BUILD_PATH}/bl2_acs.bin ${BUILD_PATH}/acs.bin 0
# fix bl2/bl21
fix_blx \
diff --git a/gxl/build.sh b/gxl/build.sh
index d323da3..674f72a 100755
--- a/gxl/build.sh
+++ b/gxl/build.sh
@@ -146,7 +146,7 @@
bl30
# acs_tool process ddr timing and configurable parameters
- python ${FIP_FOLDER}/acs_tool.pyc ${BUILD_PATH}/${AML_BL2_NAME} ${BUILD_PATH}/bl2_acs.bin ${BUILD_PATH}/acs.bin 0
+ python2 ${FIP_FOLDER}/acs_tool.pyc ${BUILD_PATH}/${AML_BL2_NAME} ${BUILD_PATH}/bl2_acs.bin ${BUILD_PATH}/acs.bin 0
# fix bl2/bl21
fix_blx \
@@ -200,10 +200,10 @@
if [ "y" == "${CONFIG_AML_SIGNED_UBOOT}" ]; then
if [ -e "${BUILD_PATH}/bl2.v3.bin" ]; then
# acs_tool process ddr timing and configurable parameters
- python ${FIP_FOLDER}/acs_tool.pyc ${BUILD_PATH}/bl2.v3.bin ${BUILD_PATH}/bl2_acs.bin ${BUILD_PATH}/acs.bin 0
+ python2 ${FIP_FOLDER}/acs_tool.pyc ${BUILD_PATH}/bl2.v3.bin ${BUILD_PATH}/bl2_acs.bin ${BUILD_PATH}/acs.bin 0
else
# acs_tool process ddr timing and configurable parameters
- python ${FIP_FOLDER}/acs_tool.pyc ${BUILD_PATH}/bl2.bin ${BUILD_PATH}/bl2_acs.bin ${BUILD_PATH}/acs.bin 0
+ python2 ${FIP_FOLDER}/acs_tool.pyc ${BUILD_PATH}/bl2.bin ${BUILD_PATH}/bl2_acs.bin ${BUILD_PATH}/acs.bin 0
fi
# fix bl2/bl21
fix_blx \
diff --git a/gxtvbb/build.sh b/gxtvbb/build.sh
index 3aafa71..b100d38 100755
--- a/gxtvbb/build.sh
+++ b/gxtvbb/build.sh
@@ -121,7 +121,7 @@
bl30
# acs_tool process ddr timing and configurable parameters
- python ${FIP_FOLDER}/acs_tool.pyc ${BUILD_PATH}/${AML_BL2_NAME} ${BUILD_PATH}/bl2_acs.bin ${BUILD_PATH}/acs.bin 0
+ python2 ${FIP_FOLDER}/acs_tool.pyc ${BUILD_PATH}/${AML_BL2_NAME} ${BUILD_PATH}/bl2_acs.bin ${BUILD_PATH}/acs.bin 0
# fix bl2/bl21
fix_blx \
diff --git a/txhd/build.sh b/txhd/build.sh
index bc5e9fe..bf1d82e 100755
--- a/txhd/build.sh
+++ b/txhd/build.sh
@@ -146,7 +146,7 @@
bl30
# acs_tool process ddr timing and configurable parameters
- python ${FIP_FOLDER}/acs_tool.pyc ${BUILD_PATH}/${AML_BL2_NAME} ${BUILD_PATH}/bl2_acs.bin ${BUILD_PATH}/acs.bin 0
+ python2 ${FIP_FOLDER}/acs_tool.pyc ${BUILD_PATH}/${AML_BL2_NAME} ${BUILD_PATH}/bl2_acs.bin ${BUILD_PATH}/acs.bin 0
# fix bl2/bl21
fix_blx \
diff --git a/txl/build.sh b/txl/build.sh
index bc5e9fe..bf1d82e 100755
--- a/txl/build.sh
+++ b/txl/build.sh
@@ -146,7 +146,7 @@
bl30
# acs_tool process ddr timing and configurable parameters
- python ${FIP_FOLDER}/acs_tool.pyc ${BUILD_PATH}/${AML_BL2_NAME} ${BUILD_PATH}/bl2_acs.bin ${BUILD_PATH}/acs.bin 0
+ python2 ${FIP_FOLDER}/acs_tool.pyc ${BUILD_PATH}/${AML_BL2_NAME} ${BUILD_PATH}/bl2_acs.bin ${BUILD_PATH}/acs.bin 0
# fix bl2/bl21
fix_blx \
diff --git a/txlx/build.sh b/txlx/build.sh
index 50baade..fe84430 100755
--- a/txlx/build.sh
+++ b/txlx/build.sh
@@ -146,7 +146,7 @@
bl30
# acs_tool process ddr timing and configurable parameters
- python ${FIP_FOLDER}/acs_tool.pyc ${BUILD_PATH}/${AML_BL2_NAME} ${BUILD_PATH}/bl2_acs.bin ${BUILD_PATH}/acs.bin 0
+ python2 ${FIP_FOLDER}/acs_tool.pyc ${BUILD_PATH}/${AML_BL2_NAME} ${BUILD_PATH}/bl2_acs.bin ${BUILD_PATH}/acs.bin 0
# fix bl2/bl21
fix_blx \