-
Notifications
You must be signed in to change notification settings - Fork 33
/
buildFirmware10.bat
42 lines (34 loc) · 1.46 KB
/
buildFirmware10.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
del build /s /f /q
rmdir build /s/q
mkdir build
del firmware /s /f /q
rmdir firmware /s /q
mkdir firmware
cd firmware
mkdir madgrizzle
mkdir maslowcnc
mkdir holey
cd ../build
SET madgrizzle_firmware_repo=https://github.com/madgrizzle/Firmware.git
SET madgrizzle_firmware_sha=bf4350ffd9bc154832505fc0125abd2c4c04dba7
git clone %madgrizzle_firmware_repo% firmware/madgrizzle
cd firmware/madgrizzle
git checkout %madgrizzle_firmware_sha%
pio run -e megaatmega2560
copy .pio/build/megaatmega2560/firmware.hex ~/WebControl/firmware/madgrizzle/madgrizzle-$(sed -n -e 's/^.*VERSIONNUMBER //p' cnc_ctrl_v1/Maslow.h).hex
cd ../..
SET maslowcnc_firmware_repo=https://github.com/MaslowCNC/Firmware.git
SET maslowcnc_firmware_sha=e1e0d020fff1f4f7c6b403a26a85a16546b7e15b
git clone %maslowcnc_firmware_repo% firmware/maslowcnc
cd firmware/maslowcnc
git checkout %maslowcnc_firmware_sha%
pio run -e megaatmega2560
copy .pio/build/megaatmega2560/firmware.hex ~/WebControl/firmware/maslowcnc/maslowcnc-$(sed -n -e 's/^.*VERSIONNUMBER //p' cnc_ctrl_v1/Maslow.h).hex
cd ../..
SET holey_firmware_repo=https://github.com/madgrizzle/Firmware.git
SET holey_firmware_sha=950fb23396171cbd456c2d4149455cc45f5e6bc3
git clone %holey_firmware_repo% firmware/holey
cd firmware/holey
git checkout %holey_firmware_sha%
pio run -e megaatmega2560
copy .pio/build/megaatmega2560/firmware.hex C:\Users\jhogan\Documents\Github\WebControlfirmware/holey/holey-$(sed -n -e 's/^.*VERSIONNUMBER //p' cnc_ctrl_v1/Maslow.h).hex