From nobody Fri Dec 19 20:15:29 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+68422+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+68422+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=hpe.com ARC-Seal: i=1; a=rsa-sha256; t=1607396265; cv=none; d=zohomail.com; s=zohoarc; b=iN+rOZMTBRkdAJq9wrfoR7wvqvtnPP9f7f/X4rGSP2yu7LUd7JikA8vMzwHmnQ7cjc+KPKmaGsVGSFdqlG7yDqfklOhQb+mgmc+FNgXO/1CVxrKndChb/y4jBJ88zsbiDAbfDVNFEi2LHPo1wLEVq952v8Sn53SIbCFDPqtLhJQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1607396265; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=Vm6gd6oxzmkn2hN7jcjxNVtSJKE+BgS//TRJ9NadWPA=; b=KMs8pkSuZBazr35p4qGuLoxbD9uSy4ACxptvObz8P+1aPMVW6lKPCzHmC3iKIGZUktE6l7RbNvM5iekbazE1EkHtMaLokTAKhIuiS7OPgRrhaMvQ/VXNQ9pLbdzwg+0gzxfk2kl2linLwWHbOIVbiZ2np+v1N6Q86wZ10fxpe5w= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+68422+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1607396265228316.3405555752247; Mon, 7 Dec 2020 18:57:45 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id UxoWYY1788612xpzxZOxK7PD; Mon, 07 Dec 2020 18:57:44 -0800 X-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 X-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 X-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 X-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) X-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: [edk2-devel] [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> In-Reply-To: <20201208021048.9104-1-abner.chang@hpe.com> References: <20201208021048.9104-1-abner.chang@hpe.com> X-HPE-SCL: -1 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,abner.chang@hpe.com X-Gm-Message-State: 1jjtxaG1cBwU9rVAZlmeKPsMx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1607396264; bh=981DogjwSXX8c8d4J18V7BTPUUlOAB8fmi2P24WS+lI=; h=Cc:Date:From:Reply-To:Subject:To; b=hpF557TgYcMw3GwgJQUefSyB3ZH+87t/tHDZ43of613kRw++AmocEavFNzW+a9RSM21 oDakvraz1PkDlUrxbqoV1QMopFEijkQLntspDzFH/9/0QTGvtgEGbl+74hBl7hsJUaxq3 oHNd9VTY/laUvWs52lt/vYS8vK31zPu8dBA= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Add EDK2 port jansson library (JsonLib) to RedfishPkg Signed-off-by: Abner Chang Cc: Nickle Wang Cc: Peter O'Hanley Reviewed-by: Nickle Wang --- 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) =3D=3D TRUE Ucs2Utf8Lib|RedfishPkg/Library/BaseUcs2Utf8Lib/BaseUcs2Utf8Lib.inf + CrtLib|RedfishPkg/Library/CrtLib/CrtLib.inf + JsonLib|RedfishPkg/Library/JsonLib/JsonLib.inf !endif =20 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 =20 + ## @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 =3D { 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/PlatformHostInterfaceLib= Null.inf RedfishPkg/Library/BaseUcs2Utf8Lib/BaseUcs2Utf8Lib.inf + RedfishPkg/Library/JsonLib/JsonLib.inf + RedfishPkg/Library/CrtLib/CrtLib.inf =20 !include RedfishPkg/Redfish.dsc.inc --=20 2.17.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#68422): https://edk2.groups.io/g/devel/message/68422 Mute This Topic: https://groups.io/mt/78795506/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-