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.web08.35970.1606142023671804667 for ; Mon, 23 Nov 2020 06:33:44 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=QjjklnPr; spf=pass (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=0596f266c1=abner.chang@hpe.com) Received: from pps.filterd (m0134424.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0ANEWmk3004341; Mon, 23 Nov 2020 14:33:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : mime-version; s=pps0720; bh=GH5+eMORUQHfwoZJuOw7qIOkIcfSeWbZCj5IDymjcfE=; b=QjjklnPrhV8rgpxWBELtycBJha4UNfINPqyJOYz9obVs3ntpGGAUJ+cByuC/wENayTbv S0r/FCbZmJi5V702RFveNjtnvhvqT5rl7lCa8ELknVDSlVudIaaucYOmZDsjGo2oWEpz vZUXmbWIDPs20rd53jlKMcDaM49/txfaLsii2eY7u3bTMr8o5zY4qJh86csDgr3Qv0t3 sIO7X0GHpkhGq0k4nj1zSyl6fzMOknSOHpP7GlxWayryjUMls+Nf9EOaXFls0fj/oOiM 9aLB9Ld0NT/3X5KuQ1KzyyAo41/UXWF9K0XZVLQZ18URnJDPLiyeA5q0ijku421z6wy7 ug== Received: from g4t3425.houston.hpe.com (g4t3425.houston.hpe.com [15.241.140.78]) by mx0b-002e3701.pphosted.com with ESMTP id 34xsvn7366-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 Nov 2020 14:33:41 +0000 Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g4t3425.houston.hpe.com (Postfix) with ESMTP id 4E24A8D; Mon, 23 Nov 2020 14:33:40 +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 49D4953; Mon, 23 Nov 2020 14:33:38 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: Jian J Wang , Hao A Wu , Andrew Fish , Laszlo Ersek , Leif Lindholm , Michael D Kinney , Nickle Wang , Peter O'Hanley Subject: [PATCH 0/3] JsonLib: jansson edk2 port Date: Mon, 23 Nov 2020 21:47:19 +0800 Message-Id: <20201123134722.15980-1-abner.chang@hpe.com> X-Mailer: git-send-email 2.17.1 X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-11-23_11:2020-11-23,2020-11-23 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 malwarescore=0 mlxlogscore=999 suspectscore=0 spamscore=0 bulkscore=0 lowpriorityscore=0 phishscore=0 clxscore=1011 adultscore=0 priorityscore=1501 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011230099 This set of pactehs is sent for the comments on edk2 JSON library. edk2 JSON library is based on jansson open source (https://github.com/akheron/jansson) and wrapped as an edk2 library. edk2 JsonLib will be used by edk2 Redfish feature drivers (not contributed yet) and the edk2 port of libredfish library (not contributed yet) based on DMTF GitHub (https://github.com/DMTF/libredfish). You will encounterred the build error with the jansson library pointed in submoudle (v2.13.1) and the fix is already submitted to jansson open source (https://github.com/akheron/jansson/pull/558). Signed-off-by: Abner Chang Cc: Jian J Wang Cc: Hao A Wu Cc: Andrew Fish Cc: Laszlo Ersek Cc: Leif Lindholm Cc: Michael D Kinney Cc: Nickle Wang Cc: Peter O'Hanley Abner Chang (3): edk2: jansson submodule of JSON library MdeModulePkg/library: EDK2 port jansson library MdeModulePkg: Add EDK2 port jansson library .gitmodules | 3 + MdeModulePkg/Include/Library/JsonLib.h | 596 +++++++++++++ .../Library/JsonLib/JanssonCrtLibSupport.c | 705 +++++++++++++++ .../Library/JsonLib/JanssonCrtLibSupport.h | 198 +++++ MdeModulePkg/Library/JsonLib/JsonLib.c | 805 ++++++++++++++++++ MdeModulePkg/Library/JsonLib/JsonLib.inf | 81 ++ MdeModulePkg/Library/JsonLib/JsonUtilities.c | 417 +++++++++ MdeModulePkg/Library/JsonLib/JsonUtilities.h | 69 ++ MdeModulePkg/Library/JsonLib/assert.h | 11 + MdeModulePkg/Library/JsonLib/errno.h | 11 + MdeModulePkg/Library/JsonLib/jansson | 1 + MdeModulePkg/Library/JsonLib/jansson_config.h | 57 ++ .../Library/JsonLib/jansson_private_config.h | 19 + MdeModulePkg/Library/JsonLib/limits.h | 11 + MdeModulePkg/Library/JsonLib/math.h | 11 + MdeModulePkg/Library/JsonLib/stdarg.h | 11 + MdeModulePkg/Library/JsonLib/stddef.h | 11 + MdeModulePkg/Library/JsonLib/stdio.h | 11 + MdeModulePkg/Library/JsonLib/stdlib.h | 11 + MdeModulePkg/Library/JsonLib/string.h | 11 + MdeModulePkg/Library/JsonLib/sys/time.h | 11 + MdeModulePkg/Library/JsonLib/sys/types.h | 10 + MdeModulePkg/Library/JsonLib/time.h | 11 + MdeModulePkg/MdeModulePkg.dec | 7 +- MdeModulePkg/MdeModulePkg.dsc | 4 +- ReadMe.rst | 1 + 26 files changed, 3092 insertions(+), 2 deletions(-) create mode 100644 MdeModulePkg/Include/Library/JsonLib.h create mode 100644 MdeModulePkg/Library/JsonLib/JanssonCrtLibSupport.c create mode 100644 MdeModulePkg/Library/JsonLib/JanssonCrtLibSupport.h create mode 100644 MdeModulePkg/Library/JsonLib/JsonLib.c create mode 100644 MdeModulePkg/Library/JsonLib/JsonLib.inf create mode 100644 MdeModulePkg/Library/JsonLib/JsonUtilities.c create mode 100644 MdeModulePkg/Library/JsonLib/JsonUtilities.h create mode 100644 MdeModulePkg/Library/JsonLib/assert.h create mode 100644 MdeModulePkg/Library/JsonLib/errno.h create mode 160000 MdeModulePkg/Library/JsonLib/jansson create mode 100644 MdeModulePkg/Library/JsonLib/jansson_config.h create mode 100644 MdeModulePkg/Library/JsonLib/jansson_private_config.h create mode 100644 MdeModulePkg/Library/JsonLib/limits.h create mode 100644 MdeModulePkg/Library/JsonLib/math.h create mode 100644 MdeModulePkg/Library/JsonLib/stdarg.h create mode 100644 MdeModulePkg/Library/JsonLib/stddef.h create mode 100644 MdeModulePkg/Library/JsonLib/stdio.h create mode 100644 MdeModulePkg/Library/JsonLib/stdlib.h create mode 100644 MdeModulePkg/Library/JsonLib/string.h create mode 100644 MdeModulePkg/Library/JsonLib/sys/time.h create mode 100644 MdeModulePkg/Library/JsonLib/sys/types.h create mode 100644 MdeModulePkg/Library/JsonLib/time.h -- 2.17.1