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

Last change on this file since 20561 was 20561, checked in by nbd, 7 years ago

add uboot-lantiq (based on a patch contributed by Lantiq)

File size: 510 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 
    3739MIPSFLAGS += $(ENDIANNESS) 
    3840 
Note: See TracBrowser for help on using the repository browser.