From 158df569bc1efa4fea1272e6c8f232efed194aa7 Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Sat, 25 Jun 2022 21:19:30 +0530 Subject: progress --- circuitpython/Dockerfile | 4 +++- circuitpython/build.sh | 10 ++++------ circuitpython/sleep.sh | 2 ++ 3 files changed, 9 insertions(+), 7 deletions(-) create mode 100755 circuitpython/sleep.sh (limited to 'circuitpython') diff --git a/circuitpython/Dockerfile b/circuitpython/Dockerfile index 8e115cc..5cbb6c6 100644 --- a/circuitpython/Dockerfile +++ b/circuitpython/Dockerfile @@ -6,4 +6,6 @@ WORKDIR /circuitpython RUN apt-get update RUN apt-get install python3 python3-pip git gettext build-essential mtools gcc-arm-none-eabi -y RUN pip3 install --upgrade -r requirements-dev.txt -RUN make -C mpy-cross \ No newline at end of file +RUN make -C mpy-cross + +ENTRYPOINT [ "bash", "sleep.sh"] \ No newline at end of file diff --git a/circuitpython/build.sh b/circuitpython/build.sh index 710b06f..3c3df83 100755 --- a/circuitpython/build.sh +++ b/circuitpython/build.sh @@ -1,12 +1,10 @@ #!/bin/bash -a=$PWD -a=$PWD -ls /mounted +file=$b64file -cp /mounted/code.py $a/frozen/compromyse/raspiducky.py +echo $file | base64 -d > frozen/compromyse/raspiducky.py -cd $a/ports/raspberrypi/ +cd /circuitpython/ports/raspberrypi/ make BOARD=raspberry_pi_pico -j4 -cp $a/ports/raspberrypi/build-raspberry_pi_pico/firmware.uf2 $a +cp /circuitpython/ports/raspberrypi/build-raspberry_pi_pico/firmware.uf2 /circuitpython \ No newline at end of file diff --git a/circuitpython/sleep.sh b/circuitpython/sleep.sh new file mode 100755 index 0000000..52597c5 --- /dev/null +++ b/circuitpython/sleep.sh @@ -0,0 +1,2 @@ +#!/bin/bash +while true; do sleep 1000; done \ No newline at end of file -- cgit v1.2.3