[PATCH 1/1] Dockerfile: build swtpm

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Sat Nov 13 21:14:39 CET 2021



On 11/9/21 20:27, Tom Rini wrote:
> On Tue, Nov 09, 2021 at 07:51:20PM +0100, Heinrich Schuchardt wrote:
> 
>> For testing the TPM drivers and the EFI_TCG2_PROTOCOL we need the tool
>> swtpm.
>>
>> Once we move to Ubuntu Impish we can take libtpms from package libtpms-dev.
>>
>> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> 
> Much like how we used to handle one of the other requirements by
> wget'ing a single deb from a later release, can we do that here?  Or too
> many dependencies?

The following works in "virgin" Ubuntu Focal:

apt-get update
apt-get install wget dpkg-sig
wget 
https://launchpad.net/ubuntu/+archive/primary/+files/libtpms-dev_0.9.0-0ubuntu2_amd64.deb
wget 
https://launchpad.net/ubuntu/+archive/primary/+files/libtpms0_0.9.0-0ubuntu2_amd64.deb
dpkg -i *.deb

But this would not check package signatures.
You should check the hashes of the downloaded deb files.

I would not expect that the URLs stay available when a new package 
version becomes available.

Why do you want to stay on Focal?

Best regards

Heinrich


More information about the U-Boot mailing list