Changeset 36202


Ignore:
Timestamp:
2013-04-05T14:36:12+02:00 (5 years ago)
Author:
florian
Message:

buildroot: allow enabling MIPS16 user-space build

Enabling MIPS16 is made conditional on advertising the "mips16" feature
for a specific target since it requires support from the CPU
(HAS_MIPS16) and the actual use of MIPS16 for building packages
(USE_MIPS16).

Signed-off-by: Florian Fainelli <florian@…>

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.in

    r35935 r36202  
    682682                  Most people will answer N. 
    683683 
     684        config USE_MIPS16 
     685                bool "Build packages with MIPS16 instructions" if TARGET_OPTIONS 
     686                depends on HAS_MIPS16 
     687                help 
     688                   If your target CPU does support the MIPS16 instruction set 
     689                   and you want to use it for packages, enable this option. 
     690                   MIPS16 produces smaller binaries thus reducing pressure on 
     691                   caches and TLB. 
     692 
     693                   Most people will answer N. 
     694 
    684695source "toolchain/Config.in" 
    685696 
  • trunk/rules.mk

    r36198 r36202  
    6363ifneq ($(filter -mips%r2,$(TARGET_OPTIMIZATION)),) 
    6464  ARCH_SUFFIX:=_r2 
     65endif 
     66ifdef CONFIG_USE_MIPS16 
     67   TARGET_OPTIMIZATION+= -minterlink-mips16 -mips16 
    6568endif 
    6669ifneq ($(findstring -mips16,$(TARGET_OPTIMIZATION)),) 
  • trunk/scripts/metadata.pl

    r33892 r36202  
    175175                /powerpc64/ and $ret .= "\tselect powerpc64\n"; 
    176176                /nommu/ and $ret .= "\tselect NOMMU\n"; 
     177                /mips16/ and $ret .= "\tselect HAS_MIPS16\n"; 
    177178        } 
    178179        return $ret; 
  • trunk/target/Config.in

    r34431 r36202  
    6565 
    6666config NOMMU 
     67        bool 
     68 
     69config HAS_MIPS16 
     70        depends (mips || mipsel || mips64 || mips64el) 
    6771        bool 
    6872 
Note: See TracChangeset for help on using the changeset viewer.