Skip to content

Commit 0c14005

Browse files
committed
Fixed retrieving partition offset during build
fix for #12
1 parent e6723ec commit 0c14005

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ wolfboot.hex: wolfboot.elf
135135
align: wolfboot-align.bin
136136

137137
wolfboot-align.bin: wolfboot.bin
138-
@cat include/target.h |grep WOLFBOOT_PARTITION_BOOT_ADDRESS | head -1 | sed -e "s/.*[ ]//g" > .wolfboot-offset
138+
@cat include/target.h |grep WOLFBOOT_PARTITION_BOOT_ADDRESS | tr -d "\n\r" | sed -e "s/.*[ ]//g" > .wolfboot-offset
139139
@printf "%d" `cat .wolfboot-offset` > .wolfboot-offset
140140
@printf "%d" $(ARCH_FLASH_OFFSET) >.wolfboot-arch-offset
141141
@expr `cat .wolfboot-offset` - `cat .wolfboot-arch-offset` >.wolfboot-partition-size

lib/wolfssl

Submodule wolfssl updated 582 files

0 commit comments

Comments
 (0)