summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/nvidia/Makefile.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/util/nvidia/Makefile.inc b/util/nvidia/Makefile.inc
index c8be3bbab2..91c8a94a9b 100644
--- a/util/nvidia/Makefile.inc
+++ b/util/nvidia/Makefile.inc
@@ -37,12 +37,15 @@ CBOOTIMAGE_RAW_SRCS:= \
CBOOTIMAGE_SRCS:=$(addprefix util/nvidia/cbootimage/src/,$(filter %.c,$(CBOOTIMAGE_RAW_SRCS)))
CBOOTIMAGE_OBJS:=$(addprefix $(objutil)/nvidia/cbootimage/,$(patsubst %.c,%.o,$(filter %.c,$(CBOOTIMAGE_RAW_SRCS))))
+CBOOTIMAGE_FLAGS:=-Wall -std=c99 -O2
additional-dirs += $(sort $(dir $(CBOOTIMAGE_OBJS)))
$(objutil)/nvidia/cbootimage/%.o: util/nvidia/cbootimage/src/%.c
- gcc -c -o $@ $<
+ printf " HOSTCC $(subst $(objutil)/,,$(@))\n"
+ $(HOSTCC) $(CBOOTIMAGE_FLAGS) -c -o $@ $<
$(CBOOTIMAGE): $(CBOOTIMAGE_OBJS)
- gcc -o $@.tmp $^ -lm
+ printf " HOSTCC $(subst $(objutil)/,,$(@)) (link)\n"
+ $(HOSTCC) $(CBOOTIMAGE_FLAGS) -o $@.tmp $^ -lm
mv $@.tmp $@