From fddf75e4afe6704c8f609a3f36860514ca0db8ed Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Fri, 29 Aug 2014 16:00:37 -0700 Subject: 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 Original-Commit-Id: e932b203db3e7cb510a7bf862d4538d55b6c7271 Original-Change-Id: I637dd44eb565447c18b2c3cdb022d0933c52fd20 Original-Signed-off-by: Vadim Bendebury Original-Reviewed-on: https://chromium-review.googlesource.com/215677 Original-Reviewed-by: Aaron Durbin Reviewed-on: http://review.coreboot.org/8822 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- util/xcompile/xcompile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'util') diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index 3c3b1a4e2f..fc221b1f4d 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 } -- cgit v1.2.3