Changed curl to wget since curl was pulling html

This commit is contained in:
Matt 2017-08-04 20:33:39 -04:00
parent f21949d5d7
commit e48a93b1d9

View File

@ -17,7 +17,7 @@ do_fetch () {
# TODO - smart fetch the correct version of the formware to match the repo-tag requested or something # TODO - smart fetch the correct version of the formware to match the repo-tag requested or something
# for now, get the LATEST MASTER PX4v2 ( ie pixhawk1 or 2.0(solo) firmware from ArduPilot build system: # for now, get the LATEST MASTER PX4v2 ( ie pixhawk1 or 2.0(solo) firmware from ArduPilot build system:
curl http://firmware.ap.ardupilot.org/Copter/stable/PX4/ArduCopter-v3.px4 -o ${WORKDIR}/${FILE_SRC} wget http://firmware.ap.ardupilot.org/Copter/stable/PX4/ArduCopter-v3.px4 -O ${WORKDIR}/${FILE_SRC}
# or simply fake it with a zero-length file if the curl fails for some reason..: # or simply fake it with a zero-length file if the curl fails for some reason..:
#touch ${WORKDIR}/${FILE_SRC} #touch ${WORKDIR}/${FILE_SRC}
} }
@ -26,3 +26,5 @@ do_install () {
install -d ${D}${firmwaredir} install -d ${D}${firmwaredir}
install -m 0644 ${WORKDIR}/${FILE_SRC} ${D}${firmwaredir}/${FILE_DST} install -m 0644 ${WORKDIR}/${FILE_SRC} ${D}${firmwaredir}/${FILE_DST}
} }
wget -O ac.px4 http://firmware.ap.ardupilot.org/Copter/stable/PX4/ArduCopter-v3.px4