make: Export the CC variable to sub shells.
The CC environment variable is used by the bin_to_o.sh script to build an
object module which has a binary file as the data in one of its sections. To
ensure it's set even if the parent environment didn't set it, export it from
make into sub shells.
Change-Id: I588160949537ad8f2bebf78cca32979e74336d64
diff --git a/engine.mk b/engine.mk
index 23a2712..0e82d82 100644
--- a/engine.mk
+++ b/engine.mk
@@ -39,7 +39,7 @@
include $(obj)/.config
-CC = $(firstword $(CC_$(TC_ARCH)))
+export CC = $(firstword $(CC_$(TC_ARCH)))
OBJCOPY ?= $(OBJCOPY_$(TC_ARCH))
STRIP ?= $(STRIP_$(TC_ARCH))
LIBGCC ?= $(shell $(CC) -print-libgcc-file-name)