]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - config.mk
Added support for KwikByte KB920x boards (based on AT91RM9200)
[karo-tx-uboot.git] / config.mk
index ff83091746887aad0e44a0e03113c75863f68a91..d85ac36b5e602c3e80c67c8c5cb1d767f6f49680 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -86,6 +86,12 @@ HOSTCFLAGS   = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
 HOSTSTRIP      = strip
 
 #########################################################################
+#
+# Option checker (courtesy linux kernel) to ensure
+# only supported compiler options are used
+#
+cc-option = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
+               > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)
 
 #
 # Include the make variables (CC, etc...)