From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 15 May 2018 11:58:48 -0400 Subject: [U-Boot] [PATCH v4 10/32] tpm: disociate TPMv1.x specific and generic code In-Reply-To: <20180515095728.16572-11-miquel.raynal@bootlin.com> References: <20180515095728.16572-1-miquel.raynal@bootlin.com> <20180515095728.16572-11-miquel.raynal@bootlin.com> Message-ID: <20180515155848.GV3424@bill-the-cat.ec.rr.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, May 15, 2018 at 11:57:06AM +0200, Miquel Raynal wrote: > There are no changes in this commit but a new organization of the code > as follow. > > * cmd/ directory: > > move existing code from cmd/tpm.c in cmd/tpm-common.c > > move specific code in cmd/tpm-v1.c > > create a specific header file with generic definitions for > commands only called cmd/tpm-user-utils.h > > * lib/ directory: > > move existing code from lib/tpm.c in lib/tpm-common.c > > move specific code in lib/tpm-v1.c > > create a specific header file with generic definitions for > the library itself called lib/tpm-utils.h > > * include/ directory: > > move existing code from include/tpm.h in include/tpm-common.h > > move specific code in include/tpm-v1.h > > Code designated as 'common' is compiled if TPM are used. Code designated > as 'specific' is compiled only if the right specification has been > selected. > > All files include tpm-common.h. > Files in cmd/ include tpm-user-utils.h. > Files in lib/ include tpm-utils.h. > Depending on the specification, files may include either (not both) > tpm-v1.h or tpm-v2.h. > > Signed-off-by: Miquel Raynal Doing some out-of-band copy/diff'ing to check before/after in the parts git couldn't just see as a move looks good to me: Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: