mirror of
https://github.com/OpenSolo/OpenSolo.git
synced 2025-04-29 22:24:32 +02:00
FIRMWARE: Gimbal FW 1.3.6 (3DR stock) file loaded to server
No change mande to the FW. This just puts the FW file in the location it needs to be in.
This commit is contained in:
parent
a7d62cb33e
commit
37a420f81d
File diff suppressed because one or more lines are too long
@ -2,6 +2,10 @@ SUMMARY = "Axon firmware binary"
|
|||||||
|
|
||||||
LICENSE = "CLOSED"
|
LICENSE = "CLOSED"
|
||||||
|
|
||||||
|
FILESEXTRAPATHS_prepend := "${THISDIR}/files/:"
|
||||||
|
|
||||||
|
SRC_URI += "file://gimbal_firmware_1.3.6.ax"
|
||||||
|
|
||||||
firmwaredir = "/firmware"
|
firmwaredir = "/firmware"
|
||||||
FILES_${PN} += "${firmwaredir}/"
|
FILES_${PN} += "${firmwaredir}/"
|
||||||
|
|
||||||
@ -12,38 +16,7 @@ FILE_EXT = "ax"
|
|||||||
FILE_SRC = "gimbal_firmware_${PV}.${FILE_EXT}"
|
FILE_SRC = "gimbal_firmware_${PV}.${FILE_EXT}"
|
||||||
FILE_DST = "gimbal_firmware_${PV}.${FILE_EXT}"
|
FILE_DST = "gimbal_firmware_${PV}.${FILE_EXT}"
|
||||||
|
|
||||||
do_fetch () {
|
|
||||||
#
|
|
||||||
# look up a release by tag name via the github api,
|
|
||||||
# extract the url for the build artifact that we're interested in (*.FILE_EXT),
|
|
||||||
# and download it.
|
|
||||||
#
|
|
||||||
# requires jq 1.4 or later: https://stedolan.github.io/jq/
|
|
||||||
#
|
|
||||||
|
|
||||||
# NB: this relies on the fact that tag names in the repo are of a specific form
|
|
||||||
# such that we can derive the tag name from the bitbake PV variable, which is itself
|
|
||||||
# derived from the name of this file.
|
|
||||||
|
|
||||||
# There must be a github "personal access token" in the file ~/.ssh/github_token
|
|
||||||
# https://help.github.com/articles/creating-an-access-token-for-command-line-use/
|
|
||||||
#TOKEN=$(cat ~/.ssh/github_token)
|
|
||||||
|
|
||||||
#SRC_URL="https://api.github.com/repos/OpenSolo/${REPO_NAME}/releases/tags/${REPO_TAG}"
|
|
||||||
|
|
||||||
#BIN_URL=$(curl -s -H "Authorization: token ${TOKEN}" -H "Accept: application/json" ${SRC_URL} | jq -r '.assets[] | select(.name | endswith(".${FILE_EXT}")) | .url')
|
|
||||||
|
|
||||||
# NB: supply github access token as url param because if we supply it as a header,
|
|
||||||
# once github redirects us to s3, it gets included in that request as well
|
|
||||||
# and amazon complains that 2 forms of auth have been provided and quits.
|
|
||||||
#echo 'curl -v -L -H "Accept: application/octet-stream" ${BIN_URL}?access_token=${TOKEN} -o ${WORKDIR}/${FILE_SRC}'
|
|
||||||
#curl -v -L -H "Accept: application/octet-stream" ${BIN_URL}?access_token=${TOKEN} -o ${WORKDIR}/${FILE_SRC}
|
|
||||||
|
|
||||||
# fake it, by copying existing gimbal binary to whatever was asked for:
|
|
||||||
cp /vagrant/gimbal_firmware_1.3.6.ax ${WORKDIR}/${FILE_SRC}
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install () {
|
do_install () {
|
||||||
install -d ${D}${firmwaredir}
|
install -d ${D}${firmwaredir}
|
||||||
install -m 0644 ${WORKDIR}/${FILE_SRC} ${D}${firmwaredir}/${FILE_DST}
|
install -m 0644 ${WORKDIR}/gimbal_firmware_1.3.6.ax ${D}${firmwaredir}/
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user