Fix a variable expansion in Arm platform makefiles
authorSandrine Bailleux <sandrine.bailleux@arm.com>
Mon, 7 Jan 2019 14:35:37 +0000 (15:35 +0100)
committerSandrine Bailleux <sandrine.bailleux@arm.com>
Mon, 7 Jan 2019 14:36:51 +0000 (15:36 +0100)
The top level makefile defines the PLAT variable, not PLATFORM.
This mistake was causing an empty variable expansion and showing an
incomplete error message.

Change-Id: I5da1275c73c61a7c1823643a76300f255841719d
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
plat/arm/board/juno/platform.mk
plat/arm/css/sgi/sgi-common.mk
plat/arm/css/sgm/sgm-common.mk

index ad955f6760cbf9dd9dbbe1f37a6ef9fec4931c97..aec2b9bc5e71b5d1d7ebc8b223d1d4e1c2869250 100644 (file)
@@ -94,7 +94,7 @@ endif
 endif
 
 ifneq (${RESET_TO_BL31},0)
-  $(error "Using BL31 as the reset vector is not supported on ${PLATFORM} platform. \
+  $(error "Using BL31 as the reset vector is not supported on ${PLAT} platform. \
   Please set RESET_TO_BL31 to 0.")
 endif
 
index 46fa7c4d798a015fe07f4899a3933ddb5dcdc607..613d3d5fa32915210c93ccaee70d91691c9e30f6 100644 (file)
@@ -47,7 +47,7 @@ BL31_SOURCES          +=      ${CSS_ENT_BASE}/sgi_ras.c
 endif
 
 ifneq (${RESET_TO_BL31},0)
-  $(error "Using BL31 as the reset vector is not supported on ${PLATFORM} platform. \
+  $(error "Using BL31 as the reset vector is not supported on ${PLAT} platform. \
   Please set RESET_TO_BL31 to 0.")
 endif
 
index 3eb484038c6c33bfb98004016a44b504990f3cff..ddeac68a519526cf5d2e9cf3ff5d234aa668e57a 100644 (file)
@@ -46,7 +46,7 @@ BL31_SOURCES          +=      $(SGM_CPU_SOURCES)                      \
                                ${CSS_SGM_BASE}/sgm_plat_config.c
 
 ifneq (${RESET_TO_BL31},0)
-  $(error "Using BL31 as the reset vector is not supported on ${PLATFORM} platform. \
+  $(error "Using BL31 as the reset vector is not supported on ${PLAT} platform. \
   Please set RESET_TO_BL31 to 0.")
 endif