summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2013-09-12 14:04:31 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2013-09-12 14:04:31 +0000
commitd6c17f6528fd3d3a30f6cf63885c269423777796 (patch)
tree989aec45575df7079b230c42c1f2f5b8a0f24ab4
parent6c67f1c1288b585a936fe90815d8029ba9af60c6 (diff)
downloadast2050-flashrom-d6c17f6528fd3d3a30f6cf63885c269423777796.zip
ast2050-flashrom-d6c17f6528fd3d3a30f6cf63885c269423777796.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. Corresponding to flashrom svn r1740. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
-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 */
OpenPOWER on IntegriCloud