Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create recipe for tcgtool, a program that replicates the structures used to represent data measured and hashed to extend TPM PCRs. This is useful to compute a PCR hash at runtime, which is normally computed by the firmware before the OS boots. This allows for adjusting a TPM2 policy to unlock the disk encryption passphrase with the updated state on the next boot. Change-type: patch Signed-off-by: Joseph Kogut <joseph@balena.io>
- Loading branch information
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
DESCRIPTION = "Pack efivar data for hashing to extend PCRs" | ||
LICENSE = "Apache-2.0" | ||
LIC_FILES_CHKSUM = "file://${BALENA_COREBASE}/COPYING.Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" | ||
SRC_URI = "git://github.com/balena-os/tcgtool.git;branch=master;protocol=https" | ||
SRCREV = "633b7d7617873a58f38cbe5b414d5f43f04355df" | ||
|
||
S = "${WORKDIR}/git" | ||
|
||
do_compile() { | ||
oe_runmake ${PN} | ||
} | ||
|
||
do_install() { | ||
install -d ${D}${bindir} | ||
install -m 755 ${B}/${PN} ${D}${bindir}/${PN} | ||
} | ||
|
||
BB_STRICT_CHECKSUM = "0" | ||
|
||
BBCLASSEXTEND = "native" |