Hi Prasad,
ENABLE_LTO places constraints on the toolchain (both the linker and the compiler must be aligned on the format of the generated object files), so it cannot therefore be configured from the platform makefile, which loads after the toolchain has already been set up.
Chris
From: Kummari, Prasad via TF-A tf-a@lists.trustedfirmware.org Date: Friday, 2 February 2024 at 10:43 To: tf-a@lists.trustedfirmware.org tf-a@lists.trustedfirmware.org Cc: Nagal, Amit amit.nagal@amd.com, Belsare, Akshay akshay.belsare@amd.com, Simek, Michal michal.simek@amd.com Subject: [TF-A] ENABLE_LTO feature usage. Hi ,
We want to include ENABLE_LTO option in platform build. Can you please recommend if this can be passed only on the build command line, or it can be included in the platform makefile (platform.mk) also.
Regards, Prasad.
-- TF-A mailing list -- tf-a@lists.trustedfirmware.org To unsubscribe send an email to tf-a-leave@lists.trustedfirmware.org