From f8cf0224c133c90e4a9f53be9787931568b7c134 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Thu, 6 Jan 2022 17:36:57 -0500 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0itoa=20posix=E6=89=A9?= =?UTF-8?q?=E5=B1=95=E8=BD=AF=E4=BB=B6=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system/POSIX/Kconfig | 1 + system/POSIX/itoa/Kconfig | 18 ++++++++++++++++++ system/POSIX/itoa/package.json | 29 +++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 system/POSIX/itoa/Kconfig create mode 100644 system/POSIX/itoa/package.json diff --git a/system/POSIX/Kconfig b/system/POSIX/Kconfig index 7ec3bbf4dd..fe9a251d88 100644 --- a/system/POSIX/Kconfig +++ b/system/POSIX/Kconfig @@ -2,5 +2,6 @@ menu "POSIX extension functions" source "$PKGS_DIR/packages/system/POSIX/getline/Kconfig" source "$PKGS_DIR/packages/system/POSIX/wcwidth/Kconfig" +source "$PKGS_DIR/packages/system/POSIX/itoa/Kconfig" endmenu diff --git a/system/POSIX/itoa/Kconfig b/system/POSIX/itoa/Kconfig new file mode 100644 index 0000000000..0aab6192c0 --- /dev/null +++ b/system/POSIX/itoa/Kconfig @@ -0,0 +1,18 @@ + +# Kconfig file for package itoa +menuconfig PKG_USING_POSIX_ITOA + bool "Enable itoa family (not standard POSIX)" + default n + +if PKG_USING_POSIX_ITOA + + config PKG_POSIX_ITOA_PATH + string + default "/packages/system/POSIX/itoa" + + config PKG_POSIX_ITOA_VER + string + default "latest" + +endif + diff --git a/system/POSIX/itoa/package.json b/system/POSIX/itoa/package.json new file mode 100644 index 0000000000..221bd27005 --- /dev/null +++ b/system/POSIX/itoa/package.json @@ -0,0 +1,29 @@ +{ + "name": "itoa", + "description": "itoa family for RT-Thread POSIX (not standard)", + "description_zh": "itoa家族函数(非POSIX标准)", + "enable": "PKG_USING_POSIX_ITOA", + "keywords": [ + "itoa", + "POSIX" + ], + "category": "system", + "author": { + "name": "Meco Man", + "email": "jiantingman@foxmail.com", + "github": "mysterywolf" + }, + "license": "Apache-2.0", + "repository": "https://github.com/mysterywolf/itoa", + "icon": "unknown", + "homepage": "unknown", + "doc": "unknown", + "site": [ + { + "version": "latest", + "URL": "https://github.com/mysterywolf/itoa.git", + "filename": "Null for git package", + "VER_SHA": "master" + } + ] +} From 5faabf865d151f828646bf61ae1c0d053a0584b6 Mon Sep 17 00:00:00 2001 From: "Man, Jianting (Meco)" <920369182@qq.com> Date: Thu, 6 Jan 2022 19:05:54 -0500 Subject: [PATCH 2/2] Update Kconfig --- system/RTduino/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/system/RTduino/Kconfig b/system/RTduino/Kconfig index 598e7b1eef..3c26df764c 100644 --- a/system/RTduino/Kconfig +++ b/system/RTduino/Kconfig @@ -2,6 +2,7 @@ # Kconfig file for package RTduino menuconfig RT_USING_ARDUINO bool "RTduino: Arduino Ecological Compatibility Layer" + select PKG_USING_POSIX_ITOA select RT_USING_CPLUSPLUS select RT_USING_PIN default n