Skip to content

Commit cdafa92

Browse files
committed
Silent clone
1 parent 6b13bff commit cdafa92

File tree

6 files changed

+17
-18
lines changed

6 files changed

+17
-18
lines changed

templates/blinky/nucleo-f429zi/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ firmware.bin: firmware.elf
2323
arm-none-eabi-objcopy -O binary $< $@
2424

2525
flash: firmware.bin
26-
st-flash --reset write $< 0x8000000
26+
STM32_Programmer_CLI -c port=swd -e all -w $< 0x8000000 -hardRst
2727

2828
cmsis_core:
29-
git clone --depth 1 -b 5.9.0 https://github.com/ARM-software/CMSIS_5 $@
29+
git clone -q -c advice.detachedHead=false --depth 1 -b 5.9.0 https://github.com/ARM-software/CMSIS_5 $@
3030

3131
cmsis_f4:
32-
git clone --depth 1 -b v2.6.8 https://github.com/STMicroelectronics/cmsis_device_f4 $@
32+
git clone -q -c advice.detachedHead=false --depth 1 -b v2.6.8 https://github.com/STMicroelectronics/cmsis_device_f4 $@
3333

3434
clean:
3535
$(RM) firmware.* cmsis_*

templates/blinky/nucleo-l432kc/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ firmware.bin: firmware.elf
2121
arm-none-eabi-objcopy -O binary $< $@
2222

2323
flash: firmware.bin
24-
st-flash --reset write $< 0x8000000
24+
STM32_Programmer_CLI -c port=swd -e all -w $< 0x8000000 -hardRst
2525

2626
cmsis_core:
27-
git clone --depth 1 -b 5.9.0 https://github.com/ARM-software/CMSIS_5 $@
27+
git clone -q -c advice.detachedHead=false --depth 1 -b 5.9.0 https://github.com/ARM-software/CMSIS_5 $@
2828

2929
cmsis_l4:
30-
git clone --depth 1 -b v1.7.2 https://github.com/STMicroelectronics/cmsis_device_l4 $@
30+
git clone -q -c advice.detachedHead=false --depth 1 -b v1.7.2 https://github.com/STMicroelectronics/cmsis_device_l4 $@
3131

3232
clean:
3333
$(RM) firmware.* cmsis_*

templates/blinky/same54-xplained/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,11 @@ flash: firmware.bin
2828
bossac -p /dev/cu.usb* -w -v -b $<
2929

3030
cmsis_core:
31-
git clone --depth 1 -b 5.9.0 https://github.com/ARM-software/CMSIS_5 $@
31+
git clone -q -c advice.detachedHead=false --depth 1 -b 5.9.0 https://github.com/ARM-software/CMSIS_5 $@
3232

3333
cmsis_sam:
3434
curl -sL https://packs.download.microchip.com/Microchip.SAME54_DFP.3.8.234.pack -o $@.zip
3535
mkdir $@ && cd $@ && unzip ../$@.zip
36-
# git clone --depth 1 -b master https://github.com/modm-io/cmsis-header-sam $@
3736

3837
clean:
3938
$(RM) firmware.* cmsis_* *.zip

templates/cli/nucleo-f429zi/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ firmware.bin: firmware.elf
2222
arm-none-eabi-objcopy -O binary $< $@
2323

2424
flash: firmware.bin
25-
st-flash --reset write $< 0x8000000
25+
STM32_Programmer_CLI -c port=swd -e all -w $< 0x8000000 -hardRst
2626

2727
cmsis_core:
28-
git clone --depth 1 -b 5.9.0 https://github.com/ARM-software/CMSIS_5 $@
28+
git clone -q -c advice.detachedHead=false --depth 1 -b 5.9.0 https://github.com/ARM-software/CMSIS_5 $@
2929

3030
cmsis_f4:
31-
git clone --depth 1 -b v2.6.8 https://github.com/STMicroelectronics/cmsis_device_f4 $@
31+
git clone -q -c advice.detachedHead=false --depth 1 -b v2.6.8 https://github.com/STMicroelectronics/cmsis_device_f4 $@
3232

3333
clean:
3434
$(RM) firmware.* cmsis_*

templates/cli/nucleo-l432kc/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ firmware.bin: firmware.elf
2121
arm-none-eabi-objcopy -O binary $< $@
2222

2323
flash: firmware.bin
24-
st-flash --reset write $< 0x8000000
24+
STM32_Programmer_CLI -c port=swd -e all -w $< 0x8000000 -hardRst
2525

2626
cmsis_core:
27-
git clone --depth 1 -b 5.9.0 https://github.com/ARM-software/CMSIS_5 $@
27+
git clone -q -c advice.detachedHead=false --depth 1 -b 5.9.0 https://github.com/ARM-software/CMSIS_5 $@
2828

2929
cmsis_l4:
30-
git clone --depth 1 -b v1.7.2 https://github.com/STMicroelectronics/cmsis_device_l4 $@
30+
git clone -q -c advice.detachedHead=false --depth 1 -b v1.7.2 https://github.com/STMicroelectronics/cmsis_device_l4 $@
3131

3232
clean:
3333
$(RM) firmware.* cmsis_*

templates/lfs/nucleo-f303k8/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ firmware.bin: firmware.elf
2121
arm-none-eabi-objcopy -O binary $< $@
2222

2323
flash: firmware.bin
24-
st-flash --reset write $< 0x8000000
24+
STM32_Programmer_CLI -c port=swd -e all -w $< 0x8000000 -hardRst
2525

2626
cmsis_core:
27-
git clone --depth 1 -b 5.9.0 https://github.com/ARM-software/CMSIS_5 $@
27+
git clone -q -c advice.detachedHead=false --depth 1 -b 5.9.0 https://github.com/ARM-software/CMSIS_5 $@
2828

2929
cmsis_f3:
30-
git clone --depth 1 -b v2.3.7 https://github.com/STMicroelectronics/cmsis_device_f3 $@
30+
git clone -q -c advice.detachedHead=false --depth 1 -b v2.3.7 https://github.com/STMicroelectronics/cmsis_device_f3 $@
3131

3232
littlefs/lfs.c: littlefs
3333
littlefs:
34-
git clone --depth 1 -b v2.6.1 https://github.com/littlefs-project/littlefs $@
34+
git clone -q -c advice.detachedHead=false --depth 1 -b v2.6.1 https://github.com/littlefs-project/littlefs $@
3535

3636
clean:
3737
$(RM) firmware.* cmsis_* littlefs

0 commit comments

Comments
 (0)