aboutsummaryrefslogtreecommitdiff
path: root/payloads/libpayload/util
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2013-03-13 13:42:55 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2013-03-13 22:04:44 +0100
commitba949d32ba97d96422510967df33532dd39e47c0 (patch)
tree6be9a928830b3bc2e9801b967ef33adf0d391416 /payloads/libpayload/util
parent2def2625e0b49ea3ae85ae8b821979e5901c6638 (diff)
libpayload: Start using only internal and compiler headers.
When building other payloads with lpgcc the -nostdinc flag was injected into CFLAGS, but when building libpayload itself some headers were being used from the host system. This change puts -nostdinc into the Makefile and xcompile script, fixes up one include path in include/inttypes.h, adds the compiler provided include directory to the include search path, and deletes the two now redundant stdint.h files. BUG=None TEST=With this and other changes, built libpayload and depthcharge for Daisy, Link, and Fox. BRANCH=None Change-Id: Ia7817fceab5297cd82ccc0d392330de0df61980e Signed-off-by: Gabe Black <gabeblack@google.com> Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Reviewed-on: http://review.coreboot.org/2710 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'payloads/libpayload/util')
-rw-r--r--payloads/libpayload/util/xcompile/xcompile2
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/util/xcompile/xcompile b/payloads/libpayload/util/xcompile/xcompile
index 62e7a38c3f..58f086f235 100644
--- a/payloads/libpayload/util/xcompile/xcompile
+++ b/payloads/libpayload/util/xcompile/xcompile
@@ -41,7 +41,7 @@ testcc() {
local tmp_o="$TMPFILE.o"
rm -f "$tmp_c" "$tmp_o"
echo "_start(void) {}" >"$tmp_c"
- "$1" -nostdlib -Werror $2 "$tmp_c" -o "$tmp_o" >/dev/null 2>&1
+ "$1" -nostdinc -nostdlib -Werror $2 "$tmp_c" -o "$tmp_o" >/dev/null 2>&1
}
testas() {