mirror of
https://github.com/kamilsss655/uv-k5-firmware-custom
synced 2024-11-21 17:57:59 +00:00
Remove sleep from makefile, fix docker compile script.
This commit is contained in:
parent
8e4620340b
commit
8e0cf4cf81
7
Makefile
7
Makefile
@ -446,7 +446,10 @@ debug:
|
||||
/opt/openocd/bin/openocd -c "bindto 0.0.0.0" -f interface/jlink.cfg -f dp32g030.cfg
|
||||
|
||||
flash:
|
||||
k5prog -F -YYY -b firmware.bin
|
||||
k5prog -F -YYY -b compiled-firmware/firmware.bin
|
||||
|
||||
docker:
|
||||
./compile-with-docker.sh
|
||||
|
||||
flash-openocd:
|
||||
/opt/openocd/bin/openocd -c "bindto 0.0.0.0" -f interface/jlink.cfg -f dp32g030.cfg -c "write_image firmware.bin 0; shutdown;"
|
||||
@ -472,4 +475,4 @@ clean:
|
||||
$(RM) $(call FixPath, $(TARGET).bin $(TARGET).packed.bin $(TARGET) $(OBJS) $(DEPS))
|
||||
|
||||
run:
|
||||
make clean && make -j8 && sleep 5 && make flash
|
||||
make docker && make flash
|
||||
|
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
docker build -t uvk5 .
|
||||
docker run --rm -v ${PWD}/compiled-firmware:/app/compiled-firmware uvk5 /bin/bash -c "cd /app && make && cp firmware* compiled-firmware/"
|
||||
docker run --rm -v ${PWD}/compiled-firmware:/app/compiled-firmware uvk5 /bin/bash -c "cd /app && make clean && make && cp firmware* compiled-firmware/"
|
||||
|
Loading…
Reference in New Issue
Block a user