Skip to content

Commit

Permalink
soc/intel/baytrail/Makefile.mk: Check if MANIFESTS region start is co…
Browse files Browse the repository at this point in the history
…rrect

Signed-off-by: Michał Żygowski <[email protected]>
  • Loading branch information
miczyg1 committed Oct 9, 2024
1 parent 56baef0 commit 13bf594
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/soc/intel/baytrail/Makefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,12 @@ add_bootblock = \
ifeq ($(CONFIG_TXE_SB_INCLUDE_KEY_MANIFEST),y)
ifneq ($(call strip_quotes,$(CONFIG_TXE_SB_KEY_MANIFEST_PATH)),)

key_manifest_pos = $(call int-subtract, $(CONFIG_ROM_SIZE) 0x21000)

$(call add_intermediate, add_txe_sb_km, $(call strip_quotes,$(CONFIG_TXE_SB_KEY_MANIFEST_PATH)))
printf " DD Adding SB Key Manifest\n" \
dd if=$(CONFIG_TXE_SB_KEY_MANIFEST_PATH) \
of=$< conv=notrunc bs=4K \
seek=$(key_manifest_pos) >/dev/null 2>&1
$(call add_intermediate, add_txe_sb_km, $(obj)/fmap_config.h $(call strip_quotes,$(CONFIG_TXE_SB_KEY_MANIFEST_PATH)))
$(if $(filter 1,, $(call int-eq, $(call get_fmap_value,FMAP_SECTION_MANIFESTS_START) $(call int-subtract, $(CONFIG_ROM_SIZE) 0x21000)) \
$(call int-eq, $(call get_fmap_value,FMAP_SECTION_MANIFESTS_START) 0xfffdf000)), , \
$(error FMAP_SECTION_MANIFESTS_START must be at 0xfffdf000))
printf " CBFSTOOL Adding SB Key Manifest\n" \
$(CBFSTOOL) $(1) write -d -r MANIFESTS -f $(CONFIG_TXE_SB_KEY_MANIFEST_PATH)

endif
endif # CONFIG_TXE_SB_INCLUDE_KEY_MANIFEST
Expand Down

0 comments on commit 13bf594

Please sign in to comment.