package/jh71xx-tools: new package

Add jh71xx-tools as a new host package, it includes a tool that allows
to recover the bootloader of JH71xx-based platforms, such as the
BeagleV.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
[yann.morin.1998@free.fr:
  - fix alphabetical order, spotted by Bin
  - use LICENSE as license file, update license hash accordingly
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Thomas Petazzoni 2021-05-15 00:03:15 +02:00 committed by Yann E. MORIN
parent 4a321afa83
commit 98a74d81a8
5 changed files with 32 additions and 0 deletions

View File

@ -2633,6 +2633,7 @@ F: package/heirloom-mailx/
F: package/hiawatha/
F: package/igh-ethercat/
F: package/intltool/
F: package/jh71xx-tools/
F: package/libcap/
F: package/libffi/
F: package/libsha1/

View File

@ -39,6 +39,7 @@ menu "Host utilities"
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"

View File

@ -0,0 +1,7 @@
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

View File

@ -0,0 +1,3 @@
# Locally calculated
sha256 0f16ea896164f6e8bfe0a03bbbd95ff14d474445ba6f045f9377d01282c9364f jh71xx-tools-7a29f4b9d2355aa39afa8680680909bb74e4991d.tar.gz
sha256 cf03c59b41f6d8a5046f7bff4bbe3576075314299a4d0828d7855bf60af81001 LICENSE

View File

@ -0,0 +1,20 @@
################################################################################
#
# 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))