summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Menzel <paulepanter@users.sourceforge.net>2013-04-05 11:39:42 +0200
committerRonald G. Minnich <rminnich@gmail.com>2013-04-15 07:00:23 +0200
commitc3fc1e05a65e28c92db99c423fb6727add7ad360 (patch)
tree716a3a1779dac1d45f72f3077a714e2abd089f81
parent15a1fd1db9dd93004f808badcb15ca635177def6 (diff)
downloadcoreboot-c3fc1e05a65e28c92db99c423fb6727add7ad360.tar.xz
cbmem: Makefile: Allow to override `CC` variable
Now users can use a different compiler from GCC like Clang by for example doing `CC=clang make`. Change-Id: I664a36df79f7496a56d89bdb61948b2eda33a6b4 Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-on: http://review.coreboot.org/3082 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
-rw-r--r--util/cbmem/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cbmem/Makefile b/util/cbmem/Makefile
index bf74e08bdf..c93863a64b 100644
--- a/util/cbmem/Makefile
+++ b/util/cbmem/Makefile
@@ -19,7 +19,7 @@
PROGRAM = cbmem
ROOT = ../../src
-CC = $(CROSS_COMPILE)gcc
+CC ?= $(CROSS_COMPILE)gcc
CFLAGS ?= -O2
CFLAGS += -Wall -Werror
CPPFLAGS += -iquote $(ROOT)/include -iquote $(ROOT)/src/arch/x86