[coreboot-gerrit] New patch to review for coreboot: d8e6ae2 build: mips: add default compilation options
Patrick Georgi (pgeorgi@google.com)
gerrit at coreboot.org
Fri Mar 20 13:32:45 CET 2015
Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8822
-gerrit
commit d8e6ae2d35eefbf80f31da8b392a6a4db294f8db
Author: Vadim Bendebury <vbendeb at chromium.org>
Date: Fri Aug 29 16:00:37 2014 -0700
build: mips: add default compilation options
MIPS targets should be compiled with no position independent code
allowed, as the generated image often does not support short range
components reference.
BUG=chrome-os-partner:31438
TEST=with the rest of the patches included MIPS board urara builds
successfully
Change-Id: I8ac2a2f6979d3b468159c9e29d07e022f48ab18a
Signed-off-by: Patrick Georgi <pgeorgi at chromium.org>
Original-Commit-Id: e932b203db3e7cb510a7bf862d4538d55b6c7271
Original-Change-Id: I637dd44eb565447c18b2c3cdb022d0933c52fd20
Original-Signed-off-by: Vadim Bendebury <vbendeb at chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/215677
Original-Reviewed-by: Aaron Durbin <adurbin at chromium.org>
---
util/xcompile/xcompile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 29cad28..1cac658 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -144,6 +144,10 @@ detect_special_flags() {
# specify -mmsse, etc flags.
CFLAGS="$CFLAGS -march=i686"
;;
+ mipsel)
+ testcc "$CC" "$CFLAGS -mno-abicalls -fno-pic" && \
+ CFLAGS+=" -mno-abicalls -fno-pic"
+ ;;
esac
}
More information about the coreboot-gerrit
mailing list