mirror of
https://github.com/oltaco/Adafruit_nRF52_Bootloader_OTAFIX.git
synced 2026-10-24 04:14:11 +00:00
Compare commits
1
Commits
dev
...
fix-gcc-win
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a43296ea2a |
@@ -33,6 +33,15 @@ SD_HEX = $(SD_PATH)/$(SD_FILENAME)_softdevice.hex
|
|||||||
|
|
||||||
MBR_HEX = lib/softdevice/mbr/hex/mbr_nrf52_2.4.1_mbr.hex
|
MBR_HEX = lib/softdevice/mbr/hex/mbr_nrf52_2.4.1_mbr.hex
|
||||||
|
|
||||||
|
# Detect the operating system
|
||||||
|
# The "OS" environment variable on Windows is always "Windows_NT"
|
||||||
|
# when running under a modern shell like cmd.exe or powershell
|
||||||
|
ifeq ($(OS),Windows_NT)
|
||||||
|
NULL_DEVICE = NUL
|
||||||
|
else
|
||||||
|
NULL_DEVICE = /dev/null
|
||||||
|
endif
|
||||||
|
|
||||||
# linker by MCU eg. nrf52840.ld
|
# linker by MCU eg. nrf52840.ld
|
||||||
ifeq ($(DEBUG), 1)
|
ifeq ($(DEBUG), 1)
|
||||||
LD_FILE = linker/$(MCU_SUB_VARIANT)_debug.ld
|
LD_FILE = linker/$(MCU_SUB_VARIANT)_debug.ld
|
||||||
@@ -337,7 +346,7 @@ CFLAGS += -DDFU_APP_DATA_RESERVED=$(DFU_APP_DATA_RESERVED)
|
|||||||
|
|
||||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
|
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
|
||||||
# Fixes for gcc version 12, 13 and 14.
|
# Fixes for gcc version 12, 13 and 14.
|
||||||
ifneq (,$(filter 12.% 13.% 14.%,$(shell $(CC) -dumpversion 2>/dev/null)))
|
ifneq (,$(filter 12.% 13.% 14.%,$(shell $(CC) -dumpversion 2>$(NULL_DEVICE))))
|
||||||
CFLAGS += --param=min-pagesize=0
|
CFLAGS += --param=min-pagesize=0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user