From 2e32d4ee8b9dbb545e982648d2bc92866e3dec1f Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Mon, 20 Mar 2023 13:37:56 +0100 Subject: [PATCH] sys/riotboot: uses SLOT1_OFFSET in hex format Using hex number for addresses and address offsets improves the readability. --- sys/riotboot/Makefile.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/riotboot/Makefile.include b/sys/riotboot/Makefile.include index c9bb330e45..b81e69716b 100644 --- a/sys/riotboot/Makefile.include +++ b/sys/riotboot/Makefile.include @@ -18,7 +18,7 @@ SLOT1_LEN := $(SLOT1_LEN) # slot 0. The values might be overridden to add more or less offset # if needed. SLOT0_OFFSET ?= $(RIOTBOOT_LEN) -SLOT1_OFFSET ?= $(shell echo $$(($(SLOT0_OFFSET) + $(SLOT0_LEN)))) +SLOT1_OFFSET ?= $(shell printf "0x%x" $$(($(SLOT0_OFFSET) + $(SLOT0_LEN)))) CFLAGS += -DSLOT0_LEN=$(SLOT0_LEN) CFLAGS += -DSLOT0_OFFSET=$(SLOT0_OFFSET)