From 80e31d8fcd476ab74fae77b6edc1c3a052afca95 Mon Sep 17 00:00:00 2001 From: sulfurandcu Date: Tue, 10 Dec 2024 18:23:33 +0800 Subject: [PATCH 1/3] [peripherals][rs485] add package. --- peripherals/Kconfig | 1 + peripherals/ikun-485/Kconfig | 28 ++++++++++++++++++++++++++++ peripherals/ikun-485/package.json | 27 +++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 peripherals/ikun-485/Kconfig create mode 100644 peripherals/ikun-485/package.json diff --git a/peripherals/Kconfig b/peripherals/Kconfig index 9aed413911..701bc3ca6d 100644 --- a/peripherals/Kconfig +++ b/peripherals/Kconfig @@ -78,6 +78,7 @@ source "$PKGS_DIR/packages/peripherals/bt_mx01/Kconfig" source "$PKGS_DIR/packages/peripherals/RgPower/Kconfig" source "$PKGS_DIR/packages/peripherals/bt_mx02/Kconfig" source "$PKGS_DIR/packages/peripherals/gc9a01/Kconfig" +source "$PKGS_DIR/packages/peripherals/ikun-485/Kconfig" if RT_VER_NUM > 0x40101 source "$PKGS_DIR/packages/peripherals/spi-tools/Kconfig" diff --git a/peripherals/ikun-485/Kconfig b/peripherals/ikun-485/Kconfig new file mode 100644 index 0000000000..e3dde755e6 --- /dev/null +++ b/peripherals/ikun-485/Kconfig @@ -0,0 +1,28 @@ + +menuconfig PKG_USING_IK485 + bool "ikun-485: A rs485 driver based on char device." + select RT_USING_SERIAL + select RT_USING_PIN + default n + +if PKG_USING_IK485 + + config PKG_IK485_PATH + string + default "/packages/peripherals/ikun-485" + + choice + prompt "Version" + default PKG_USING_IK485_LATEST_VERSION + help + Select the package version + + config PKG_USING_IK485_LATEST_VERSION + bool "latest" + endchoice + + config PKG_IK485_VER + string + default "latest" if PKG_USING_IK485_LATEST_VERSION + +endif diff --git a/peripherals/ikun-485/package.json b/peripherals/ikun-485/package.json new file mode 100644 index 0000000000..6e97671419 --- /dev/null +++ b/peripherals/ikun-485/package.json @@ -0,0 +1,27 @@ +{ + "name": "ikun-485", + "description": "rs485 driver based on char device", + "description_zh": "基于字符设备的 RS485 驱动", + "enable": "PKG_USING_IK485", + "keywords": [ + "ikun-485", + "rs485" + ], + "category": "peripherals", + "author": { + "name": "sulfurandcu", + "email": "sulfurandcu@gmail.com", + "github": "sulfurandcu" + }, + "license": "MIT", + "repository": "https://github.com/sulfurandcu/ikun-485", + "homepage": "https://github.com/sulfurandcu/ikun-485#readme", + "site": [ + { + "version": "latest", + "URL": "https://github.com/sulfurandcu/ikun-485.git", + "filename": "ikun-485.zip", + "VER_SHA": "main" + } + ] +} From 20d72ca2e8335ff62444876185aed4571d7ccaa8 Mon Sep 17 00:00:00 2001 From: sulfurandcu Date: Fri, 27 Dec 2024 09:03:55 +0800 Subject: [PATCH 2/3] [tools] add hpatchlite-wrapper package. --- tools/Kconfig | 1 + tools/hpatchlite-wrapper/Kconfig | 26 +++++++++++++++++++++++ tools/hpatchlite-wrapper/package.json | 30 +++++++++++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 tools/hpatchlite-wrapper/Kconfig create mode 100644 tools/hpatchlite-wrapper/package.json diff --git a/tools/Kconfig b/tools/Kconfig index 2684ca1591..e951e25a9e 100644 --- a/tools/Kconfig +++ b/tools/Kconfig @@ -48,4 +48,5 @@ source "$PKGS_DIR/packages/tools/vofa_plus/Kconfig" source "$PKGS_DIR/packages/tools/RT_Trace/Kconfig" source "$PKGS_DIR/packages/tools/zdebug/Kconfig" source "$PKGS_DIR/packages/tools/RVBacktrace/Kconfig" +source "$PKGS_DIR/packages/tools/hpatchlite-wrapper/Kconfig" endmenu diff --git a/tools/hpatchlite-wrapper/Kconfig b/tools/hpatchlite-wrapper/Kconfig new file mode 100644 index 0000000000..97cfc13ce3 --- /dev/null +++ b/tools/hpatchlite-wrapper/Kconfig @@ -0,0 +1,26 @@ + +menuconfig PKG_USING_HPATCHLITE + bool "hpatchlite-wrapper: A lightweight and user-friendly wrapper for the HPatchLite." + default n + +if PKG_USING_HPATCHLITE + + config PKG_HPATCHLITE_PATH + string + default "/packages/tools/hpatchlite" + + choice + prompt "Version" + default PKG_USING_HPATCHLITE_LATEST_VERSION + help + Select the package version + + config PKG_USING_HPATCHLITE_LATEST_VERSION + bool "latest" + endchoice + + config PKG_HPATCHLITE_VER + string + default "latest" if PKG_USING_HPATCHLITE_LATEST_VERSION + +endif diff --git a/tools/hpatchlite-wrapper/package.json b/tools/hpatchlite-wrapper/package.json new file mode 100644 index 0000000000..b4fa84f472 --- /dev/null +++ b/tools/hpatchlite-wrapper/package.json @@ -0,0 +1,30 @@ +{ + "name": "hpatchlite-wrapper", + "description": "A lightweight and user-friendly wrapper for the HPatchLite.", + "description_zh": "一个让HPatchLite差分还原算法库更好用的封装", + "enable": "PKG_USING_HPATCHLITE", + "keywords": [ + "hpatchlite", + "hpatch", + "bsdiff", + "bspatch", + "patch" + ], + "category": "tools", + "author": { + "name": "sulfurandcu", + "email": "sulfurandcu@gmail.com", + "github": "sulfurandcu" + }, + "license": "MIT", + "repository": "https://github.com/sulfurandcu/hpatchlite-wrapper", + "homepage": "https://github.com/sulfurandcu/hpatchlite-wrapper#readme", + "site": [ + { + "version": "latest", + "URL": "https://github.com/sulfurandcu/hpatchlite-wrapper.git", + "filename": "hpatchlite-wrapper.zip", + "VER_SHA": "main" + } + ] +} From 17542a650ce764eabe8fb8cbca7751c951c1682e Mon Sep 17 00:00:00 2001 From: sulfurandcu Date: Fri, 27 Dec 2024 09:31:24 +0800 Subject: [PATCH 3/3] [tools] fix hpatchlite-wrapper path. --- tools/hpatchlite-wrapper/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/hpatchlite-wrapper/Kconfig b/tools/hpatchlite-wrapper/Kconfig index 97cfc13ce3..da25bf0837 100644 --- a/tools/hpatchlite-wrapper/Kconfig +++ b/tools/hpatchlite-wrapper/Kconfig @@ -7,7 +7,7 @@ if PKG_USING_HPATCHLITE config PKG_HPATCHLITE_PATH string - default "/packages/tools/hpatchlite" + default "/packages/tools/hpatchlite-wrapper" choice prompt "Version"