public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH] edk2-staging/RedfishClientPkg: Add the helper library
@ 2021-10-28 14:01 Abner Chang
  2021-10-29  8:00 ` Nickle Wang
  0 siblings, 1 reply; 2+ messages in thread
From: Abner Chang @ 2021-10-28 14:01 UTC (permalink / raw)
  To: devel; +Cc: abner.chang, Nickle Wang, Liming Gao

Add the helper library of converter common functions.

Signed-off-by: Abner Chang <abner.chang@hpe.com>
Cc: Nickle Wang <nickle.wang@hpe.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
---
 RedfishClientPkg/RedfishClientLibs.dsc.inc    |  1 +
 .../ConverterCommonLib/ConverterCommonLib.inf | 44 +++++++++++++++++++
 .../ConverterCommonLib/RedfishCsCommon.h      | 14 ++++++
 .../ConverterCommonLib/RedfishDataTypeDef.h   | 13 ++++++
 4 files changed, 72 insertions(+)
 create mode 100644 RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/ConverterCommonLib.inf
 create mode 100644 RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishCsCommon.h
 create mode 100644 RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishDataTypeDef.h

diff --git a/RedfishClientPkg/RedfishClientLibs.dsc.inc b/RedfishClientPkg/RedfishClientLibs.dsc.inc
index 4655dd7081b..a23b9478af1 100644
--- a/RedfishClientPkg/RedfishClientLibs.dsc.inc
+++ b/RedfishClientPkg/RedfishClientLibs.dsc.inc
@@ -20,4 +20,5 @@
   RedfishFeatureUtilityLib|RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.inf
   RedfishPlatformConfigLib|RedfishPkg/Library/RedfishPlatformConfigLib/RedfishPlatformConfigLib.inf
   RedfishContentCodingLib|RedfishPkg/Library/RedfishContentCodingLibNull/RedfishContentCodingLibNull.inf
+  ConverterCommonLib|RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/ConverterCommonLib.inf
 
diff --git a/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/ConverterCommonLib.inf b/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/ConverterCommonLib.inf
new file mode 100644
index 00000000000..9311e5a5c64
--- /dev/null
+++ b/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/ConverterCommonLib.inf
@@ -0,0 +1,44 @@
+## @file
+#  This is the helper library of converter
+#
+#  (C) Copyright 2021 Hewlett Packard Enterprise Development LP<BR>
+#  SPDX-License-Identifier: BSD-2-Clause-Patent
+#
+#
+[Defines]
+INF_VERSION                    = 0x00010006
+BASE_NAME                      = ConverterCommonLib
+FILE_GUID                      = B70BDFAE-4D07-9B07-FD24-42AA235D6108
+MODULE_TYPE                    = BASE
+VERSION_STRING                 = 1.0
+LIBRARY_CLASS                  = ConverterCommonLib | DXE_DRIVER DXE_RUNTIME_DRIVER UEFI_APPLICATION UEFI_DRIVER
+#
+# The following information is for reference only and not required by the build tools.
+#
+#  VALID_ARCHITECTURES          = IA32 X64 IPF EBC RISCV64
+#
+
+[Sources]
+  ../../src/RedfishCsCommon.c
+  ../../src/RedfishCsMemory.c
+
+[Packages]
+  MdePkg/MdePkg.dec
+  RedfishPkg/RedfishPkg.dec
+  RedfishClientPkg/RedfishClientPkg.dec
+
+[LibraryClasses]
+  BaseLib
+  BaseMemoryLib
+  DebugLib
+  MemoryAllocationLib
+  JsonLib
+
+[BuildOptions]
+  #
+  # Disables the following Visual Studio compiler warnings
+  # so we do not break the build with /WX option:
+  #   C4706: assignment within conditional expression
+  #
+  MSFT:*_*_*_CC_FLAGS = /wd4706
+
diff --git a/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishCsCommon.h b/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishCsCommon.h
new file mode 100644
index 00000000000..37467378733
--- /dev/null
+++ b/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishCsCommon.h
@@ -0,0 +1,14 @@
+/** @file
+  Wrapper file for RedfishCsCommon.h
+
+  (C) Copyright 2021 Hewlett Packard Enterprise Development LP<BR>
+  SPDX-License-Identifier: BSD-2-Clause-Patent
+
+**/
+
+#ifndef WRAPPER_REDFISH_CS_COMMON_H_
+#define WRAPPER_REDFISH_CS_COMMON_H_
+
+#include "../../include/RedfishCsCommon.h"
+
+#endif
diff --git a/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishDataTypeDef.h b/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishDataTypeDef.h
new file mode 100644
index 00000000000..4a8410d82e2
--- /dev/null
+++ b/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishDataTypeDef.h
@@ -0,0 +1,13 @@
+/** @file
+  Wrapper file for RedfishDataTypeDef.h
+
+  (C) Copyright 2021 Hewlett Packard Enterprise Development LP<BR>
+  SPDX-License-Identifier: BSD-2-Clause-Patent
+
+**/
+#ifndef WRAPPER_REDFISH_DATA_TYPE_H_
+#define WRAPPER_REDFISH_DATA_TYPE_H_
+
+#include "../../include/RedfishDataTypeDef.h"
+
+#endif
-- 
2.21.0.windows.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] edk2-staging/RedfishClientPkg: Add the helper library
  2021-10-28 14:01 [PATCH] edk2-staging/RedfishClientPkg: Add the helper library Abner Chang
@ 2021-10-29  8:00 ` Nickle Wang
  0 siblings, 0 replies; 2+ messages in thread
From: Nickle Wang @ 2021-10-29  8:00 UTC (permalink / raw)
  To: Chang, Abner (HPS SW/FW Technologist), devel@edk2.groups.io; +Cc: Liming Gao

Reviewed-by: Nickle Wang <nickle.wang@hpe.com>

Thanks,
Nickle

-----Original Message-----
From: Chang, Abner (HPS SW/FW Technologist) <abner.chang@hpe.com> 
Sent: Thursday, October 28, 2021 10:02 PM
To: devel@edk2.groups.io
Cc: Chang, Abner (HPS SW/FW Technologist) <abner.chang@hpe.com>; Wang, Nickle (HPS SW) <nickle.wang@hpe.com>; Liming Gao <gaoliming@byosoft.com.cn>
Subject: [PATCH] edk2-staging/RedfishClientPkg: Add the helper library

Add the helper library of converter common functions.

Signed-off-by: Abner Chang <abner.chang@hpe.com>
Cc: Nickle Wang <nickle.wang@hpe.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
---
 RedfishClientPkg/RedfishClientLibs.dsc.inc    |  1 +
 .../ConverterCommonLib/ConverterCommonLib.inf | 44 +++++++++++++++++++
 .../ConverterCommonLib/RedfishCsCommon.h      | 14 ++++++
 .../ConverterCommonLib/RedfishDataTypeDef.h   | 13 ++++++
 4 files changed, 72 insertions(+)
 create mode 100644 RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/ConverterCommonLib.inf
 create mode 100644 RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishCsCommon.h
 create mode 100644 RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishDataTypeDef.h

diff --git a/RedfishClientPkg/RedfishClientLibs.dsc.inc b/RedfishClientPkg/RedfishClientLibs.dsc.inc
index 4655dd7081b..a23b9478af1 100644
--- a/RedfishClientPkg/RedfishClientLibs.dsc.inc
+++ b/RedfishClientPkg/RedfishClientLibs.dsc.inc
@@ -20,4 +20,5 @@
   RedfishFeatureUtilityLib|RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.inf
   RedfishPlatformConfigLib|RedfishPkg/Library/RedfishPlatformConfigLib/RedfishPlatformConfigLib.inf
   RedfishContentCodingLib|RedfishPkg/Library/RedfishContentCodingLibNull/RedfishContentCodingLibNull.inf
+  ConverterCommonLib|RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/ConverterCommonLib.inf
 
diff --git a/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/ConverterCommonLib.inf b/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/ConverterCommonLib.inf
new file mode 100644
index 00000000000..9311e5a5c64
--- /dev/null
+++ b/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/ConverterCommonLib.inf
@@ -0,0 +1,44 @@
+## @file
+#  This is the helper library of converter
+#
+#  (C) Copyright 2021 Hewlett Packard Enterprise Development LP<BR>
+#  SPDX-License-Identifier: BSD-2-Clause-Patent
+#
+#
+[Defines]
+INF_VERSION                    = 0x00010006
+BASE_NAME                      = ConverterCommonLib
+FILE_GUID                      = B70BDFAE-4D07-9B07-FD24-42AA235D6108
+MODULE_TYPE                    = BASE
+VERSION_STRING                 = 1.0
+LIBRARY_CLASS                  = ConverterCommonLib | DXE_DRIVER DXE_RUNTIME_DRIVER UEFI_APPLICATION UEFI_DRIVER
+#
+# The following information is for reference only and not required by the build tools.
+#
+#  VALID_ARCHITECTURES          = IA32 X64 IPF EBC RISCV64
+#
+
+[Sources]
+  ../../src/RedfishCsCommon.c
+  ../../src/RedfishCsMemory.c
+
+[Packages]
+  MdePkg/MdePkg.dec
+  RedfishPkg/RedfishPkg.dec
+  RedfishClientPkg/RedfishClientPkg.dec
+
+[LibraryClasses]
+  BaseLib
+  BaseMemoryLib
+  DebugLib
+  MemoryAllocationLib
+  JsonLib
+
+[BuildOptions]
+  #
+  # Disables the following Visual Studio compiler warnings
+  # so we do not break the build with /WX option:
+  #   C4706: assignment within conditional expression
+  #
+  MSFT:*_*_*_CC_FLAGS = /wd4706
+
diff --git a/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishCsCommon.h b/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishCsCommon.h
new file mode 100644
index 00000000000..37467378733
--- /dev/null
+++ b/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishCsCommon.h
@@ -0,0 +1,14 @@
+/** @file
+  Wrapper file for RedfishCsCommon.h
+
+  (C) Copyright 2021 Hewlett Packard Enterprise Development LP<BR>
+  SPDX-License-Identifier: BSD-2-Clause-Patent
+
+**/
+
+#ifndef WRAPPER_REDFISH_CS_COMMON_H_
+#define WRAPPER_REDFISH_CS_COMMON_H_
+
+#include "../../include/RedfishCsCommon.h"
+
+#endif
diff --git a/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishDataTypeDef.h b/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishDataTypeDef.h
new file mode 100644
index 00000000000..4a8410d82e2
--- /dev/null
+++ b/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishDataTypeDef.h
@@ -0,0 +1,13 @@
+/** @file
+  Wrapper file for RedfishDataTypeDef.h
+
+  (C) Copyright 2021 Hewlett Packard Enterprise Development LP<BR>
+  SPDX-License-Identifier: BSD-2-Clause-Patent
+
+**/
+#ifndef WRAPPER_REDFISH_DATA_TYPE_H_
+#define WRAPPER_REDFISH_DATA_TYPE_H_
+
+#include "../../include/RedfishDataTypeDef.h"
+
+#endif
-- 
2.21.0.windows.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-29  8:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-28 14:01 [PATCH] edk2-staging/RedfishClientPkg: Add the helper library Abner Chang
2021-10-29  8:00 ` Nickle Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox