source: trunk/package/uboot-lantiq/patches/010-fix-mips-flags.patch @ 26025

Last change on this file since 26025 was 26025, checked in by blogic, 6 years ago

[uboot-lantiq]

  • add some compile flags
File size: 614 bytes
  • cpu/mips/config.mk

    a b  
    2323v=$(shell $(AS) --version | grep 'GNU assembler' | egrep -o '2\.[0-9\.]+' | cut -d. -f2) 
    2424MIPSFLAGS:=$(shell \ 
    2525if [ "$v" -lt "14" ]; then \ 
    26         echo "-mcpu=4kc"; \ 
     26        echo "-mcpu=mips32"; \ 
    2727else \ 
    28         echo "-march=4kc -mtune=4kc"; \ 
     28        echo "-mips32 -march=mips32 -mtune=mips32"; \ 
    2929fi) 
    3030 
     31ifndef ENDIANNESS 
    3132ifneq (,$(findstring 4KCle,$(CROSS_COMPILE))) 
    3233ENDIANNESS = -EL 
    3334else 
    3435ENDIANNESS = -EB 
    3536endif 
     37endif 
    3638 
    37 MIPSFLAGS += $(ENDIANNESS) 
     39MIPSFLAGS += $(ENDIANNESS) -fno-schedule-insns -fno-schedule-insns2 
    3840 
    3941PLATFORM_CPPFLAGS += $(MIPSFLAGS) 
Note: See TracBrowser for help on using the repository browser.