Skip to content

Commit

Permalink
[tools] add hpatchlite-wrapper package.
Browse files Browse the repository at this point in the history
  • Loading branch information
sulfurandcu committed Dec 27, 2024
1 parent 80e31d8 commit 20d72ca
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
26 changes: 26 additions & 0 deletions tools/hpatchlite-wrapper/Kconfig
Original file line number Diff line number Diff line change
@@ -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
30 changes: 30 additions & 0 deletions tools/hpatchlite-wrapper/package.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
"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"
}
]
}

0 comments on commit 20d72ca

Please sign in to comment.