diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-03-28 22:40:32 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-03-28 22:40:32 +0000 |
commit | 60c60c05163b1d4d44fefef49caaac9dbc9f8a8f (patch) | |
tree | c3a7fa927f23cbbbf01129aec8cc729b731849bc /package/uboot-lantiq/patches/010-fix-mips-flags.patch | |
parent | 6e5419b7acc217c83d410775ae3d71d37efdaa91 (diff) | |
download | master-31e0f0ae-60c60c05163b1d4d44fefef49caaac9dbc9f8a8f.tar.gz master-31e0f0ae-60c60c05163b1d4d44fefef49caaac9dbc9f8a8f.tar.bz2 master-31e0f0ae-60c60c05163b1d4d44fefef49caaac9dbc9f8a8f.zip |
add uboot-lantiq (based on a patch contributed by Lantiq)
SVN-Revision: 20561
Diffstat (limited to 'package/uboot-lantiq/patches/010-fix-mips-flags.patch')
-rw-r--r-- | package/uboot-lantiq/patches/010-fix-mips-flags.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/package/uboot-lantiq/patches/010-fix-mips-flags.patch b/package/uboot-lantiq/patches/010-fix-mips-flags.patch new file mode 100644 index 0000000000..4c706a7843 --- /dev/null +++ b/package/uboot-lantiq/patches/010-fix-mips-flags.patch @@ -0,0 +1,23 @@ +--- a/cpu/mips/config.mk ++++ b/cpu/mips/config.mk +@@ -23,16 +23,18 @@ + v=$(shell $(AS) --version | grep 'GNU assembler' | egrep -o '2\.[0-9\.]+' | cut -d. -f2) + MIPSFLAGS:=$(shell \ + if [ "$v" -lt "14" ]; then \ +- echo "-mcpu=4kc"; \ ++ echo "-mcpu=mips32"; \ + else \ +- echo "-march=4kc -mtune=4kc"; \ ++ echo "-mips32 -march=mips32 -mtune=mips32"; \ + fi) + ++ifndef ENDIANNESS + ifneq (,$(findstring 4KCle,$(CROSS_COMPILE))) + ENDIANNESS = -EL + else + ENDIANNESS = -EB + endif ++endif + + MIPSFLAGS += $(ENDIANNESS) + |