summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2013-09-12 14:04:31 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2013-09-12 14:04:31 +0000
commit57690b8895ac74c6863e3e6f7978ebcad71f1f65 (patch)
tree989aec45575df7079b230c42c1f2f5b8a0f24ab4 /Makefile
parentfeea0e6a24b58693b6f05aaaa6f499b41f661636 (diff)
downloadflashrom-57690b8895ac74c6863e3e6f7978ebcad71f1f65.tar.gz
Makefile: Warn if user tries to compile for libpayload w/o crossgcc.
While flashrom is not as picky on compilers as coreboot, there is still a high probablilty of breakage when one combines libpayload and distribution compilers. Print a warning if we detect that to give the daring user a hint how to resolve the explosions potentially following below it. Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1740 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index bd536f0..ff26439 100644
--- a/Makefile
+++ b/Makefile
@@ -734,6 +734,11 @@ compiler: featuresavailable
@echo $(TARGET_OS)|wc -w|grep -q '^[[:blank:]]*1[[:blank:]]*$$' || \
( echo "unknown. Aborting."; exit 1)
@printf "%s\n" '$(TARGET_OS)'
+ifeq ($(TARGET_OS), libpayload)
+ @$(CC) --version 2>&1 | grep -q coreboot || \
+ ( echo "Warning: It seems you are not using coreboot's reference compiler."; \
+ echo "This might work but usually does not, please beware." )
+endif
define LIBPCI_TEST
/* Avoid a failing test due to libpci header symbol shadowing breakage */