xiaoxiang781216 commented on PR #10211:
URL: https://github.com/apache/nuttx/pull/10211#issuecomment-1676572151

   > @xiaoxiang781216 I understand that your idea is to simplify the Kconfig, 
but I think removing these symbols will cause the compiler to spend time 
compiling all these files, just to the end the linker decide not to include it 
in the final binary.
   
   Yes, it's a tradeoff between the build speed and user friendly. I prefer to 
simplify Kconfig to make the selection as automation as possible if the speed 
degradation is minor like this case.
   
   > 
   > Is there any other benefit of doing it?
   > 
   
   Yes, if you list nuttx/crypto, you can see that we support a dozen of soft 
crypto algo now. If we follow the original design principle, a dozen of option 
needs to be added to Kconfig, it's terrible to use them correctly for a newbie.
   
   > Another detail is that some symbols depend on user manually selecting 
CONFIG_ALLOW_BSD_COMPONENTS, otherwise the final firmware cannot be 100% Apache 
license compatible
   
   ALLOW_BSD_COMPONENTS should be move to "config CRYPTO" instead, since the 
whole crypto code base come from FreeBSD.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to