docker-betaflight-build icon indicating copy to clipboard operation
docker-betaflight-build copied to clipboard

"unexpected operator" error when running the hex build command

Open tzukif opened this issue 4 years ago • 2 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?

tzukif avatar Jul 22 '21 19:07 tzukif

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.

haslinghuis avatar Jul 22 '21 20:07 haslinghuis

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.

stale[bot] avatar Apr 17 '22 06:04 stale[bot]