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" + } + ] +}