I ran:
Code: Select all
tb update
git clone --recursive https://github.com/bitcraze/crazyflie-firmware.git
cd crazyflie-firmware
tb make PLATFORM=cf2
Code: Select all
(base) leafj@leafj-linux:~/crazyflie/crazyflie-firmware$ tb make PLATFORM=cf2
Running build script tools/build/make in a container based on the bitcraze/builder:23 docker image as uid 1000
make: Entering directory '/module'
CLEAN_VERSION
VTMPL version.c
fatal: not a git repository: /home/leafj/crazyflie/crazyflie-firmware/.git/modules/vendor/CMSIS
Traceback (most recent call last):
File ".//tools/make/versionTemplate.py", line 124, in <module>
extract_information_from_git(args.crazyflie_base)
File ".//tools/make/versionTemplate.py", line 68, in extract_information_from_git
["git", "-C", base, "diff-index", "--name-only", "HEAD", "--"]).strip()
File ".//tools/make/versionTemplate.py", line 22, in check_output
result = subprocess.check_output(*args)
File "/usr/lib/python2.7/subprocess.py", line 223, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['git', '-C', './', 'diff-index', '--name-only', 'HEAD', '--']' returned non-zero exit status 128
make[1]: *** [tools/make/targets.mk:21: version.c] Error 1
make: *** [Makefile:365: build] Error 2
make: Leaving directory '/module'
Error: The call 'docker run --rm -u 1000 -v /var/run/docker.sock:/var/run/docker.sock -it -v /home/leafj/crazyflie/crazyflie-firmware:/module bitcraze/builder:23 tools/build/make PLATFORM=cf2' failed with error code 2
I then tried to run the offending git command from the error directly from the command-line, which was successful:
Code: Select all
(base) leafj@leafj-linux:~/crazyflie/crazyflie-firmware$ git -C ./ diff-index --name-only HEAD --
(base) leafj@leafj-linux:~/crazyflie/crazyflie-firmware$ python .//tools/make/versionTemplate.py --crazyflie-base ./ --print-version
Build 1:f741bfbd5208 (2020.06 +1) CLEAN
Version extracted from git
(base) leafj@leafj-linux:~/crazyflie/crazyflie-firmware$ python --version
Python 3.7.6