From 3bb74fb519e4591a14de317ba93a0967a32fa41a Mon Sep 17 00:00:00 2001 From: "Gary.Zhang" Date: Thu, 25 Dec 2025 15:00:55 +0800 Subject: [PATCH 1/3] upload vector package --- tools/Kconfig | 1 + tools/vector/Kconfig | 26 ++++++++++++++++++++++++++ tools/vector/package.json | 28 ++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 tools/vector/Kconfig create mode 100644 tools/vector/package.json diff --git a/tools/Kconfig b/tools/Kconfig index e58a437150..cffba5c58e 100644 --- a/tools/Kconfig +++ b/tools/Kconfig @@ -1,5 +1,6 @@ menu "tools packages" +source "$PKGS_DIR/packages/tools/vector/Kconfig" source "$PKGS_DIR/packages/tools/CmBacktrace/Kconfig" source "$PKGS_DIR/packages/tools/MCoreDump/Kconfig" source "$PKGS_DIR/packages/tools/EasyFlash/Kconfig" diff --git a/tools/vector/Kconfig b/tools/vector/Kconfig new file mode 100644 index 0000000000..a7afd59be7 --- /dev/null +++ b/tools/vector/Kconfig @@ -0,0 +1,26 @@ +# Kconfig file for package vector +menuconfig PKG_USING_VECTOR + bool "vector: a dynamic, type-agnostic container." + default n + +if PKG_USING_VECTOR + config PKG_VECTOR_PATH + string + default "/packages/tools/vector" + + choice + prompt "Version" + default PKG_USING_VECTOR_LATEST_VERSION + help + Select the package version + + config PKG_USING_VECTOR_LATEST_VERSION + bool "latest" + + endchoice + + config PKG_VECTOR_VER + string + default "latest" if PKG_USING_VECTOR_LATEST_VERSION + +endif diff --git a/tools/vector/package.json b/tools/vector/package.json new file mode 100644 index 0000000000..c1fc47220f --- /dev/null +++ b/tools/vector/package.json @@ -0,0 +1,28 @@ +{ + "name": "vector", + "description": "vector is a dynamic, type-agnostic container module.", + "description_zh": "Vector 是一个为 RT-Thread 设计的通用向量容器模块,提供动态大小的数组功能,支持不同数据类型的存储和操作。", + "enable": "PKG_USING_VECTOR", + "keywords": [ + "vector" + ], + "category": "tools", + "author": { + "name": "zhangguofu", + "email": "cleancode@163.com", + "github": "Gary.Zhang" + }, + "license": "MIT", + "repository": "git@github.com:zhangguofu/vector.git", + "icon": "unknown", + "homepage": "https://github.com/zhangguofu/vector.git#readme", + "doc": "unknown", + "site": [ + { + "version": "latest", + "URL": "https://github.com/zhangguofu/vector.git", + "filename": "vector.zip", + "VER_SHA": "" + } + ] +} From 6cb15f46d611dcd784e5c2f86e1bc1995ce11627 Mon Sep 17 00:00:00 2001 From: "Gary.Zhang" Date: Sat, 27 Dec 2025 11:43:28 +0800 Subject: [PATCH 2/3] fix vector index error --- tools/vector/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/vector/package.json b/tools/vector/package.json index c1fc47220f..479e9627fc 100644 --- a/tools/vector/package.json +++ b/tools/vector/package.json @@ -13,9 +13,9 @@ "github": "Gary.Zhang" }, "license": "MIT", - "repository": "git@github.com:zhangguofu/vector.git", + "repository": "https://github.com/zhangguofu/vector", "icon": "unknown", - "homepage": "https://github.com/zhangguofu/vector.git#readme", + "homepage": "https://github.com/zhangguofu/vector#readme", "doc": "unknown", "site": [ { From a8093b8e1cf9f14c988055e7309f942f7a9e3a27 Mon Sep 17 00:00:00 2001 From: "Gary.Zhang" Date: Sat, 27 Dec 2025 14:31:30 +0800 Subject: [PATCH 3/3] set VER_SHA as main to fix compile issue --- tools/vector/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/vector/package.json b/tools/vector/package.json index 479e9627fc..b87557949a 100644 --- a/tools/vector/package.json +++ b/tools/vector/package.json @@ -22,7 +22,7 @@ "version": "latest", "URL": "https://github.com/zhangguofu/vector.git", "filename": "vector.zip", - "VER_SHA": "" + "VER_SHA": "main" } ] }