Skip to content
Snippets Groups Projects
Commit 659719b1 authored by BRONES Romain's avatar BRONES Romain
Browse files

feat:Add fpga version reader

parent 0bbdd78d
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
PATH_MAPT=/opt/fofb-opcua-server/app.mapt
PATH_MAPT=/opt/fofb/map/app.mapt
function read_reg () {
# ARGS: regname
......@@ -35,7 +35,7 @@ function get_appname () {
echo cellnode
return
fi
if [[ $appcode -eq 0x507E1722 ]]; then
echo centralnode
......
......@@ -10,6 +10,7 @@ inherit update-rc.d
SRC_URI = " file://fofb-init.sh"
SRC_URI += " file://configuration
SRC_URI += " file://fpgaversion.sh"
RDEPENDS_${PN}=" fpga-manager-script bash"
......@@ -22,4 +23,8 @@ do_install() {
# Write default configuration
install -d ${D}/opt/fofb/cfg/
install -m 0666 ${WORKDIR}/configuration ${D}/opt/fofb/cfg/configuration
# Add FPGA version reader
install -d ${D}/usr/bin/
install -m 0755 ${WORKDIR}/fpgaversion.sh ${D}/usr/bin/fpgaversion
}
File mode changed from 100755 to 100644
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment