From d26937fe9c84bc159d835cfbac86c0e8da162d2a Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Wed, 28 Feb 2024 13:49:12 +0100 Subject: [PATCH] cpu/gd32v: don't set FW_ROM_LEN to ROM_LEN FW_ROM_LEN is supposed to be a subset of ROM_LEN that contains the firmware (without bootloader, AUX slot). --- cpu/gd32v/Makefile.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/gd32v/Makefile.include b/cpu/gd32v/Makefile.include index 97dead6fab..4d18619796 100644 --- a/cpu/gd32v/Makefile.include +++ b/cpu/gd32v/Makefile.include @@ -17,7 +17,7 @@ else $(error CPU model $(CPU_MODEL) not supported) endif -FW_ROM_LEN ?= $(shell printf "0x%x" $$(($(ROM_LEN:%K=%*1024)))) +ROM_LEN := $(shell printf "0x%x" $$(($(ROM_LEN:%K=%*1024)))) RIOTBOOT_HDR_LEN ?= 0x400 ifneq (,$(filter usbus_dfu tinyusb_dfu,$(USEMODULE)))