[linux-yocto] [PATCH 02/10] meta: Add lto-disable feature
Alejandro Hernandez
alejandro.hernandez at linux.intel.com
Thu Dec 22 10:18:46 PST 2016
From: Tom Zanussi <tom.zanussi at linux.intel.com>
Add features/lto/lto-disable, a feature to disable LTO. This isn't
really needed, since it's the default, but it makes kernel feature
selection for currently incompatible features such as tracing less
confusing - disable by adding (for example):
KERNEL_FEATURES_append_galileo += " features/lto/lto-disable.scc"
Signed-off-by: Tom Zanussi <tom.zanussi at linux.intel.com>
---
features/lto/lto-disable.cfg | 5 +++++
features/lto/lto-disable.scc | 4 ++++
features/lto/lto.cfg | 3 ---
3 files changed, 9 insertions(+), 3 deletions(-)
create mode 100644 features/lto/lto-disable.cfg
create mode 100644 features/lto/lto-disable.scc
diff --git a/features/lto/lto-disable.cfg b/features/lto/lto-disable.cfg
new file mode 100644
index 0000000..c1ac70a
--- /dev/null
+++ b/features/lto/lto-disable.cfg
@@ -0,0 +1,5 @@
+# CONFIG_LTO_MENU is not set
+# CONFIG_LTO is not set
+# 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-disable.scc b/features/lto/lto-disable.scc
new file mode 100644
index 0000000..0cf8529
--- /dev/null
+++ b/features/lto/lto-disable.scc
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Disable LTO (Link-Time Optimization) for the Linux kernel"
+define KFEATURE_COMPATIBILITY all
+
+kconf hardware lto-disable.cfg
diff --git a/features/lto/lto.cfg b/features/lto/lto.cfg
index 4c2f7f9..39cb6a4 100644
--- a/features/lto/lto.cfg
+++ b/features/lto/lto.cfg
@@ -1,5 +1,2 @@
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
--
2.6.6
More information about the linux-yocto
mailing list