From 4281d4b22624efdcaa18ed23d461994e81357fbb Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Sun, 17 Oct 2021 18:11:24 +0200 Subject: [PATCH] pkg: add support for FreeRTOS coreJSON library --- pkg/corejson/Kconfig | 9 +++++++++ pkg/corejson/Makefile | 9 +++++++++ pkg/corejson/Makefile.include | 1 + pkg/corejson/corejson.mk | 3 +++ pkg/corejson/doc.txt | 11 +++++++++++ 5 files changed, 33 insertions(+) create mode 100644 pkg/corejson/Kconfig create mode 100644 pkg/corejson/Makefile create mode 100644 pkg/corejson/Makefile.include create mode 100644 pkg/corejson/corejson.mk create mode 100644 pkg/corejson/doc.txt diff --git a/pkg/corejson/Kconfig b/pkg/corejson/Kconfig new file mode 100644 index 0000000000..7ba456a006 --- /dev/null +++ b/pkg/corejson/Kconfig @@ -0,0 +1,9 @@ +# Copyright (c) 2021 Inria +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. + +config PACKAGE_COREJSON + bool "FreeRTOS coreJSON" + depends on TEST_KCONFIG diff --git a/pkg/corejson/Makefile b/pkg/corejson/Makefile new file mode 100644 index 0000000000..33fa01fdf7 --- /dev/null +++ b/pkg/corejson/Makefile @@ -0,0 +1,9 @@ +PKG_NAME=corejson +PKG_URL=https://github.com/FreeRTOS/coreJSON +PKG_VERSION=caf540ccdb98e8f96a6f557075cb607288384938 # v3.0.2 +PKG_LICENSE=MIT + +include $(RIOTBASE)/pkg/pkg.mk + +all: + $(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR)/source -f $(CURDIR)/$(PKG_NAME).mk diff --git a/pkg/corejson/Makefile.include b/pkg/corejson/Makefile.include new file mode 100644 index 0000000000..15d848a9ce --- /dev/null +++ b/pkg/corejson/Makefile.include @@ -0,0 +1 @@ +INCLUDES += -I$(PKGDIRBASE)/corejson/source/include diff --git a/pkg/corejson/corejson.mk b/pkg/corejson/corejson.mk new file mode 100644 index 0000000000..f5e18b50cf --- /dev/null +++ b/pkg/corejson/corejson.mk @@ -0,0 +1,3 @@ +MODULE = corejson + +include $(RIOTBASE)/Makefile.base diff --git a/pkg/corejson/doc.txt b/pkg/corejson/doc.txt new file mode 100644 index 0000000000..777785e840 --- /dev/null +++ b/pkg/corejson/doc.txt @@ -0,0 +1,11 @@ +/** + * @defgroup pkg_corejson FreeRTOS coreJSON + * @ingroup pkg + * @brief JSON parser that strictly enforces the ECMA-404 JSON standard + * + * # License + * + * Licensed under MIT. + * + * @see https://github.com/FreeRTOS/coreJSON + */