1
0
Fork 0

scripts: Switch to more portable python3

Signed-off-by: Jensen Huang <jensenhuang@friendlyarm.com>
master
Jensen Huang 6 months ago
parent d32b0683c6
commit f22eaf5fcb

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# SPDX-License-Identifier: GPL-2.0 */ # SPDX-License-Identifier: GPL-2.0 */
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-

@ -1,4 +1,4 @@
#!/usr/bin/env python2 #!/usr/bin/env python3
# #
# Copyright (C) 2020 Rockchip Electronics Co., Ltd # Copyright (C) 2020 Rockchip Electronics Co., Ltd
# #

@ -1,4 +1,4 @@
#!/usr/bin/env python2 #!/usr/bin/env python3
""" """
A script to generate FIT image source for rockchip boards A script to generate FIT image source for rockchip boards
with ARM Trusted Firmware with ARM Trusted Firmware

@ -725,8 +725,8 @@ function pack_fit_image()
echo "ERROR: No 'dtc', please: apt-get install device-tree-compiler" echo "ERROR: No 'dtc', please: apt-get install device-tree-compiler"
exit 1 exit 1
elif [ "${ARM64_TRUSTZONE}" == "y" ]; then elif [ "${ARM64_TRUSTZONE}" == "y" ]; then
if ! which python2 >/dev/null 2>&1 ; then if ! which python3 >/dev/null 2>&1 ; then
echo "ERROR: No python2" echo "ERROR: No python3"
exit 1 exit 1
fi fi
fi fi
@ -792,7 +792,7 @@ select_ini_file
handle_args_late handle_args_late
sub_commands sub_commands
clean_files clean_files
make PYTHON=python2 CROSS_COMPILE=${TOOLCHAIN} all --jobs=${JOB} make PYTHON=python3 CROSS_COMPILE=${TOOLCHAIN} all --jobs=${JOB}
pack_images pack_images
finish finish
echo ${TOOLCHAIN} echo ${TOOLCHAIN}

Loading…
Cancel
Save