F: package/hiawatha/
F: package/igh-ethercat/
F: package/intltool/
+F: package/jh71xx-tools/
F: package/libcap/
F: package/libffi/
F: package/libsha1/
source "package/imagemagick/Config.in.host"
source "package/imx-mkimage/Config.in.host"
source "package/imx-usb-loader/Config.in.host"
+ source "package/jh71xx-tools/Config.in.host"
source "package/jq/Config.in.host"
source "package/jsmin/Config.in.host"
source "package/kmod/Config.in.host"
--- /dev/null
+config BR2_PACKAGE_HOST_JH71XX_TOOLS
+ bool "host jh71xx-tools"
+ depends on BR2_riscv
+ help
+ Bootloader recovery and updater tool for StarFive JH7100 SoCs.
+
+ https://github.com/kprasadvnsi/JH71xx-tools
--- /dev/null
+# Locally calculated
+sha256 0f16ea896164f6e8bfe0a03bbbd95ff14d474445ba6f045f9377d01282c9364f jh71xx-tools-7a29f4b9d2355aa39afa8680680909bb74e4991d.tar.gz
+sha256 cf03c59b41f6d8a5046f7bff4bbe3576075314299a4d0828d7855bf60af81001 LICENSE
--- /dev/null
+################################################################################
+#
+# jh71xx-tools
+#
+################################################################################
+
+JH71XX_TOOLS_VERSION = 7a29f4b9d2355aa39afa8680680909bb74e4991d
+JH71XX_TOOLS_SITE = $(call github,kprasadvnsi,JH71xx-tools,$(JH71XX_TOOLS_VERSION))
+JH71XX_TOOLS_LICENSE = MIT
+JH71XX_TOOLS_LICENSE_FILES = LICENSE
+
+define HOST_JH71XX_TOOLS_BUILD_CMDS
+ $(HOSTCC) -o $(@D)/jh7100-recover $(@D)/jh7100-recover.c
+endef
+
+define HOST_JH71XX_TOOLS_INSTALL_CMDS
+ $(INSTALL) -D -m 0755 $(@D)/jh7100-recover $(HOST_DIR)/bin/jh7100-recover
+endef
+
+$(eval $(host-generic-package))