]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Allow sparse to be invoked via "make C=1"
authorMichael Brown <mcb30@ipxe.org>
Thu, 25 Apr 2013 13:56:48 +0000 (14:56 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 25 Apr 2013 13:56:48 +0000 (14:56 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/Makefile.housekeeping

index 99de917ab87673f329c59c364e8945bf13c050fe..6e9178a12205cac23ed69894c0aca94ac0c922c8 100644 (file)
@@ -200,6 +200,15 @@ Q := @
 QM := @
 endif
 
+###############################################################################
+#
+# Checker
+#
+ifeq ($(C),1)
+export REAL_CC := $(CC)
+CC := cgcc
+endif
+
 ###############################################################################
 #
 # Set BIN according to whatever was specified on the command line as