From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miquel Raynal Date: Mon, 28 May 2018 00:22:50 +0200 Subject: [U-Boot] [U-Boot, v4, 09/32] tpm: prepare introduction of TPMv2.x support in Kconfig In-Reply-To: <20180526155429.GP21194@bill-the-cat.ec.rr.com> References: <20180515095728.16572-10-miquel.raynal@bootlin.com> <20180526155429.GP21194@bill-the-cat.ec.rr.com> Message-ID: <20180528002250.32e9aa0a@xps13> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de Hi Tom, On Sat, 26 May 2018 11:54:29 -0400, Tom Rini wrote: > On Tue, May 15, 2018 at 11:57:05AM +0200, Miquel Raynal wrote: >=20 > > Because both major revisions are not compatible at all, let's make them > > mutually exclusive in Kconfig. This way we will be sure, when using a > > command or a library function that it is supported by the right > > revision. > >=20 > > Current drivers are currently prefixed by "tpm_", we will prefix TPMv2.x > > files by "tpm2_" to make the distinction without moving everything. > >=20 > > The Kconfig menu about TPM drivers is now divided into two sections, one > > for each specification. Compliant drivers with one specification will > > only show up if this specification _only_ has been selected, otherwise a > > comment is displayed. > >=20 > > Once a driver is selected by the user, it selects automatically a > > boolean value, that is needed in order to activate the TPM commands. > > Selecting the TPM commands will automatically select the right > > command/library files. > >=20 > > Signed-off-by: Miquel Raynal > > Reviewed-by: Simon Glass > > Reviewed-by: Tom Rini =20 >=20 > There was a thinko in here that I noticed when building for everything, > that I have fixed. Both TPM_V1 and TPM_V2 need to depend on TPM (which > comes from lib/Kconfig) otherwise we would start building TPMv1 support > for all platforms. I also ended up dropping out TPM_DRIVER_SELECTED and > instead making CMD_TPM depend on TPM_V1 || TPM_V2 as that ended up being > a cleaner way to deal with the gdsys boards with TPM but without a > dedicated driver exactly. With that fixed: >=20 > Applied to u-boot/master, thanks! >=20 Ok, thanks for the update. Nice to see all that series merged! Regards, Miqu=C3=A8l