[OpenPower-Firmware] sbe fails to build, parsAndCutElf.py should be objcopy?

Stewart Smith stewart at flamingspork.com
Mon Jan 25 13:11:01 AEDT 2021


On Fedora 33 (x86-64) current op-build (and v2.6) fails to build in the SBE code as it errors out in src/build/parsAndCutElf.py

Even with the below "fix" I still end up getting errors as we hit the
    if( (startSize == 0) or (endSize == 0)):
        exit(-1)
chunk later. So... I'm trying to work out what this script does that couldn't be achieved with objcopy.

Anyone have any ideas?

--- a/src/build/parsAndCutElf.py
+++ b/src/build/parsAndCutElf.py
@@ -44,7 +45,11 @@ def parserElf(argv):
     cmd = "readelf -S "+SBE_OUT
     firstSection = ".header"
     cmd1 = "nm "+SBE_OUT+" | grep  _sbe_image_size"
+    print("cmd = {}".format(cmd))
+    print("cmd1 = {}".format(cmd1))
     output = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE)
+    startSize = 0
+    endSize = 0
     i = 0;
     for line in output.stdout:
         line = str(line.strip())


-- 
  Stewart Smith
  stewart at flamingspork.com


More information about the OpenPower-Firmware mailing list