Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jun 2024 05:36:43 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 6a467c783d66 - main - tpm: Fix standalone build
Message-ID:  <202406250536.45P5ahlr006403@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=6a467c783d669854fdfd3fb817f8c9824c4f6fe6

commit 6a467c783d669854fdfd3fb817f8c9824c4f6fe6
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-06-25 04:59:10 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-06-25 05:34:59 +0000

    tpm: Fix standalone build
    
    We're building ACPI, so we need -DDEV_ACPI on CFLAGS. Nomally, the
    kernel config brings this in, but there's no kernel directory for the
    standalone build.
    
    Sponsored by:           Netflix
---
 sys/modules/tpm/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/modules/tpm/Makefile b/sys/modules/tpm/Makefile
index c859e010b2d9..372c2dcad86b 100644
--- a/sys/modules/tpm/Makefile
+++ b/sys/modules/tpm/Makefile
@@ -23,6 +23,7 @@ SRCS+= acpi_if.h
 SRCS+= tpm_tis_acpi.c
 SRCS+= tpm_crb.c
 SRCS+= tpm_bus.c
+CFLAGS+=-DDEV_ACPI
 .endif
 
 .include <bsd.kmod.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202406250536.45P5ahlr006403>