Skip to contentSkip to conversation

chromium-wayland: adjust build flags to disable debug and fix size issue

PATCH New Denys Dmytriyenko 1 participant 2 messages Apr 19, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 chromium-wayland: adjust build flags to disable debug and fix size issue

Normally binaries are built with debug symbols and then those are stripped out into corresponding -dbg packages for debugging purposes.

Chromium builds in a lot of components and that leads to a large binary size:
* with gcc7 it was 3.9GB with debugging info, stripped down to 80MB w/o it
* with gcc8 it became 4.3GB and that is larger than 32-bit addressing, so it becomes corrupted and cannot be stripped or executed

By disabling generation of the debugging info in the first place, it is now possible to get a working chromium, but w/o the ability to debug it.

---
 meta-arago-distro/recipes-browser/chromium/chromium-wayland_%.bbappend | 2 ++
 1 file changed, 2 insertions(+)
meta-arago-distro/recipes-browser/chromium/chromium-wayland_%.bbappend +2 -0
index d13606d..923db03 100644
@@ -8,3 +8,5 @@ OZONE_WAYLAND_EXTRA_PATCHES = " \
 USEGOLD = ""
 
 DEPENDS += "gperf-native bison-native"
+
+FULL_OPTIMIZATION = "-O2 -pipe"
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 packagegroup-*-graphics: re-enable chromium

This reverts commit 33a759c5cc7c3786908b417c68132d67f582b381.

---
 .../packagegroups/packagegroup-arago-tisdk-graphics.bb       | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-graphics.bb +6 -6
index ae70633..e12c42a 100644
@@ -11,13 +11,13 @@ GRAPHICS_WAYLAND = "\
     weston-examples \
 "
 
-#GRAPHICS_WAYLAND_append_omap-a15 = "\
-#    chromium-wayland \
-#"
+GRAPHICS_WAYLAND_append_omap-a15 = "\
+    chromium-wayland \
+"
 
-#GRAPHICS_WAYLAND_append_k3 = "\
-#    chromium-wayland \
-#"
+GRAPHICS_WAYLAND_append_k3 = "\
+    chromium-wayland \
+"
 
 GRAPHICS_RDEPENDS = "\
     libgbm \
Signature · 1 line
2.7.4