diff options
author | Mary Ruthven <mruthven@google.com> | 2018-03-22 13:38:32 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-03-22 20:53:25 -0700 |
commit | e33c1d8de03b936ed7dc67405ede9bcd747d07d2 (patch) | |
tree | d64e6e261c7edd15dfd10be8405c4af721d7435a /extra/rma_reset | |
parent | 8b0f4b55c50a5677d15bfdfcedd9c6469337a393 (diff) | |
download | chrome-ec-e33c1d8de03b936ed7dc67405ede9bcd747d07d2.tar.gz |
rma_reset: update Makefile to use different compiliers
BUG=b:76105747
BRANCH=none
TEST=compile for bob and reef. make sure it runs on both
Change-Id: I30004c9794c9619698889fecbf8746778ebbb48c
Signed-off-by: Mary Ruthven <mruthven@google.com>
Reviewed-on: https://chromium-review.googlesource.com/976554
Commit-Ready: Mary Ruthven <mruthven@chromium.org>
Tested-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'extra/rma_reset')
-rw-r--r-- | extra/rma_reset/Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/extra/rma_reset/Makefile b/extra/rma_reset/Makefile index 4332ce203d..f779d70a7c 100644 --- a/extra/rma_reset/Makefile +++ b/extra/rma_reset/Makefile @@ -2,6 +2,7 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +CC ?= gcc PROGRAM := rma_reset SOURCE := $(PROGRAM).c OBJS := curve25519.o curve25519-generic.o sha256.o base32.o @@ -30,20 +31,20 @@ STANDALONE_FLAGS=${INCLUDE} -ffreestanding -fno-builtin \ -Ibuiltin/ -D"__keep= " $(PROGRAM): $(SOURCE) $(OBJS) Makefile - gcc $(CFLAGS) $(SOURCE) $(LFLAGS) $(LIBS) $(OBJS) -o $@ + $(CC) $(CFLAGS) $(SOURCE) $(LFLAGS) $(LIBS) $(OBJS) -o $@ curve25519-generic.o: ../../common/curve25519-generic.c - gcc $(STANDALONE_FLAGS) -c -o curve25519-generic.o \ + $(CC) $(STANDALONE_FLAGS) -c -o curve25519-generic.o \ ../../common/curve25519-generic.c curve25519.o: ../../common/curve25519.c - gcc $(STANDALONE_FLAGS) -c -o curve25519.o ../../common/curve25519.c + $(CC) $(STANDALONE_FLAGS) -c -o curve25519.o ../../common/curve25519.c sha256.o: ../../common/sha256.c - gcc $(STANDALONE_FLAGS) -c -o sha256.o ../../common/sha256.c + $(CC) $(STANDALONE_FLAGS) -c -o sha256.o ../../common/sha256.c base32.o: ../../common/base32.c - gcc $(STANDALONE_FLAGS) -c -o base32.o ../../common/base32.c + $(CC) $(STANDALONE_FLAGS) -c -o base32.o ../../common/base32.c .PHONY: clean |