<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>10404</bug_id>
          
          <creation_ts>2016-10-10 12:07:27 +0000</creation_ts>
          <short_desc>MIPS: Use MACHINEOVERRIDES and reduce duplication in various recipes due to mips variants</short_desc>
          <delta_ts>2016-11-16 17:25:25 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Zubair Lutfullah Kakakhel">Zubair.Kakakhel</reporter>
          <assigned_to name="Zubair Lutfullah Kakakhel">Zubair.Kakakhel</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67085</commentid>
    <comment_count>0</comment_count>
    <who name="Zubair Lutfullah Kakakhel">Zubair.Kakakhel</who>
    <bug_when>2016-10-10 12:07:27 +0000</bug_when>
    <thetext>There are many MIPS ISA + ABI combinations. 
And there are recipes which have to duplicate information for each variant.
Its possible to use MACHINEOVERRIDES to reduce duplication.

Some discussion on this 
http://lists.openembedded.org/pipermail/openembedded-core/2016-October/127388.html
http://lists.openembedded.org/pipermail/openembedded-core/2016-October/127393.html

Extract from email by Richard Purdie
---

Very roughly speaking, you&apos;d add something like:

MACHINEOVERRIDES =. &quot;mipsarch:&quot;

to arch-mips.inc then you could do:

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 54a587f..7bd8716 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -528,16 +528,7 @@ BUILDSDK_LDFLAGS = &quot;-Wl,-O1&quot;
 
 LINKER_HASH_STYLE ??= &quot;gnu&quot;
 # mips does not support GNU hash style therefore we override
-LINKER_HASH_STYLE_mips = &quot;sysv&quot;
-LINKER_HASH_STYLE_mipsel = &quot;sysv&quot;
-LINKER_HASH_STYLE_mips64 = &quot;sysv&quot;
-LINKER_HASH_STYLE_mips64el = &quot;sysv&quot;
-LINKER_HASH_STYLE_mips64n32 = &quot;sysv&quot;
-LINKER_HASH_STYLE_mips64eln32 = &quot;sysv&quot;
-LINKER_HASH_STYLE_mipsisa32r6 = &quot;sysv&quot;
-LINKER_HASH_STYLE_mipsisa32r6el = &quot;sysv&quot;
-LINKER_HASH_STYLE_mipsisa64r6 = &quot;sysv&quot;
-LINKER_HASH_STYLE_mipsisa64r6el = &quot;sysv&quot;
+LINKER_HASH_STYLE_mipsarch = &quot;sysv&quot;
 
 TARGET_LINK_HASH_STYLE ?= &quot;${@[&apos;-Wl,--hash-style=gnu&apos;,&apos;&apos;][d.getVar(&apos;LINKER_HASH_STYLE&apos;, True) != &apos;gnu&apos;]}&quot;

---</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68064</commentid>
    <comment_count>1</comment_count>
    <who name="Zubair Lutfullah Kakakhel">Zubair.Kakakhel</who>
    <bug_when>2016-11-08 09:10:59 +0000</bug_when>
    <thetext>Most of the work has been done and the a patch series has already been sent out.

https://patchwork.openembedded.org/patch/133655/

Some minor tweaks needed for the next revision.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68374</commentid>
    <comment_count>2</comment_count>
    <who name="Zubair Lutfullah Kakakhel">Zubair.Kakakhel</who>
    <bug_when>2016-11-16 17:24:28 +0000</bug_when>
    <thetext>Patches have been applied.

http://git.openembedded.org/openembedded-core/commit/?id=0d2205f26e5ece089630f72af2bd5f0931e851c3

Thanks
ZubairLK</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68375</commentid>
    <comment_count>3</comment_count>
    <who name="Zubair Lutfullah Kakakhel">Zubair.Kakakhel</who>
    <bug_when>2016-11-16 17:25:25 +0000</bug_when>
    <thetext>I think I misunderstood the status: Accepted.

Marking as resolved</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>