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)