aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/tpm/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* tpm: Fix standalone buildWarner Losh2024-06-251-0/+1
| | | | | | | | 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
* tpm: Add new tpm_bus.c to module MakefileJustin Hibbits2024-05-171-0/+1
| | | | | Reported by: eduardo@ Fixes: c2e9c5bbf0 ("tpm: Refactor TIS and add a SPI attachment")
* tpm: Refactor TIS and add a SPI attachmentJustin Hibbits2024-05-031-3/+18
| | | | | | | | | | | | | | | | Summary: Though mostly used in x86 devices, TPM can be used on others, with a direct SPI attachment. Refactor the TPM 2.0 driver set to use an attachment interface, and implement a SPI bus interface. Test Plan: Tested on a Raspberry Pi 4, with a GeeekPi TPM2.0 module (SLB9670 TPM) using security/tpm2-tools tpm2_getcaps for very light testing against the spibus attachment. Reviewed by: kd Obtained from: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D45069
* sys: Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Revert r357349, since the clang 10.0.0 warning was actually correct, andDimitry Andric2020-02-011-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | the ! operator should have been a ~ instead: Merge r357348 from the clang 10.0.0 import branch: Disable new clang 10.0.0 warnings about converting the result of shift operations to a boolean in tpm(4): sys/dev/tpm/tpm_crb.c:301:32: error: converting the result of '<<' to a boolean; did you mean '(1 << (0)) != 0'? [-Werror,-Wint-in-bool-context] WR4(sc, TPM_CRB_CTRL_CANCEL, !TPM_CRB_CTRL_CANCEL_CMD); ^ sys/dev/tpm/tpm_crb.c:73:34: note: expanded from macro 'TPM_CRB_CTRL_CANCEL_CMD' #define TPM_CRB_CTRL_CANCEL_CMD BIT(0) ^ sys/dev/tpm/tpm20.h:60:19: note: expanded from macro 'BIT' #define BIT(x) (1 << (x)) ^ Such warnings can be useful in C++ contexts, but not so much in kernel drivers, where this type of bit twiddling is commonplace. So disable it for this case. Noticed by: cem MFC after: 3 days Notes: svn path=/head/; revision=357366
* Disable new clang 10.0.0 warnings about converting the result of shiftDimitry Andric2020-01-311-0/+2
| | | | | | | | | | | | | | | | | | | | | | | operations to a boolean in tpm(4): sys/dev/tpm/tpm_crb.c:301:32: error: converting the result of '<<' to a boolean; did you mean '(1 << (0)) != 0'? [-Werror,-Wint-in-bool-context] WR4(sc, TPM_CRB_CTRL_CANCEL, !TPM_CRB_CTRL_CANCEL_CMD); ^ sys/dev/tpm/tpm_crb.c:73:34: note: expanded from macro 'TPM_CRB_CTRL_CANCEL_CMD' #define TPM_CRB_CTRL_CANCEL_CMD BIT(0) ^ sys/dev/tpm/tpm20.h:60:19: note: expanded from macro 'BIT' #define BIT(x) (1 << (x)) ^ Such warnings can be useful in C++ contexts, but not so much in kernel drivers, where this type of bit twiddling is commonplace. So disable it for this case. MFC after: 3 days Notes: svn path=/projects/clang1000-import/; revision=357348
* Fix `make` in sys/modulesLi-Wen Hsu2019-03-281-1/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=345632
* Include the new TPM 2.0 driver in the TPM module.Marcin Wojtas2018-12-191-0/+2
| | | | | | | | | | | | | Update the appropriate Makefile to build the new driver together with the old one. Submitted by: Kornel Duleba <mindal@semihalf.com> Reported by: kib Obtained from: Semihalf Sponsored by: Stormshield Notes: svn path=/head/; revision=342251
* sys/modules: normalize .CURDIR-relative paths to SRCTOPEnji Cooper2017-03-041-1/+1
| | | | | | | | | | | This simplifies make output/logic Tested with: `cd sys/modules; make ALL_MODULES=` on amd64 MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314651
* Hook tpm.4 manual to build.Takanori Watanabe2010-08-131-2/+4
| | | | Notes: svn path=/head/; revision=211270
* Add tpm(4) driver for Trusted Platform Module.Takanori Watanabe2010-08-121-0/+9
You may want to look at http://bsssd.sourceforge.net/ . Submitted by: Hans-Joerg Hoexer <Hans-Joerg_Hoexer@genua.de> Notes: svn path=/head/; revision=211201