[OpenPower-Firmware] [RFC PATCH 0/6] sbe: python3 build support

Marty E. Plummer hanetzer at startmail.com
Fri May 10 19:35:03 AEST 2019


Greetings,

Been doing some tinkering with the build scripts for sbe. I lack any
hardware to test it with, so I can't say that these actually 'work', but
it has been build-tested on witherspoon_defconfig in a debian strech
chroot (I'm a gentoo user, which is part of why I've been doing this
work), using both python 2.7.13 and 3.5.3.

I think I caught all the compat issues, but I could be mistaken. I'd
really appreciate it if someone could give this a test run.

Marty E. Plummer (6):
  treewide: use print function instead of statement
  securityRegListGen: use io.open and read in text mode.
  parsAndCutElf: convert line to str
  sbeCompression: use floor division
  sbeCompression: add a python3 compatible fallback
  updateBuildTag: convert proc.stdout.read() to str.

 src/boot/sbeCompression.py                    |  44 ++---
 src/build/parsAndCutElf.py                    |  11 +-
 src/build/sbeOpDistribute.py                  |   9 +-
 src/build/security/securityRegListGen.py      |  97 +++++-----
 src/build/updateBuildTag.py                   |  10 +-
 src/test/testcases/testAbort.py               |   1 +
 src/test/testcases/testAduMem_124B.py         |   5 +-
 src/test/testcases/testAduMem_ecc.py          |  13 +-
 src/test/testcases/testAduMem_itag.py         |  13 +-
 src/test/testcases/testAduMem_noEccNoItag.py  |  13 +-
 src/test/testcases/testAduMem_withEccItag.py  |  13 +-
 .../testAduMem_withEccWithItagReadWrite.py    |   1 +
 src/test/testcases/testCntlInstruction.py     |   1 +
 src/test/testcases/testContinueMpipl.py       |   1 +
 src/test/testcases/testContinueSbeBoot.py     |   1 +
 src/test/testcases/testEnterMpipl.py          |   1 +
 src/test/testcases/testExecutorCntrlTimer.py  |   9 +-
 src/test/testcases/testExecutorMemory.py      |  12 +-
 src/test/testcases/testExecutorPSU.py         |  18 +-
 src/test/testcases/testExecutorPutRing.py     |  20 +--
 src/test/testcases/testExecutorStopTimer.py   |  11 +-
 src/test/testcases/testFastArray.py           |   1 +
 src/test/testcases/testFifoReset.py           |   1 +
 src/test/testcases/testFlushNVDIMM.py         |   2 +-
 src/test/testcases/testGetCapabilities.py     |   3 +-
 src/test/testcases/testGetMem.py              |   1 +
 src/test/testcases/testGetMem_expdata.py      |   1 +
 src/test/testcases/testGetRing.py             |   1 +
 src/test/testcases/testHostFFDC.py            |   8 +-
 src/test/testcases/testIstepAuto.py           |   3 +-
 src/test/testcases/testIstepInvalid.py        |   1 +
 src/test/testcases/testIstepInvalidFenced.py  |   1 +
 src/test/testcases/testIstepSuccess.py        |   1 +
 src/test/testcases/testMatchStashPair.py      |   5 +-
 src/test/testcases/testMemPBA.py              |  37 ++--
 src/test/testcases/testMemUtil.py             |   7 +-
 src/test/testcases/testPSUGetCapabilities.py  |  14 +-
 src/test/testcases/testPSUReadSbeMem.py       |  22 +--
 src/test/testcases/testPSUSetFFDCAddr.py      |   5 +-
 src/test/testcases/testPSUSetStashPair.py     |  34 ++--
 src/test/testcases/testPSUUserUtil.py         |   4 +-
 src/test/testcases/testPSUUtil.py             |  81 ++++-----
 src/test/testcases/testPsuHostPassThrough.py  |  10 +-
 src/test/testcases/testPutGetRegFpr.py        |   1 +
 src/test/testcases/testPutGetRegGpr.py        |   1 +
 src/test/testcases/testPutGetRegSpr.py        |   1 +
 src/test/testcases/testPutMem_fail.py         |   1 +
 src/test/testcases/testQuiesce.py             |   1 +
 src/test/testcases/testRunTillSbeBooted.py    |   7 +-
 src/test/testcases/testSbeDump.py             |   3 +-
 src/test/testcases/testSecurity.py            |  59 ++++---
 src/test/testcases/testSecurityListDump.py    |   5 +-
 src/test/testcases/testSram.py                |  11 +-
 src/test/testcases/testStartInstruction.py    |   1 +
 src/test/testcases/testStopClocks.py          |   1 +
 src/test/testcases/testStopInstruction.py     |   1 +
 src/test/testcases/testSuspendIO.py           |   2 +-
 src/test/testcases/testSystemFabricMap.py     |   6 +-
 src/test/testcases/testTraceArray.py          |   1 +
 src/test/testcases/testUnsecureMemRegions.py  |   1 +
 src/test/testcases/testUtil.py                |   9 +-
 src/tools/debug/sbe-debug.py                  | 131 +++++++-------
 src/tools/debug/simics-debug-framework.py     |  45 ++---
 src/tools/utils/CommitSbeImageToCMVC.py       | 167 +++++++++---------
 src/tools/utils/cmvcRelease.py                |  25 +--
 src/tools/utils/sbeCmvcUtility.py             |  95 +++++-----
 src/tools/utils/sbePatchUtility.py            |  11 +-
 src/tools/utils/sbePrime.py                   | 105 +++++------
 68 files changed, 649 insertions(+), 589 deletions(-)

-- 
2.21.0



More information about the OpenPower-Firmware mailing list