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.2793.1607322225745519740 for ; Sun, 06 Dec 2020 22:23:45 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=AJLN/vQP; spf=pass (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=0610f89c5f=abner.chang@hpe.com) Received: from pps.filterd (m0150245.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 0B76N5SB024553 for ; Mon, 7 Dec 2020 06:23:45 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=CS3Yn4IYTYr7IYQCkMnav1HEbiunfdYy/azwzn3m3hk=; b=AJLN/vQPt3HQrwPI28cYCCM7b/voJC3oNuLiQY0Zazm4iD1jSGnMlnZJ+dzLT51+2wmW +zVveQ1n1P/Z4/vM6uZTz6wbOWibepwjwdADfdP3CursST2rh0RBYWHP/yd4DLrcRDHz 8TbyWvH47/SIF8c/OW9vRNyoA1ROY1skdqhYmw3oF+2Iehd/g0xunGRh28Zek7EfbMF9 oVPWiBZ2a9EPI0jr1cFE/iZniubn0F07U1LxN0ngoKltgYa3LQZookjRwsNBGzBwXNP3 fmwsOUXIERkqAEvfVR5UDRPqxvI84iaLf1n6bym0BOiuOoHVO+olyOdXBR+NgHAEXSZ2 jA== Received: from g4t3426.houston.hpe.com (g4t3426.houston.hpe.com [15.241.140.75]) by mx0b-002e3701.pphosted.com with ESMTP id 3587mh076a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 07 Dec 2020 06:23:45 +0000 Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g4t3426.houston.hpe.com (Postfix) with ESMTP id 7B42954 for ; Mon, 7 Dec 2020 06:23:44 +0000 (UTC) Received: from abner-virtual-machine.asiapacific.hpqcorp.net (abner-virtual-machine.asiapacific.hpqcorp.net [15.119.210.153]) by g9t2301.houston.hpecorp.net (Postfix) with ESMTP id 99BD74B; Mon, 7 Dec 2020 06:23:43 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: Nickle Wang , Peter O'Hanley Subject: [PATCH v4 5/6] RedfishPkg: Add EDK2 port of jansson library to build Date: Mon, 7 Dec 2020 13:36:54 +0800 Message-Id: <20201207053655.29101-7-abner.chang@hpe.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201207053655.29101-1-abner.chang@hpe.com> References: <20201207053655.29101-1-abner.chang@hpe.com> X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-12-07_02:2020-12-04,2020-12-07 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 bulkscore=0 clxscore=1015 spamscore=0 lowpriorityscore=0 phishscore=0 malwarescore=0 suspectscore=1 mlxlogscore=859 priorityscore=1501 mlxscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012070041 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 e780b5c270..7051bc398f 100644 --- a/RedfishPkg/RedfishLibs.dsc.inc +++ b/RedfishPkg/RedfishLibs.dsc.inc @@ -11,5 +11,7 @@ # ## !if $(REDFISH_ENABLE) == TRUE + CrtLib|RedfishPkg/Library/CrtLib/CrtLib.inf + JsonLib|RedfishPkg/Library/JsonLib/JsonLib.inf !endif diff --git a/RedfishPkg/RedfishPkg.dec b/RedfishPkg/RedfishPkg.dec index b38e9b4789..0e33b3afad 100644 --- a/RedfishPkg/RedfishPkg.dec +++ b/RedfishPkg/RedfishPkg.dec @@ -21,6 +21,17 @@ # Platform implementation-specific Redfish Host Interface. RedfishPlatformHostInterfaceLib|Include/Library/RedfishHostInterfaceLib.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 94e7127bc6..f41f53f63e 100644 --- a/RedfishPkg/RedfishPkg.dsc +++ b/RedfishPkg/RedfishPkg.dsc @@ -43,5 +43,7 @@ [Components] RedfishPkg/Library/PlatformHostInterfaceLibNull/PlatformHostInterfaceLibNull.inf + RedfishPkg/Library/JsonLib/JsonLib.inf + RedfishPkg/Library/CrtLib/CrtLib.inf !include RedfishPkg/Redfish.dsc.inc -- 2.17.1