summaryrefslogtreecommitdiff
path: root/conf/distro/include/slugos.inc
diff options
context:
space:
mode:
Diffstat (limited to 'conf/distro/include/slugos.inc')
-rw-r--r--conf/distro/include/slugos.inc12
1 files changed, 12 insertions, 0 deletions
diff --git a/conf/distro/include/slugos.inc b/conf/distro/include/slugos.inc
index 13f6bad29c..05bd57139c 100644
--- a/conf/distro/include/slugos.inc
+++ b/conf/distro/include/slugos.inc
@@ -65,6 +65,18 @@ INHERIT += "package_ipk debian"
DISTRO_BASE = ":slugos"
+# FULL_OPTIMIZATION
+# Optimization settings. Os works fine and is significantly better than O2.
+# The other settings are somewhat arbitrary. The optimisations chosen here
+# include the ones which 'break' symbolic debugging (because the compiler does
+# not include enough information to allow the debugger to know where given
+# values are.) The -fno options are an attempt to cancel explicit use of space
+# consuming options found in some packages (this isn't a complete list, this is
+# just the ones which package writers seem to know about and abuse).
+FULL_OPTIMIZATION = "-Os -fomit-frame-pointer -frename-registers \
+ -fno-unroll-loops -fno-inline-functions \
+ -fweb -funit-at-a-time"
+
# packages/meta/slugos-image.bb generates a binary image of the root file system
# with a name controlled by the following setting - it defaults to the top level
# ${DISTRO_NAME} and this should always be correct, but it may be too specific (e.g.