Open matsievskiysv opened 1 year ago
@matsievskiysv
I tried to build the v4 firmware using the docker image in this PR. However I am getting an error
From BASH shell
xxxxxxxxxxxxxxxxxxxx MINGW64 /d/Git/Bus_Pirate/Bootloaders/BPv4-bootloader/firmware-v1 (pr-docker)
$ docker run --rm -it -v $PWD:/work buspirate:latest
make: *** No targets specified and no makefile found. Stop.
From Powershell
D:\Git\Bus_Pirate\Bootloaders\BPv4-bootloader\firmware-v1>docker run --rm -it -v %cd%/work buspirate:latest
make: *** No targets specified and no makefile found. Stop.
I am running docker on windows. Any ideas?
You should check that folder got mounted. Issue command
docker run --rm -it -v $PWD:/work --entrypoint bash buspirate:latest
This will take you to the shell inside the container. Check that firmware files are present in /work
folder.
Its empty
$ docker run --rm -it -v $PWD:/work --entrypoint bash buspirate:latest root@8c2156db0d15:/work# ls root@8c2156db0d15:/work#
You could double-check that $PWD
points to the right folder
ls $PWD
If it does, then the docker installation is messed up. I actually don't know if windows docker supports folder mounts.
It seems to be OK
root@8c2156db0d15:/work# ls $PWD
root@8c2156db0d15:/work# ls $PWD
root@8c2156db0d15:/work#
It was probably a stretch trying to get this to work on windows. I will move over to debian and give it a try. Thanks for the help.
It seems to be OK
No, I've meant to issue this command from mingw, not from inside the container.
Sorry misunderstood
xxxxxxxxx MINGW64 /d/Git/Bus_Pirate/Bootloaders/BPv4-bootloader/firmware-v1 (pr-docker)
$ ls $PWD
boot_config.h bootloader.c bootloader.h bpv4-bootloader.X/ cdc.c cdc.h descriptors.h globals.h main.c Makefile p24FJ256GB106.gld picusb.h usb_lang.h usb_stack.c usb_stack.h
This PR adds support for dockerized build toolchain, which would allow adding CI/CD to this project.
docker
containsbuild.dockerfile
for building the toolchain container and instructions on how to use it.Makefile
added to BPv4 bootloader and firmware folders for building without microchip IDENotes:
xc16
linker seem to be sensitive to the order of the object files, so couldn't usewildcard
in firmware Makefile