From: Carlo Caione Date: Wed, 18 Sep 2019 10:03:10 +0000 (+0100) Subject: amlogic: makefile: Use PLAT variable when possible X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=edcadeb7b83b772ae1d9ff072a960ddf573befc2;p=project%2Fbcm63xx%2Fatf.git amlogic: makefile: Use PLAT variable when possible To address the file names. Signed-off-by: Carlo Caione Change-Id: Ib79b8dfa032a1db012c5031d47de61e1a16b5f9a --- diff --git a/plat/amlogic/gxbb/platform.mk b/plat/amlogic/gxbb/platform.mk index 57167b07..62384d2a 100644 --- a/plat/amlogic/gxbb/platform.mk +++ b/plat/amlogic/gxbb/platform.mk @@ -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 \ diff --git a/plat/amlogic/gxl/platform.mk b/plat/amlogic/gxl/platform.mk index 2e47670f..641d177b 100644 --- a/plat/amlogic/gxl/platform.mk +++ b/plat/amlogic/gxl/platform.mk @@ -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 \