Sounds good, I like this idea which make openssl generated part and edk2 
conditional part more clear.

Thank you,
Yi 

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Gerd Hoffmann
Sent: Monday, May 9, 2022 5:34 PM
To: Li, Yi1 <[email protected]>
Cc: [email protected]; Yao, Jiewen <[email protected]>; Wang, Jian J 
<[email protected]>; Lu, Xiaoyu1 <[email protected]>; Jiang, Guomin 
<[email protected]>
Subject: Re: [edk2-devel] [PATCH 1/3] CryptoPkg: Update process_files.pl to 
automatically add PCD config option

  Hi,

> +#
> +# Add conditional feature to opensslconf.h #

I'd suggest to write the opensslconf.h created by openssl unmodified to 
opensslconf-generated.h, then have a opensslconf.h like this:

#include <Library/PcdLib.h>
#include "opensslconf-generated.h"
#if !FixedPcdGetBool(PcdEcEnable)
# define OPENSSL_NO_EC
# [ ... ]
#endif

take care,
  Gerd








-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#89604): https://edk2.groups.io/g/devel/message/89604
Mute This Topic: https://groups.io/mt/90982453/21656
Group Owner: [email protected]
Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to