Skip to contentSkip to conversation

fix edgerouter default tune

PATCH In review Ruslan Babayev 2 participants 4 messages May 10, 2016 – May 17, 2016

lore
Share & tools
lore
#0 lore raw

cover fix edgerouter default tune

Fixes building core-image-minimal with the following in local.conf:

MACHINE = "edgerouter"
TCLIBC = "musl"

Ruslan Babayev (2):
edgerouter: fix machine tune
edgerouter: libffi: fix build with soft-float tune

 meta-yocto-bsp/conf/machine/edgerouter.conf                 |  1 +
 .../recipes-support/libffi/libffi/mips-n32-soft-float.patch | 13 +++++++++++++
 meta/recipes-support/libffi/libffi_3.2.1.bb                 |  1 +
 3 files changed, 15 insertions(+)
 create mode 100644 meta/recipes-support/libffi/libffi/mips-n32-soft-float.patch
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/2 edgerouter: fix machine tune

Octeon+ lacks FPU

---
 meta-yocto-bsp/conf/machine/edgerouter.conf | 1 +
 1 file changed, 1 insertion(+)
meta-yocto-bsp/conf/machine/edgerouter.conf +1 -0
index 6343dfc..062d896 100644
@@ -2,6 +2,7 @@
 #@NAME: Edgerouter
 #@DESCRIPTION: Edgerouter
 
+DEFAULTTUNE ?= "mips64-nf"
 require conf/machine/include/tune-mips64.inc
 
 MACHINE_FEATURES = "pci ext2 ext3 serial"
Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/2 edgerouter: libffi: fix build with soft-float tune

In reply to Ruslan Babayev
---
 .../recipes-support/libffi/libffi/mips-n32-soft-float.patch | 13 +++++++++++++
 meta/recipes-support/libffi/libffi_3.2.1.bb                 |  1 +
 2 files changed, 14 insertions(+)
 create mode 100644 meta/recipes-support/libffi/libffi/mips-n32-soft-float.patch
meta/recipes-support/libffi/libffi/mips-n32-soft-float.patch new file +13 -0
new file mode 100644
index 0000000..c901614
@@ -0,0 +1,13 @@
+Index: libffi-3.2.1/src/mips/n32.S
+===================================================================
+--- libffi-3.2.1.orig/src/mips/n32.S
++++ libffi-3.2.1/src/mips/n32.S
+@@ -30,7 +30,7 @@
+ 
+ /* Only build this code if we are compiling for n32 */	
+ 
+-#if defined(FFI_MIPS_N32)
++#if defined(FFI_MIPS_N32) && !defined(__mips_soft_float)
+ 
+ #define callback a0
+ #define bytes	 a2
meta/recipes-support/libffi/libffi_3.2.1.bb +1 -0
index 72e25fb..5b57e79 100644
@@ -12,6 +12,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3610bb17683a0089ed64055416b2ae1b"
 SRC_URI = "ftp://sourceware.org/pub/libffi/${BP}.tar.gz \
            file://not-win32.patch \
 	   file://0001-mips-Use-compiler-internal-define-for-linux.patch \
+           file://mips-n32-soft-float.patch \
 	   "
 
 SRC_URI[md5sum] = "83b89587607e3eb65c70d361f13bab43"
Signature · 1 line
2.7.4
#3 lore raw

Re: [PATCH 2/2] edgerouter: libffi: fix build with soft-float tune

Quoted 4 lines · Ruslan Babayev
meta/recipes-support/libffi/libffi/mips-n32-soft-float.patch new file +3 -0
+Index: libffi-3.2.1/src/mips/n32.S
+===================================================================
+--- libffi-3.2.1.orig/src/mips/n32.S

meta/recipes-support/libffi/libffi/mips-n32-soft-float.patch line 13

Quoted 10 lines
meta/recipes-support/libffi/libffi/mips-n32-soft-float.patch new file +10 -0
++++ libffi-3.2.1/src/mips/n32.S
+@@ -30,7 +30,7 @@
+
+ /* Only build this code if we are compiling for n32 */
+
+-#if defined(FFI_MIPS_N32)
++#if defined(FFI_MIPS_N32) && !defined(__mips_soft_float)
+
+ #define callback a0
+ #define bytes  a2

This patch needs a header saying what it does, your Signed-off-by, and an Upstream-Status.

Also these patches are for meta-yocto-bsp, so should be sent to [email protected].

Ross