From 738e6c55d141105b33b0a21fe16ae5e6b482c688 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 5 Oct 2022 19:57:07 +0200 Subject: contrib: add flash nuke u2f file --- .gitignore | 1 + contrib/Makefile | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index b61c547..d360dda 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /contrib/picoprobe.u2f +/contrib/flash_nuke.u2f /contrib/openocd /contrib/ChibiOS_*/ /contrib/ChibiOS_*.7z diff --git a/contrib/Makefile b/contrib/Makefile index 15406b3..7250d5a 100644 --- a/contrib/Makefile +++ b/contrib/Makefile @@ -29,8 +29,8 @@ GCC_HOST := $(shell uname -m)-$(shell uname | tr '[:upper:]' '[:lower:]') GCC_SHA256SUM := 97dbb4f019ad1650b732faffcc881689cedc14e2b7ee863d390e0a41ef16c9a3 -all: download-picoprobe clone-openocd download-chibios download-gcc -clean: clean-picoprobe clean-openocd clean-chibios clean-gcc +all: download-picoprobe download-flash_nuke clone-openocd download-chibios download-gcc +clean: clean-picoprobe clean-flash_nuke clean-openocd clean-chibios clean-gcc download-picoprobe: picoprobe.u2f @@ -42,6 +42,15 @@ clean-picoprobe: rm -f picoprobe.u2f +download-flash_nuke: flash_nuke.u2f + +flash_nuke.u2f: + wget "https://datasheets.raspberrypi.com/soft/flash_nuke.uf2" -O "$@" + +clean-flash_nuke: + rm -f flash_nuke.u2f + + openocd/src/openocd: git clone https://github.com/raspberrypi/openocd.git --branch rp2040 --depth=1 --no-single-branch cd openocd; ./bootstrap; ./configure --enable-picoprobe; make -j 4 -- cgit v1.2.3