Skip to content

Commit bf42aa8

Browse files
committed
fix lingering IMAGE_HEADER_SIZE override in options.mk that should instead check for min size
1 parent dba2aa3 commit bf42aa8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

options.mk

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,9 @@ ifeq ($(SIGN),RSAPSS3072)
344344
endif
345345
endif
346346
ifneq ($(HASH),SHA256)
347-
IMAGE_HEADER_SIZE=1024
347+
ifeq ($(shell test $(IMAGE_HEADER_SIZE) -lt 1024; echo $$?),0)
348+
IMAGE_HEADER_SIZE=1024
349+
endif
348350
endif
349351
ifeq ($(shell test $(IMAGE_HEADER_SIZE) -lt 512; echo $$?),0)
350352
IMAGE_HEADER_SIZE=512
@@ -438,7 +440,9 @@ ifneq ($(findstring RSA3072,$(SIGN)),)
438440
endif
439441
endif
440442
ifneq ($(HASH),SHA256)
441-
IMAGE_HEADER_SIZE=1024
443+
ifeq ($(shell test $(IMAGE_HEADER_SIZE) -lt 1024; echo $$?),0)
444+
IMAGE_HEADER_SIZE=1024
445+
endif
442446
endif
443447
ifeq ($(shell test $(IMAGE_HEADER_SIZE) -lt 512; echo $$?),0)
444448
IMAGE_HEADER_SIZE=512

0 commit comments

Comments
 (0)