From: Tom Zanussi <tom.zanu...@linux.intel.com> Add a feature allowing the enablement of LTO (Link-Time Optimization) for the Linux kernel. To enable LTO for the kernel, add (for example):
KERNEL_FEATURES_append_galileo += " features/lto.scc" Note that this feature requires special toolchain support (HJ Lu's Linux binutils and gcc >= 4.9). Signed-off-by: Tom Zanussi <tom.zanu...@linux.intel.com> --- features/lto/lto.cfg | 5 +++++ features/lto/lto.scc | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 features/lto/lto.cfg create mode 100644 features/lto/lto.scc diff --git a/features/lto/lto.cfg b/features/lto/lto.cfg new file mode 100644 index 0000000..4c2f7f9 --- /dev/null +++ b/features/lto/lto.cfg @@ -0,0 +1,5 @@ +CONFIG_LTO_MENU=y +CONFIG_LTO=y +# CONFIG_LTO_DEBUG is not set +# CONFIG_LTO_CP_CLONE is not set +# CONFIG_LTO_SLIM is not set diff --git a/features/lto/lto.scc b/features/lto/lto.scc new file mode 100644 index 0000000..0b0a5b2 --- /dev/null +++ b/features/lto/lto.scc @@ -0,0 +1,4 @@ +define KFEATURE_DESCRIPTION "Enable LTO (Link-Time Optimization) for the Linux kernel" +define KFEATURE_COMPATIBILITY all + +kconf hardware lto.cfg -- 2.6.6 -- _______________________________________________ linux-yocto mailing list linux-yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/linux-yocto