mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-23 05:23:39 +08:00
package/bfscripts: new package
Bootstrap the installation of Mellanox/NVIDIA Bluefield scripts that can be run either on the host CPU or on the onboard ARM64 CPU. Signed-off-by: Vincent Jardin <vjardin@free.fr> Reviewed-by: Julien Olivain <ju.o@free.fr> Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
parent
a842df6348
commit
dc4a5acfde
@ -3283,6 +3283,7 @@ F: support/testing/tests/core/test_root_password.py
|
||||
N: Vincent Jardin <vjardin@free.fr>
|
||||
F: board/nvidia/bf3/
|
||||
F: configs/nvidia_bf3_defconfig
|
||||
F: package/bfscripts/
|
||||
F: package/dpdk/
|
||||
|
||||
N: Vincent Prince <vincent.prince.fr@gmail.com>
|
||||
|
@ -475,6 +475,7 @@ endmenu
|
||||
source "package/apcupsd/Config.in"
|
||||
source "package/avrdude/Config.in"
|
||||
source "package/bcache-tools/Config.in"
|
||||
source "package/bfscripts/Config.in"
|
||||
source "package/biosdevname/Config.in"
|
||||
source "package/brickd/Config.in"
|
||||
source "package/brltty/Config.in"
|
||||
|
12
package/bfscripts/Config.in
Normal file
12
package/bfscripts/Config.in
Normal file
@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_BFSCRIPTS
|
||||
bool "bfscripts"
|
||||
depends on BR2_USE_MMU # bash
|
||||
select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # bash
|
||||
select BR2_PACKAGE_BASH # runtime
|
||||
help
|
||||
Collection of scripts that are used for Mellanox/NVIDIA
|
||||
Bluefield SoC management.
|
||||
|
||||
Currently, it installs: bfcfg, bfrshlog and bfup.
|
||||
|
||||
https://github.com/Mellanox/bfscripts
|
20
package/bfscripts/S99bfup
Normal file
20
package/bfscripts/S99bfup
Normal file
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# notify to the root PCIe (/dev/rshimN/misc) that Linux is up
|
||||
# and that BF3 board is ready
|
||||
|
||||
DAEMON="bfup"
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "bfup: "
|
||||
/usr/bin/$DAEMON
|
||||
exit_code=$?
|
||||
[ $exit_code = 0 ] && echo "OK" || echo "FAIL"
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
3
package/bfscripts/bfscripts.hash
Normal file
3
package/bfscripts/bfscripts.hash
Normal file
@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 92123fcaeb8eb9ba7f296e2457e82f56831c6fd19c1ad1a5949b7bc7d5d0a837 bfscripts-3.9.7-1.tar.gz
|
||||
sha256 ab52bc4ac5e66e42e0ce14172c4d1d40969919db98cc0e11d2f6178dcc97bf4d LICENSE
|
28
package/bfscripts/bfscripts.mk
Normal file
28
package/bfscripts/bfscripts.mk
Normal file
@ -0,0 +1,28 @@
|
||||
################################################################################
|
||||
#
|
||||
# bfscripts
|
||||
#
|
||||
################################################################################
|
||||
|
||||
BFSCRIPTS_VERSION = 3.9.7-1
|
||||
BFSCRIPTS_SITE = $(call github,Mellanox,bfscripts,$(BFSCRIPTS_VERSION))
|
||||
BFSCRIPTS_LICENSE = BSD-2-Clause
|
||||
BFSCRIPTS_LICENSE_FILES = LICENSE
|
||||
|
||||
BFSCRIPTS_FILES_TO_INSTALL = \
|
||||
bfcfg \
|
||||
bfrshlog \
|
||||
bfup
|
||||
|
||||
define BFSCRIPTS_INSTALL_TARGET_CMDS
|
||||
$(foreach f,$(BFSCRIPTS_FILES_TO_INSTALL),\
|
||||
$(INSTALL) -D -m 0755 $(@D)/$(f) $(TARGET_DIR)/usr/bin/$(f)
|
||||
)
|
||||
endef
|
||||
|
||||
define BFSCRIPTS_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 755 package/bfscripts/S99bfup \
|
||||
$(TARGET_DIR)/etc/init.d/S99bfup
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
Loading…
Reference in New Issue
Block a user