aboutsummaryrefslogtreecommitdiff
path: root/circuitpython
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2022-06-25 21:19:30 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2022-06-25 21:19:30 +0530
commit158df569bc1efa4fea1272e6c8f232efed194aa7 (patch)
tree3bddbffc549102ef3fabae8bdaf0e1e13360cf7e /circuitpython
parenta7c25f19d9700c008e6d6b5b4f95ea6103bda8ab (diff)
progress
Diffstat (limited to 'circuitpython')
-rw-r--r--circuitpython/Dockerfile4
-rwxr-xr-xcircuitpython/build.sh10
-rwxr-xr-xcircuitpython/sleep.sh2
3 files changed, 9 insertions, 7 deletions
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