Make:Use "simply expanded" make variables.
Replace some "recursively expanded" make variables with "simply
expanded" variables (i.e. replace = with :=). This has no functional
impact but is more consistent and theoretically more efficient.
Change-Id: Iaf33d7c8ad48464ae0d39923515d1e7f230c95c1
diff --git a/Makefile b/Makefile
index 1eb0174..c20bf91 100644
--- a/Makefile
+++ b/Makefile
@@ -125,10 +125,10 @@
# Verbose flag
ifeq (${V},0)
- Q=@
+ Q:=@
CHECKCODE_ARGS += --no-summary --terse
else
- Q=
+ Q:=
endif
export Q
diff --git a/tools/fip_create/Makefile b/tools/fip_create/Makefile
index da99302..b12e063 100644
--- a/tools/fip_create/Makefile
+++ b/tools/fip_create/Makefile
@@ -32,11 +32,11 @@
include ${MAKE_HELPERS_DIRECTORY}build_macros.mk
include ${MAKE_HELPERS_DIRECTORY}build_env.mk
-PROJECT = fip_create
-OBJECTS = fip_create.o
+PROJECT := fip_create
+OBJECTS := fip_create.o
COPIED_H_FILES := uuid.h firmware_image_package.h
-CFLAGS = -Wall -Werror -pedantic -std=c99
+CFLAGS := -Wall -Werror -pedantic -std=c99
ifeq (${DEBUG},1)
CFLAGS += -g -O0 -DDEBUG
else
@@ -44,7 +44,7 @@
endif
# Only include from local directory (see comment below).
-INCLUDE_PATHS = -I.
+INCLUDE_PATHS := -I.
CC := gcc