betaflight / docker-betaflight-build

Docker container that contains everything required to build the Betaflight firmware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"unexpected operator" error when running the hex build command

tzukif opened this issue · comments

when running the following hex build command for SPRACINGF3 I'm getting the following message ( on windows 10 )

c:\Users\tzuki\Bfligth>docker run -e "parameter=SPRACINGF3" --rm -it -v c/Users/tzuki/bflight/betaflight:/opt/betaflight betaflight/betaflight-build
/bin/sh: 1: [: =: unexpected operator
/bin/sh: 1: [: =: unexpected operator
/bin/sh: 1: [: =: unexpected operator
/bin/sh: 1: [: =: unexpected operator
/bin/sh: 1: [: =: unexpected operator
make: *** No rule to make target 'clean'. Stop.
make: *** No targets specified and no makefile found. Stop.

Any suggestions?

Afaik this target does not build (just tested) and is not supported anymore.

parameter=SPRACINGF3 should be TARGET=SPRACINGF3.

You might try to edit Dockerfile and replace FROM ubuntu:16.04 to FROM ubuntu:20.04.
Beware the docker build has not updated for a few years now. Please use linux or WSL instead.

commented

This issue / pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within a week.