From: Trevor Woerner <twoerner@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH][meta-browser] chromium: add i586 (qemux86) support
Date: Fri, 30 Dec 2016 13:11:24 -0500 [thread overview]
Message-ID: <20161230181124.3531-1-twoerner@gmail.com> (raw)
Build and run tested on qemux86 (i586) and turbot (x86-64).
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
recipes-browser/chromium/chromium_52.0.2743.76.bb | 2 ++
recipes-browser/chromium/files/i586/x86-m32.patch | 42 +++++++++++++++++++++++
2 files changed, 44 insertions(+)
create mode 100644 recipes-browser/chromium/files/i586/x86-m32.patch
diff --git a/recipes-browser/chromium/chromium_52.0.2743.76.bb b/recipes-browser/chromium/chromium_52.0.2743.76.bb
index 5be3c32..bba1549 100644
--- a/recipes-browser/chromium/chromium_52.0.2743.76.bb
+++ b/recipes-browser/chromium/chromium_52.0.2743.76.bb
@@ -14,6 +14,8 @@ SRC_URI += "\
${@bb.utils.contains('PACKAGECONFIG', 'ignore-lost-context', 'file://0001-Remove-accelerated-Canvas-support-from-blacklist.patch', '', d)} \
"
+SRC_URI_append_i586 = "file://x86-m32.patch"
+
LIC_FILES_CHKSUM = "file://LICENSE;md5=0fca02217a5d49a14dfe2d11837bb34d"
SRC_URI[md5sum] = "0fee71466e1f2dc39ed4549d04b58ee2"
SRC_URI[sha256sum] = "c54cdc11c3324152f3d5be98dcb4eae2bda0fc9dac7dd5f9010150458d68c18c"
diff --git a/recipes-browser/chromium/files/i586/x86-m32.patch b/recipes-browser/chromium/files/i586/x86-m32.patch
new file mode 100644
index 0000000..be08071
--- /dev/null
+++ b/recipes-browser/chromium/files/i586/x86-m32.patch
@@ -0,0 +1,42 @@
+Index: chromium-52.0.2743.76/build/common.gypi
+===================================================================
+--- chromium-52.0.2743.76.orig/build/common.gypi
++++ chromium-52.0.2743.76/build/common.gypi
+@@ -3849,10 +3849,6 @@
+ '-msse2',
+ '-mfpmath=sse',
+ '-mmmx', # Allows mmintrin.h for MMX intrinsics.
+- '-m32',
+- ],
+- 'ldflags': [
+- '-m32',
+ ],
+ 'conditions': [
+ # Use gold linker for Android ia32 target.
+Index: chromium-52.0.2743.76/build/config/compiler/BUILD.gn
+===================================================================
+--- chromium-52.0.2743.76.orig/build/config/compiler/BUILD.gn
++++ chromium-52.0.2743.76/build/config/compiler/BUILD.gn
+@@ -502,8 +502,6 @@ config("compiler_cpu_abi") {
+ ]
+ ldflags += [ "-m64" ]
+ } else if (current_cpu == "x86") {
+- cflags += [ "-m32" ]
+- ldflags += [ "-m32" ]
+ if (!is_nacl) {
+ cflags += [
+ "-msse2",
+Index: chromium-52.0.2743.76/third_party/icu/icu.gyp
+===================================================================
+--- chromium-52.0.2743.76.orig/third_party/icu/icu.gyp
++++ chromium-52.0.2743.76/third_party/icu/icu.gyp
+@@ -48,9 +48,6 @@
+ target_arch=="mipsel")', {
+ 'target_conditions': [
+ ['_toolset=="host"', {
+- 'cflags': [ '-m32' ],
+- 'ldflags': [ '-m32' ],
+- 'asflags': [ '-32' ],
+ 'xcode_settings': {
+ 'ARCHS': [ 'i386' ],
+ },
--
2.10.2
next reply other threads:[~2016-12-30 18:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-30 18:11 Trevor Woerner [this message]
2016-12-31 18:32 ` [PATCH][meta-browser] chromium: add i586 (qemux86) support Khem Raj
2016-12-31 19:43 ` Martin Jansa
2017-01-01 15:32 ` Trevor Woerner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161230181124.3531-1-twoerner@gmail.com \
--to=twoerner@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.