summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.com>2021-10-26 12:02:52 +0200
committerNico Huber <nico.h@gmx.de>2021-11-07 16:59:14 +0000
commit47caa9ceb1437ccd4de4e0da6b2fb307bc68d6e3 (patch)
tree33033a079b94df1d2e0ac33815b7fa36aa2f9727 /Makefile
parent04a9243f0852ba2043aaaf43b01481ebfd19c36a (diff)
downloadflashrom-47caa9ceb1437ccd4de4e0da6b2fb307bc68d6e3.tar.gz
flashrom-47caa9ceb1437ccd4de4e0da6b2fb307bc68d6e3.tar.bz2
flashrom-47caa9ceb1437ccd4de4e0da6b2fb307bc68d6e3.zip
Makefile: compiler target: separate fixed text and value by a colon
Continue to use the "key: value" format like for the C compiler. Use only shell code for TARGET_OS comparison. Change-Id: I69959c20aa2e43ed67b3057c37e964a34cdab136 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/58617 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 6 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 1c3181a51..e84248a2b 100644
--- a/Makefile
+++ b/Makefile
@@ -893,17 +893,15 @@ compiler: featuresavailable
@if [ $(CC_WORKING) = yes ]; \
then $(CC) --version 2>/dev/null | head -1; \
else echo no; echo Aborting.; exit 1; fi
- @echo Target arch is $(ARCH)
+ @echo "Target arch: $(ARCH)"
@if [ $(ARCH) = unknown ]; then echo Aborting.; exit 1; fi
- @echo Target OS is $(TARGET_OS)
+ @echo "Target OS: $(TARGET_OS)"
@if [ $(TARGET_OS) = unknown ]; then echo Aborting.; exit 1; fi
- @echo Target endian is $(ENDIAN)
+ @if [ $(TARGET_OS) = libpayload ] && ! $(CC) --version 2>&1 | grep -q coreboot; then \
+ echo " Warning: It seems you are not using coreboot's reference compiler."; \
+ echo " This might work but usually does not, please beware."; fi
+ @echo "Target endian: $(ENDIAN)"
@if [ $(ENDIAN) = unknown ]; then echo Aborting.; exit 1; fi
-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
hwlibs: compiler
@printf "" > .libdeps