8000 Fix build on Windows 11 when no DFU is being built. · h2zero/n-able-Arduino@48f95a4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 48f95a4

Browse files
committed
Fix build on Windows 11 when no DFU is being built.
1 parent a0489e1 commit 48f95a4

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

platform.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,15 @@ compiler.define=-DARDUINO=
5252
# this can be overriden in boards.txt
5353
build.extra_flags=
5454
build.lfclk_flags=-DUSE_LFRC
55-
build.dfu_pattern=echo Not building DFU package
55+
build.dfu_pattern={none.dfu_pattern.path}/{none.dfu_pattern.cmd}
5656
build.bootloader.file=tools/none_bootloader.hex
5757
build.flags.usb= -DUSBCON -DUSE_TINYUSB -DUSB_VID={build.vid} -DUSB_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'
5858

5959
nrfutil.dfu_pattern="{tools.nrfutil.cmd}" pkg generate --hw-version 52 --debug-mode --sd-req 0 --application "{build.path}/{build.project_name}.hex" "{build.path}/{build.project_name}.zip"
6060
adafruit-nrfutil.dfu_pattern="{tools.adafruit-nrfutil.cmd}" dfu genpkg --dev-type 0x0052 --application "{build.path}/{build.project_name}.hex" "{build.path}/{build.project_name}.zip"
61+
none.dfu_pattern.cmd=no_dfu
62+
none.dfu_pattern.cmd.windows=no_dfu.bat
63+
none.dfu_pattern.path={runtime.platform.path}/tools
6164

6265
nordic.path={build.core.path}/nordic
6366

tools/no_dfu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
echo "Not building DFU file"

tools/no_dfu.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echo off
2+
echo "Not building DFU file"
3+

0 commit comments

Comments
 (0)
0