PEL: Add BMC uptime to PELs in UserData section

A UserData section has been added to each PEL with additional debug
information, now there is a need to add the output of the uptime
command to UserData and display it, but for Hostboot doesn't care
about this property, so skip adding it here it.

Tested: unit test passed
"User Data 0": {
    "Section Version": "1",
    "Sub-section type": "1",
    "Created by": "0x2000",
    ...
    "Uptime": "3y 332d 21h 33m 9s",
    "Load": "1.47 0.94 0.61",
},

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I3d4c78bb1650da9a91804fc83de60597992ffc8a
diff --git a/extensions/openpower-pels/pel.hpp b/extensions/openpower-pels/pel.hpp
index 5edcf10..631cbdb 100644
--- a/extensions/openpower-pels/pel.hpp
+++ b/extensions/openpower-pels/pel.hpp
@@ -429,12 +429,15 @@
  *
  * @param[in] ad - The AdditionalData contents
  * @param[in] dataIface - The data interface object
+ * @param[in] addUptime - Whether to add the uptime attribute the default is
+ *                        true
  *
  * @return std::unique_ptr<UserData> - The section
  */
 std::unique_ptr<UserData>
     makeSysInfoUserDataSection(const AdditionalData& ad,
-                               const DataInterfaceBase& dataIface);
+                               const DataInterfaceBase& dataIface,
+                               bool addUptime = true);
 
 /**
  * @brief Reads data from an opened file descriptor.