mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys/riotboot: uses SLOT1_OFFSET in hex format
Using hex number for addresses and address offsets improves the readability.
This commit is contained in:
parent
06426c41b0
commit
2e32d4ee8b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user