Skip to content

Commit

Permalink
Makefile: fix init build in SEV mode
Browse files Browse the repository at this point in the history
Move INIT_DEFS up to avoid overwritting the values added by the
SEV conditional.

Signed-off-by: Sergio Lopez <[email protected]>
  • Loading branch information
slp authored and tylerfanelli committed Mar 11, 2023
1 parent 190ae88 commit 8a48661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ SNP_INIT_SRC = init/tee/snp_attest.c \
SEV_LD_FLAGS = -lcurl -lidn2 -lssl -lcrypto -lzstd -lz -lbrotlidec-static \
-lbrotlicommon-static

INIT_DEFS =
ifeq ($(SEV),1)
VARIANT = -sev
FEATURE_FLAGS := --features amd-sev
INIT_DEFS := -DSEV=1
INIT_DEFS += -DSEV=1
INIT_DEFS += $(SEV_LD_FLAGS)
INIT_SRC += $(SNP_INIT_SRC)
endif

INIT_DEFS =
ifeq ($(ROSETTA),1)
INIT_DEFS += -D__ROSETTA__
endif
Expand Down

0 comments on commit 8a48661

Please sign in to comment.