amlogic: makefile: Use PLAT variable when possible
authorCarlo Caione <ccaione@baylibre.com>
Wed, 18 Sep 2019 10:03:10 +0000 (11:03 +0100)
committerCarlo Caione <ccaione@baylibre.com>
Wed, 18 Sep 2019 10:03:10 +0000 (11:03 +0100)
To address the file names.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
Change-Id: Ib79b8dfa032a1db012c5031d47de61e1a16b5f9a

plat/amlogic/gxbb/platform.mk
plat/amlogic/gxl/platform.mk

index 57167b077b810bbe5be14aff4934e709e75cdf69..62384d2aa762f6f2b528d0d599322ed3ec99ec0a 100644 (file)
@@ -22,9 +22,9 @@ GIC_SOURCES           :=      drivers/arm/gic/common/gic_common.c             \
 BL31_SOURCES           +=      lib/cpus/aarch64/cortex_a53.S                   \
                                plat/common/plat_psci_common.c                  \
                                drivers/amlogic/console/aarch64/meson_console.S \
-                               ${AML_PLAT_SOC}/gxbb_bl31_setup.c               \
-                               ${AML_PLAT_SOC}/gxbb_pm.c                       \
-                               ${AML_PLAT_SOC}/gxbb_common.c                   \
+                               ${AML_PLAT_SOC}/${PLAT}_bl31_setup.c            \
+                               ${AML_PLAT_SOC}/${PLAT}_pm.c                    \
+                               ${AML_PLAT_SOC}/${PLAT}_common.c                \
                                ${AML_PLAT_COMMON}/aarch64/aml_helpers.S        \
                                ${AML_PLAT_COMMON}/aml_efuse.c                  \
                                ${AML_PLAT_COMMON}/aml_mhu.c                    \
index 2e47670f019e49de8322ac40de13967c0a07d267..641d177bc44013adf50e3c9039da5dc4dc1f460e 100644 (file)
@@ -25,9 +25,9 @@ GIC_SOURCES           :=      drivers/arm/gic/common/gic_common.c             \
 BL31_SOURCES           +=      lib/cpus/aarch64/cortex_a53.S                   \
                                plat/common/plat_psci_common.c                  \
                                drivers/amlogic/console/aarch64/meson_console.S \
-                               ${AML_PLAT_SOC}/gxl_bl31_setup.c                \
-                               ${AML_PLAT_SOC}/gxl_pm.c                        \
-                               ${AML_PLAT_SOC}/gxl_common.c                    \
+                               ${AML_PLAT_SOC}/${PLAT}_bl31_setup.c            \
+                               ${AML_PLAT_SOC}/${PLAT}_pm.c                    \
+                               ${AML_PLAT_SOC}/${PLAT}_common.c                \
                                ${AML_PLAT_COMMON}/aarch64/aml_helpers.S        \
                                ${AML_PLAT_COMMON}/aml_efuse.c                  \
                                ${AML_PLAT_COMMON}/aml_mhu.c                    \