From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web10.3111.1607396259269838735 for ; Mon, 07 Dec 2020 18:57:39 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=i1hPb3rP; spf=pass (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=0611956627=abner.chang@hpe.com) Received: from pps.filterd (m0134425.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 0B82vKgn011790 for ; Tue, 8 Dec 2020 02:57:38 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=pps0720; bh=Lq0ST3itNg4FiO7QYy/w9FOOIOLmLQxBmSdIU8ilZjo=; b=i1hPb3rP7Y1yBW6ieNiv3cBpUX2nudmPuNubrUnBikNiA0g87NS1zznk/VPNOhikf5e7 ucBQiFFWNDH5VXFzkDlOYHeTaSfH7HWjk2SjYKVgvsyjLjYrYJsy4T5GkMRwfluyTtlx ybWcmvrSu930S19vRHHQh9qYGkOOKpVR3G2LyZe/1TDTTBQubxPIn0iGvPKNDYifVBYy jjnmk2ku38bqaGzP7QpS8p95ESAaOvaGGVMbpBQFuGQA1geC6HMio9/zaU+kwgkSkHEp yR3d91lGCkA3wyTNODKuWMV0A+Qt8Fwbsghf1DzeaIQxdCQcUev3VcyVeyHQkNtT3vqp Mw== Received: from g4t3425.houston.hpe.com (g4t3425.houston.hpe.com [15.241.140.78]) by mx0b-002e3701.pphosted.com with ESMTP id 3587r7g8fs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 08 Dec 2020 02:57:38 +0000 Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g4t3425.houston.hpe.com (Postfix) with ESMTP id 0FFD1AA for ; Tue, 8 Dec 2020 02:57:38 +0000 (UTC) Received: from abner-virtual-machine.asiapacific.hpqcorp.net (abner-virtual-machine.asiapacific.hpqcorp.net [15.119.210.153]) by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id 2830245; Tue, 8 Dec 2020 02:57:36 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: Nickle Wang , Peter O'Hanley Subject: [PATCH v5 5/6] RedfishPkg: Add EDK2 port of jansson library to build Date: Tue, 8 Dec 2020 10:10:47 +0800 Message-Id: <20201208021048.9104-6-abner.chang@hpe.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208021048.9104-1-abner.chang@hpe.com> References: <20201208021048.9104-1-abner.chang@hpe.com> X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343,18.0.737 definitions=2020-12-07_19:2020-12-04,2020-12-07 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 malwarescore=0 lowpriorityscore=0 mlxlogscore=802 impostorscore=0 clxscore=1015 spamscore=0 mlxscore=0 adultscore=0 bulkscore=0 priorityscore=1501 suspectscore=1 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012080017 Add EDK2 port jansson library (JsonLib) to RedfishPkg Signed-off-by: Abner Chang Cc: Nickle Wang Cc: Peter O'Hanley --- RedfishPkg/RedfishLibs.dsc.inc | 2 ++ RedfishPkg/RedfishPkg.dec | 11 +++++++++++ RedfishPkg/RedfishPkg.dsc | 2 ++ 3 files changed, 15 insertions(+) diff --git a/RedfishPkg/RedfishLibs.dsc.inc b/RedfishPkg/RedfishLibs.dsc.inc index d4c08e18ac..bc036a33e8 100644 --- a/RedfishPkg/RedfishLibs.dsc.inc +++ b/RedfishPkg/RedfishLibs.dsc.inc @@ -12,5 +12,7 @@ ## !if $(REDFISH_ENABLE) == TRUE Ucs2Utf8Lib|RedfishPkg/Library/BaseUcs2Utf8Lib/BaseUcs2Utf8Lib.inf + CrtLib|RedfishPkg/Library/CrtLib/CrtLib.inf + JsonLib|RedfishPkg/Library/JsonLib/JsonLib.inf !endif diff --git a/RedfishPkg/RedfishPkg.dec b/RedfishPkg/RedfishPkg.dec index aecc1f4a3a..c21657e349 100644 --- a/RedfishPkg/RedfishPkg.dec +++ b/RedfishPkg/RedfishPkg.dec @@ -25,6 +25,17 @@ # Ucs2Utf8Lib|Include/Library/BaseUcs2Utf8Lib.h + ## @libraryclass Provides the C runtime library functions + # CRT library is currently used by edk2 JsonLib (open source + # jansson project) and edk2 RedfishLib (libredfish open source + # project). + CrtLib|Include/Library/CrtLib.h + + ## @libraryclass Provides the library functions based on third party + # jansson library to manipulate JSON data structure. + # + JsonLib|Include/Library/JsonLib.h + [Protocols] ## Include/Protocol/RedfishDiscover.h gEfiRedfishDiscoverProtocolGuid = { 0x5db12509, 0x4550, 0x4347, { 0x96, 0xb3, 0x73, 0xc0, 0xff, 0x6e, 0x86, 0x9f }} diff --git a/RedfishPkg/RedfishPkg.dsc b/RedfishPkg/RedfishPkg.dsc index d198a94b73..515e453c00 100644 --- a/RedfishPkg/RedfishPkg.dsc +++ b/RedfishPkg/RedfishPkg.dsc @@ -44,5 +44,7 @@ [Components] RedfishPkg/Library/PlatformHostInterfaceLibNull/PlatformHostInterfaceLibNull.inf RedfishPkg/Library/BaseUcs2Utf8Lib/BaseUcs2Utf8Lib.inf + RedfishPkg/Library/JsonLib/JsonLib.inf + RedfishPkg/Library/CrtLib/CrtLib.inf !include RedfishPkg/Redfish.dsc.inc -- 2.17.1