From 7ec15c82f4c8994021be25b42771d3b457068f44 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Sat, 17 Nov 2018 09:47:27 +0100 Subject: [PATCH] util: Fix shebang for python2 scripts Python 3 is the default Python interpreter on most modern systems. Python 2 scripts must specify they should be run with Python 2 in their shebang. Solves issue raised in CB:28953. Change-Id: I9ace4afd668539c05e7ace30e255af50c7a069c2 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/29666 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- util/cavium/devicetree_convert.py | 2 +- util/ipqheader/createxbl.py | 2 +- util/ipqheader/mbn_tools.py | 2 +- util/lint/checkpatch_json.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 util/cavium/devicetree_convert.py diff --git a/util/cavium/devicetree_convert.py b/util/cavium/devicetree_convert.py old mode 100644 new mode 100755 index 656fdf6c34..827e5a7a6a --- a/util/cavium/devicetree_convert.py +++ b/util/cavium/devicetree_convert.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # devicetree_convert Tool to convert a DTB to a static C file # Copyright (C) 2018 Facebook Inc. diff --git a/util/ipqheader/createxbl.py b/util/ipqheader/createxbl.py index 7f2d987319..1efd8bac0c 100755 --- a/util/ipqheader/createxbl.py +++ b/util/ipqheader/createxbl.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 #============================================================================ # #/** @file createxbl.py diff --git a/util/ipqheader/mbn_tools.py b/util/ipqheader/mbn_tools.py index 8a17563606..c66afda7b5 100755 --- a/util/ipqheader/mbn_tools.py +++ b/util/ipqheader/mbn_tools.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 #=============================================================================== # # MBN TOOLS diff --git a/util/lint/checkpatch_json.py b/util/lint/checkpatch_json.py index 74ad96a100..c8dd36df44 100755 --- a/util/lint/checkpatch_json.py +++ b/util/lint/checkpatch_json.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # Copyright (C) 2018 Intel Corporation. # written by Naresh G Solanki and # Maulik V Vaghela