Skip to contentSkip to conversation

openssl: Fix build with thumb2

PATCH In review Khem Raj 3 participants 4 messages Mar 24, 2017

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 openssl: Fix build with thumb2

---
 ...build-with-clang-using-external-assembler.patch | 18 ++--
 pull-30041/0000-cover-letter.patch                 | 32 ++++++++
 ...ic-function-namespace-clash-with-clang-bu.patch | 84 +++++++++++++++++++
 ...ontain-gcc-specific-compiler-flags-using-.patch | 96 ++++++++++++++++++++++
 scripts/lib/wic/canned-wks/sdimage-bootpart-8g.wks |  7 ++
 tools/python                                       |  1 +
 tools/python-config                                |  1 +
 7 files changed, 226 insertions(+), 13 deletions(-)
 create mode 100644 pull-30041/0000-cover-letter.patch
 create mode 100644 pull-30041/0001-db-Fix-atomic-function-namespace-clash-with-clang-bu.patch
 create mode 100644 pull-30041/0002-libvorbis-Contain-gcc-specific-compiler-flags-using-.patch
 create mode 100644 scripts/lib/wic/canned-wks/sdimage-bootpart-8g.wks
 create mode 120000 tools/python
 create mode 120000 tools/python-config
meta/recipes-connectivity/openssl/openssl/0001-Fix-build-with-clang-using-external-assembler.patch +5 -13
index 47b83a5896..49fa8b1d63 100644
@@ -25,25 +25,17 @@ Signed-off-by: Khem Raj <[email protected]>
  crypto/modes/asm/ghash-armv4.pl | 7 +++++++
  1 file changed, 7 insertions(+)
 
-diff --git a/crypto/modes/asm/ghash-armv4.pl b/crypto/modes/asm/ghash-armv4.pl
-index 8ccc963ef..442fed4da 100644
---- a/crypto/modes/asm/ghash-armv4.pl
-+++ b/crypto/modes/asm/ghash-armv4.pl
-@@ -124,7 +124,14 @@ $code=<<___;
+Index: openssl-1.0.2k/crypto/modes/asm/ghash-armv4.pl
+===================================================================
+--- openssl-1.0.2k.orig/crypto/modes/asm/ghash-armv4.pl
++++ openssl-1.0.2k/crypto/modes/asm/ghash-armv4.pl
+@@ -124,6 +124,9 @@ $code=<<___;
  #include "arm_arch.h"
  
  .text
 +#if defined(__thumb2__) || defined(__clang__)
 +.syntax	unified
 +#endif
-+#if defined(__thumb2__)
-+.thumb
-+#else
  .code	32
-+#endif
  
  #ifdef __clang__
- #define ldrplb	ldrbpl
--- 
-2.12.0
-
pull-30041/0000-cover-letter.patch new file +32 -0
new file mode 100644
index 0000000000..7ab29d50ae
@@ -0,0 +1,32 @@
+From 48d4089afac5042cfa742120e79f561f9b415d2b Mon Sep 17 00:00:00 2001
+Message-Id: <[email protected]>
+From: Khem Raj <[email protected]>
+Date: Wed, 22 Mar 2017 20:36:36 -0700
+Subject: [PATCH 0/2] Misc fixes
+
+clang finds couple of more issues to weed out
+
+The following changes since commit d1d55041e38b12d40f896834b56475ea19a6047f:
+
+  sstate: Ensure installation directory is empty before execution (2017-03-22 10:12:10 +0000)
+
+are available in the git repository at:
+
+  git://git.openembedded.org/openembedded-core-contrib kraj/pu
+  http://cgit.openembedded.org/openembedded-core-contrib/log/?h=kraj/pu
+
+Khem Raj (2):
+  db: Fix atomic function namespace clash with clang builtins
+  libvorbis: Contain gcc specific compiler flags using configure option
+
+ .../libvorbis/0001-configure-Check-for-clang.patch | 56 ++++++++++++++++++++++
+ .../libvorbis/libvorbis_1.3.5.bb                   |  4 +-
+ ...me-local-__atomic_compare_exchange-to-avo.patch | 45 +++++++++++++++++
+ meta/recipes-support/db/db_5.3.28.bb               |  1 +
+ 4 files changed, 105 insertions(+), 1 deletion(-)
+ create mode 100644 meta/recipes-multimedia/libvorbis/libvorbis/0001-configure-Check-for-clang.patch
+ create mode 100644 meta/recipes-support/db/db/0001-atomic-Rename-local-__atomic_compare_exchange-to-avo.patch
+
+-- 
+2.12.1
+
pull-30041/0001-db-Fix-atomic-function-namespace-clash-with-clang-bu.patch new file +84 -0

84 lines not on this page · raw message

pull-30041/0002-libvorbis-Contain-gcc-specific-compiler-flags-using-.patch new file +96 -0

96 lines not on this page · raw message

scripts/lib/wic/canned-wks/sdimage-bootpart-8g.wks new file +7 -0
new file mode 100644
index 0000000000..a5a1429fc4
@@ -0,0 +1,7 @@
+# short-description: Create SD card image with a boot partition
+# long-description: Creates a partitioned SD card image. Boot files
+# are located in the first vfat partition.
+
+part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4 --size 64M --extra-space 0
+part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4 --size 7500M --overhead-factor 1 --extra-space 0
+bootloader
tools/python new file +1 -0
new file mode 120000
index 0000000000..f62ea68d97
@@ -0,0 +1 @@
+/usr/bin/python2
\ No newline at end of file
tools/python-config new file +1 -0
new file mode 120000
index 0000000000..251247a8b5
@@ -0,0 +1 @@
+/usr/bin/python2-config
\ No newline at end of file
Signature · 1 line
2.12.1
#1 lore raw
Quoted 9 lines · Khem Raj
 create mode 100644 pull-30041/0000-cover-letter.patch
 create mode 100644 pull-30041/0001-db-Fix-atomic-
function-namespace-clash-with-clang-bu.patch
 create mode 100644 pull-30041/0002-libvorbis-
Contain-gcc-specific-compiler-flags-using-.patch
 create mode 100644 scripts/lib/wic/canned-wks/sdimage-bootpart-8g.wks
 create mode 120000 tools/python
 create mode 120000 tools/python-config

This patch went crazy, I think I'll merge the other one. :)

Ross

author
#2 lore raw

Yeah they are essentially same

Quoted 17 lines · Ross

On 24 March 2017 at 16:40, Khem Raj <[email protected]> wrote:

 create mode 100644 pull-30041/0000-cover-letter.patch
 create mode 100644
pull-30041/0001-db-Fix-atomic-function-namespace-clash-with-clang-bu.patch
 create mode 100644
pull-30041/0002-libvorbis-Contain-gcc-specific-compiler-flags-using-.patch
 create mode 100644 scripts/lib/wic/canned-wks/sdimage-bootpart-8g.wks
 create mode 120000 tools/python
 create mode 120000 tools/python-config

This patch went crazy, I think I'll merge the other one. :)

Ross

#3 lore raw

✗ patchtest: failure for openssl: Fix build with thumb2

In reply to Khem Raj

== Series Details ==

Series: openssl: Fix build with thumb2
Revision: 1
URL : https://patchwork.openembedded.org/series/5964/
State : failure

== Summary ==

Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures:

* Issue Added patch file is missing Upstream-Status in the header [test_upstream_status_presence]
Suggested fix Add Upstream-Status: <status> to the header of pull-30041/0000-cover-letter.patch (possible values: Pending, Submitted, Accepted, Backport, Denied, Inappropriate)

* Issue A patch file has been added, but does not have a Signed-off-by tag [test_signed_off_by_presence]
Suggested fix Sign off the added patch file (pull-30041/0000-cover-letter.patch)

If you believe any of these test results are incorrect, please reply to the mailing list ([email protected]) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...).

---

Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe