diff options
| author | Zach DeCook <zachdecook@librem.one> | 2023-11-12 07:57:23 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2023-11-12 07:57:23 -0500 |
| commit | 44ab755203cbc8c18e6c7f8e018ae51e014ecada (patch) | |
| tree | 305858e76ab4677572489ea867e84b3cb6c9be87 /Makefile | |
| parent | 1dd13d0cd05f3a3ac239d98aa7f897e98145b43c (diff) | |
| download | HexBoard-44ab755203cbc8c18e6c7f8e018ae51e014ecada.tar.gz | |
tooling: Improve make install to mount device
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile index 40d6f3c..a4ed53b 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,13 @@ build/build.ino.uf2: build/build.ino build/build.ino: HexBoard_V1.1.ino cp HexBoard_V1.1.ino build/build.ino -install: build/build.ino.uf2 +/mnt/INFO_UF2.TXT: + echo "Mounting device" + mount /dev/sd*1 /mnt + +install: build/build.ino.uf2 /mnt/INFO_UF2.TXT echo "Trying to copy into mounted device" - cp build/build.ino.uf2 /run/media/zach/RPI-RP2/ + cp build/build.ino.uf2 /mnt/ echo "Installed." + sleep 7 + echo "Rebooted." |
