Skip to content

Commit

Permalink
Makefile: check for CFG_MS_TPM_20_REF
Browse files Browse the repository at this point in the history
Add a check in the Makefile for CFG_MS_TPM_20_REF with an error message
if the variable isn't set or obviously invalid.

Signed-off-by: Jens Wiklander <[email protected]>
Acked-by: Sumit Garg <[email protected]>
  • Loading branch information
jenswi-linaro authored and jforissier committed Nov 27, 2024
1 parent b2930b4 commit ea90e5a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ ifeq ($(wildcard $(TA_DEV_KIT_DIR)/mk/ta_dev_kit.mk), )
clean:
@echo 'Note: $$(TA_DEV_KIT_DIR)/mk/ta_dev_kit.mk not found, cannot clean TA'
endif

ifeq ($(wildcard $(CFG_MS_TPM_20_REF)),)
ifneq ($(MAKECMDGOALS),clean)
$(error CFG_MS_TPM_20_REF not supplied or invalid)
endif
endif

0 comments on commit ea90e5a

Please sign in to comment.