From 7ad0587aa948c3567d79e4e059540056c4bb27aa Mon Sep 17 00:00:00 2001 From: RiceChen <980307037@qq.com> Date: Wed, 18 Dec 2024 00:21:42 +0800 Subject: [PATCH] add Efficient and secure memory pool --- system/Kconfig | 1 + system/rmp/Kconfig | 36 ++++++++++++++++++++++++++++++++++++ system/rmp/package.json | 28 ++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 system/rmp/Kconfig create mode 100644 system/rmp/package.json diff --git a/system/Kconfig b/system/Kconfig index 62153b7386..dffbd610f0 100644 --- a/system/Kconfig +++ b/system/Kconfig @@ -53,6 +53,7 @@ source "$PKGS_DIR/packages/system/UartFramework/Kconfig" source "$PKGS_DIR/packages/system/sfdb/Kconfig" source "$PKGS_DIR/packages/system/rtp/Kconfig" source "$PKGS_DIR/packages/system/reb/Kconfig" +source "$PKGS_DIR/packages/system/rmp/Kconfig" source "$PKGS_DIR/packages/system/r-rhealstone/Kconfig" source "$PKGS_DIR/packages/system/heartbeat/Kconfig" endmenu diff --git a/system/rmp/Kconfig b/system/rmp/Kconfig new file mode 100644 index 0000000000..9338d24fbf --- /dev/null +++ b/system/rmp/Kconfig @@ -0,0 +1,36 @@ + +# Kconfig file for package rmp +menuconfig PKG_USING_RMP + bool "rmp: Efficient and secure memory pool" + default n + +if PKG_USING_RMP + + config PKG_RMP_PATH + string + default "/packages/system/rmp" + + config RMP_USING_DYNAMIC + bool "rmp using dynamic interface" + default n + + config RMP_USING_RTOS + bool "rmp enable rtos" + default y + + choice + prompt "Version" + default PKG_USING_RMP_LATEST_VERSION + help + Select the package version + + config PKG_USING_RMP_LATEST_VERSION + bool "latest" + endchoice + + config PKG_RMP_VER + string + default "latest" if PKG_USING_RMP_LATEST_VERSION + +endif + diff --git a/system/rmp/package.json b/system/rmp/package.json new file mode 100644 index 0000000000..1f62249f3e --- /dev/null +++ b/system/rmp/package.json @@ -0,0 +1,28 @@ +{ + "name": "rmp", + "description": "rmp: Efficient and secure memory pool", + "description_zh": "rmp: 高效且安全的内存池", + "enable": "PKG_USING_RMP", + "keywords": [ + "rmp" + ], + "category": "system", + "author": { + "name": "RiceChen", + "email": "980307037@qq.com", + "github": "RiceChen0" + }, + "license": "Apache-2.0", + "repository": "https://github.com/RiceChen0/rmp", + "icon": "unknown", + "homepage": "https://github.com/RiceChen0/rmp#readme", + "readme": "rmp Efficient and secure memory pool", + "site": [ + { + "version": "latest", + "URL": "https://github.com/RiceChen0/rmp.git", + "filename": "Null for git package", + "VER_SHA": "main" + } + ] +}