Skip to content

Commit

Permalink
Fix tpmtools
Browse files Browse the repository at this point in the history
  • Loading branch information
danielinux committed Oct 28, 2024
1 parent 8e32915 commit fe8f14c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/wolfboot/wolfboot.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ extern "C" {

#endif

#if defined(__WOLFBOOT) || defined (__FLASH_OTP_PRIMER) || defined (UNIT_TEST_AUTH)
#if defined(__WOLFBOOT) || defined (__FLASH_OTP_PRIMER) || defined (UNIT_TEST_AUTH) || defined(WOLFBOOT_TPM)

/* Authentication configuration */
#if defined(WOLFBOOT_NO_SIGN)
Expand Down
4 changes: 2 additions & 2 deletions tools/tpm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ LD = gcc
WOLFBOOTDIR = ../..
WOLFDIR = $(WOLFBOOTDIR)/lib/wolfssl/
WOLFTPMDIR = $(WOLFBOOTDIR)/lib/wolfTPM/
CFLAGS = -Wall -Wextra -Werror
CFLAGS += -DWOLFSSL_USER_SETTINGS -DWOLFTPM_USER_SETTINGS -DWOLFBOOT_TPM -DHAVE_NETDB_H
CFLAGS = -Wall -Wextra -Werror -Wno-unused-function
CFLAGS += -DWOLFSSL_USER_SETTINGS -DWOLFTPM_USER_SETTINGS -DWOLFBOOT_TPM -DHAVE_NETDB_H -DWOLFBOOT_SIGN_$(SIGN)
CFLAGS += -I. -I$(WOLFDIR) -I$(WOLFTPMDIR) -I$(WOLFBOOTDIR)/include
LDFLAGS =
OBJDIR = ./
Expand Down
2 changes: 1 addition & 1 deletion tools/tpm/policy_create.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <wolfssl/wolfcrypt/hash.h>
#include <wolftpm/tpm2_wrap.h>
#include <hal/tpm_io.h>
#include "keystore.h"
#include "wolfboot/wolfboot.h"
#include "tpm.h"

#define DEFAULT_PCR 16
Expand Down
2 changes: 1 addition & 1 deletion tools/tpm/rot.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <wolfssl/wolfcrypt/hash.h>
#include <wolftpm/tpm2_wrap.h>
#include <hal/tpm_io.h>
#include "keystore.h"
#include "wolfboot/wolfboot.h"
#include "tpm.h"

#include <stdio.h>
Expand Down

0 comments on commit fe8f14c

Please sign in to comment.