[PATCH 08/10] lib: Makefile: Make optee library available in SPL

Patrick DELAUNAY patrick.delaunay at foss.st.com
Tue Aug 31 19:16:04 CEST 2021


Hi

On 8/26/21 11:42 PM, Alexandru Gagniuc wrote:
> We want the optee_copy_fdt_nodes symbols in SPL. This is for cases
> when booting an OPTEE payload directly.
>
> Signed-off-by: Alexandru Gagniuc <mr.nuke.me at gmail.com>
> ---
>   lib/Makefile | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/Makefile b/lib/Makefile
> index 8ba745faa0..73dacbb01b 100644
> --- a/lib/Makefile
> +++ b/lib/Makefile
> @@ -16,7 +16,6 @@ obj-$(CONFIG_FIT) += libfdt/
>   obj-$(CONFIG_OF_LIVE) += of_live.o
>   obj-$(CONFIG_CMD_DHRYSTONE) += dhry/
>   obj-$(CONFIG_ARCH_AT91) += at91/
> -obj-$(CONFIG_OPTEE) += optee/
>   obj-$(CONFIG_ASN1_DECODER) += asn1_decoder.o
>   obj-y += crypto/
>   
> @@ -74,6 +73,7 @@ obj-$(CONFIG_$(SPL_)GZIP) += gunzip.o
>   obj-$(CONFIG_$(SPL_)LZO) += lzo/
>   obj-$(CONFIG_$(SPL_)LZMA) += lzma/
>   obj-$(CONFIG_$(SPL_)LZ4) += lz4_wrapper.o
> +obj-$(CONFIG_OPTEE) += optee/
>   
>   obj-$(CONFIG_$(SPL_)LIB_RATIONAL) += rational.o
>   

I will propose in other thread to have a specific CONFIG to compile the the OP-TEE library

CONFIG_OPTEE => CONFIG_OPTEE_LIB

CONFIG_OPTEE will be kept only to manage the OP-TEE driver compilation
(depending TEE uclass / CONFIG_TEE)

but if you need to have the LIBRARY available in SPL
(to avoid to increase the SPL size of other board)

I think the configuraiton CONFIG_SPL_OPTEE_LIB should be added
then the Makefile becomes
  
+obj-$(CONFIG_$(SPL_)OPTEE) += optee/

Patrick



More information about the U-Boot mailing list