tpm: disociate TPMv1.x specific and generic code
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 <miquel.raynal@bootlin.com> Reviewed-by:
Tom Rini <trini@konsulko.com> [trini: Fix a few more cases of tpm.h -> tpm-v1.h, some Kconfig logic] Signed-off-by:
Tom Rini <trini@konsulko.com>
Showing
- board/gdsys/a38x/controlcenterdc.c 1 addition, 1 deletionboard/gdsys/a38x/controlcenterdc.c
- board/gdsys/a38x/hre.c 1 addition, 1 deletionboard/gdsys/a38x/hre.c
- board/gdsys/a38x/keyprogram.c 1 addition, 1 deletionboard/gdsys/a38x/keyprogram.c
- board/gdsys/p1022/controlcenterd-id.c 1 addition, 1 deletionboard/gdsys/p1022/controlcenterd-id.c
- cmd/Makefile 2 additions, 1 deletioncmd/Makefile
- cmd/tpm-common.c 288 additions, 0 deletionscmd/tpm-common.c
- cmd/tpm-user-utils.h 24 additions, 0 deletionscmd/tpm-user-utils.h
- cmd/tpm-v1.c 13 additions, 291 deletionscmd/tpm-v1.c
- cmd/tpm_test.c 1 addition, 1 deletioncmd/tpm_test.c
- drivers/tpm/Kconfig 2 additions, 1 deletiondrivers/tpm/Kconfig
- drivers/tpm/tpm-uclass.c 3 additions, 1 deletiondrivers/tpm/tpm-uclass.c
- drivers/tpm/tpm_atmel_twi.c 1 addition, 1 deletiondrivers/tpm/tpm_atmel_twi.c
- drivers/tpm/tpm_tis_infineon.c 1 addition, 1 deletiondrivers/tpm/tpm_tis_infineon.c
- drivers/tpm/tpm_tis_lpc.c 1 addition, 1 deletiondrivers/tpm/tpm_tis_lpc.c
- drivers/tpm/tpm_tis_sandbox.c 1 addition, 1 deletiondrivers/tpm/tpm_tis_sandbox.c
- drivers/tpm/tpm_tis_st33zp24_i2c.c 1 addition, 1 deletiondrivers/tpm/tpm_tis_st33zp24_i2c.c
- drivers/tpm/tpm_tis_st33zp24_spi.c 1 addition, 1 deletiondrivers/tpm/tpm_tis_st33zp24_spi.c
- include/tpm-common.h 210 additions, 0 deletionsinclude/tpm-common.h
- include/tpm-v1.h 15 additions, 199 deletionsinclude/tpm-v1.h
- lib/Makefile 2 additions, 1 deletionlib/Makefile
Loading
Please register or sign in to comment