summaryrefslogtreecommitdiffstats
path: root/src/build/linkerscripts
diff options
context:
space:
mode:
authorMarty E. Plummer <hanetzer@startmail.com>2019-05-10 03:12:09 -0500
committerRAJA DAS <rajadas2@in.ibm.com>2020-01-09 23:07:54 -0600
commit04a2b51f4c21e763ed9f0714b61360bdd69370a5 (patch)
treee93e832c5211b66007aa3846258e7870fee9cf8a /src/build/linkerscripts
parent1ccc5efffc9ca96f24acb98887cdd4759d9e541f (diff)
downloadtalos-sbe-04a2b51f4c21e763ed9f0714b61360bdd69370a5.tar.gz
talos-sbe-04a2b51f4c21e763ed9f0714b61360bdd69370a5.zip
sbeCompression: use floor division
python2 returns an integer when both division operands are integers. python3 will return a float in this situation. Use the floor division operator (//) which returns an integer on both versions. Without this change, building with python3.x (python3.5 tested) as /usr/bin/python will result in the following error: Traceback (most recent call last): File "sbe/src/boot/sbeCompression.py", line 198, in <module> main( sys.argv ) File "sbe/src/boot/sbeCompression.py", line 181, in main compress(imagePath + "/" + image + ".base", imagePath + "/" + image + ".base.compressed") File "sbe/src/boot/sbeCompression.py", line 58, in compress for i in range(0, os.stat(inputFile).st_size / 4 ): TypeError: 'float' object cannot be interpreted as an integer Change-Id: Ibd63e9d2739eb6cf23d79d739237537e05932b15 Signed-off-by: Marty E. Plummer <hanetzer@startmail.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/89371 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Srikantha S. Meesala <srikantha@in.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
Diffstat (limited to 'src/build/linkerscripts')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud