Build: Tweak CRYPTO_ENGINE_BUF_SIZE in config header file
CRYPTO_ENGINE_BUF_SIZE value is decided by various components outside
Crypto service. Its value might be overridden in config_crypto.h
according to other component settings.
It brings in some issues:
- It is difficult to maintain such an overriding logic in header file.
- If another component includes another header file with a different
value, it might bring in conflicts.
- If a target includes config_crypto.h, it must add those component
compile flags otherwise config may not take effect, even though those
component compile flags are transparent to this target.
Move CRYPTO_ENGINE_BUF_SIZE overriding into a dedicated header file
config_engine_buf.h.
config_engine_buf.h is only included in crypto_library.c after all the
config header files are included. It is guaranteed that the last value
set in config_engine_buf.h takes effect as expected.
Change-Id: I006a9a8616f0b2f696db6593a43bfe9fa0814e8e
Signed-off-by: David Hu <david.hu@arm.com>
5 files changed