Commit bd9344f6 authored by Antonio Nino Diaz's avatar Antonio Nino Diaz
Browse files

plat/arm: Sanitise includes



Use full include paths like it is done for common includes.

This cleanup was started in commit d40e0e08283a ("Sanitise includes
across codebase"), but it only cleaned common files and drivers. This
patch does the same to Arm platforms.

Change-Id: If982e6450bbe84dceb56d464e282bcf5d6d9ab9b
Signed-off-by: default avatarAntonio Nino Diaz <antonio.ninodiaz@arm.com>
parent 7ca572d9
...@@ -141,9 +141,6 @@ ifeq (${ARM_CRYPTOCELL_INTEG},1) ...@@ -141,9 +141,6 @@ ifeq (${ARM_CRYPTOCELL_INTEG},1)
endif endif
endif endif
PLAT_INCLUDES += -Iinclude/common/tbbr \
-Iinclude/plat/arm/common
ifeq (${ARCH}, aarch64) ifeq (${ARCH}, aarch64)
PLAT_INCLUDES += -Iinclude/plat/arm/common/aarch64 PLAT_INCLUDES += -Iinclude/plat/arm/common/aarch64
endif endif
...@@ -257,8 +254,6 @@ ifneq (${TRUSTED_BOARD_BOOT},0) ...@@ -257,8 +254,6 @@ ifneq (${TRUSTED_BOARD_BOOT},0)
drivers/auth/img_parser_mod.c \ drivers/auth/img_parser_mod.c \
drivers/auth/tbbr/tbbr_cot.c \ drivers/auth/tbbr/tbbr_cot.c \
PLAT_INCLUDES += -Iinclude/bl1/tbbr
BL1_SOURCES += ${AUTH_SOURCES} \ BL1_SOURCES += ${AUTH_SOURCES} \
bl1/tbbr/tbbr_img_desc.c \ bl1/tbbr/tbbr_img_desc.c \
plat/arm/common/arm_bl1_fwu.c \ plat/arm/common/arm_bl1_fwu.c \
......
...@@ -11,8 +11,7 @@ ...@@ -11,8 +11,7 @@
#include <common/debug.h> #include <common/debug.h>
#include <drivers/arm/pl011.h> #include <drivers/arm/pl011.h>
#include <drivers/console.h> #include <drivers/console.h>
#include <plat/arm/common/plat_arm.h>
#include <plat_arm.h>
/******************************************************************************* /*******************************************************************************
* Functions that set up the console * Functions that set up the console
......
...@@ -15,11 +15,10 @@ ...@@ -15,11 +15,10 @@
#if TRUSTED_BOARD_BOOT #if TRUSTED_BOARD_BOOT
#include <drivers/auth/mbedtls/mbedtls_config.h> #include <drivers/auth/mbedtls/mbedtls_config.h>
#endif #endif
#include <plat/arm/common/arm_dyn_cfg_helpers.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <arm_dyn_cfg_helpers.h>
#include <plat_arm.h>
/* Variable to store the address to TB_FW_CONFIG passed from BL1 */ /* Variable to store the address to TB_FW_CONFIG passed from BL1 */
static void *tb_fw_cfg_dtb; static void *tb_fw_cfg_dtb;
static size_t tb_fw_cfg_dtb_size; static size_t tb_fw_cfg_dtb_size;
......
...@@ -10,9 +10,8 @@ ...@@ -10,9 +10,8 @@
#include <common/desc_image_load.h> #include <common/desc_image_load.h>
#include <common/fdt_wrappers.h> #include <common/fdt_wrappers.h>
#include <plat/arm/common/arm_dyn_cfg_helpers.h>
#include <arm_dyn_cfg_helpers.h> #include <plat/arm/common/plat_arm.h>
#include <plat_arm.h>
#define DTB_PROP_MBEDTLS_HEAP_ADDR "mbedtls_heap_addr" #define DTB_PROP_MBEDTLS_HEAP_ADDR "mbedtls_heap_addr"
#define DTB_PROP_MBEDTLS_HEAP_SIZE "mbedtls_heap_size" #define DTB_PROP_MBEDTLS_HEAP_SIZE "mbedtls_heap_size"
......
...@@ -13,10 +13,9 @@ ...@@ -13,10 +13,9 @@
#include <common/debug.h> #include <common/debug.h>
#include <drivers/cfi/v2m_flash.h> #include <drivers/cfi/v2m_flash.h>
#include <drivers/console.h> #include <drivers/console.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <plat_arm.h>
#pragma weak plat_arm_error_handler #pragma weak plat_arm_error_handler
/* /*
......
...@@ -7,10 +7,9 @@ ...@@ -7,10 +7,9 @@
#include <platform_def.h> #include <platform_def.h>
#include <drivers/arm/gicv2.h> #include <drivers/arm/gicv2.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <plat_arm.h>
/****************************************************************************** /******************************************************************************
* The following functions are defined as weak to allow a platform to override * The following functions are defined as weak to allow a platform to override
* the way the GICv2 driver is initialised and used. * the way the GICv2 driver is initialised and used.
......
...@@ -9,10 +9,9 @@ ...@@ -9,10 +9,9 @@
#include <common/interrupt_props.h> #include <common/interrupt_props.h>
#include <drivers/arm/gicv3.h> #include <drivers/arm/gicv3.h>
#include <lib/utils.h> #include <lib/utils.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <plat_arm.h>
/****************************************************************************** /******************************************************************************
* The following functions are defined as weak to allow a platform to override * The following functions are defined as weak to allow a platform to override
* the way the GICv3 driver is initialised and used. * the way the GICv3 driver is initialised and used.
......
...@@ -7,10 +7,9 @@ ...@@ -7,10 +7,9 @@
#include <assert.h> #include <assert.h>
#include <common/bl_common.h> #include <common/bl_common.h>
#include <common/desc_image_load.h> #include <common/desc_image_load.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <plat_arm.h>
#pragma weak plat_flush_next_bl_params #pragma weak plat_flush_next_bl_params
#pragma weak plat_get_bl_image_load_info #pragma weak plat_get_bl_image_load_info
#pragma weak plat_get_next_bl_params #pragma weak plat_get_next_bl_params
......
...@@ -15,11 +15,10 @@ ...@@ -15,11 +15,10 @@
#include <drivers/io/io_memmap.h> #include <drivers/io/io_memmap.h>
#include <drivers/io/io_storage.h> #include <drivers/io/io_storage.h>
#include <lib/utils.h> #include <lib/utils.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <tools_share/firmware_image_package.h> #include <tools_share/firmware_image_package.h>
#include <plat_arm.h>
/* IO devices */ /* IO devices */
static const io_dev_connector_t *fip_dev_con; static const io_dev_connector_t *fip_dev_con;
static uintptr_t fip_dev_handle; static uintptr_t fip_dev_handle;
......
...@@ -11,8 +11,7 @@ ...@@ -11,8 +11,7 @@
#include <lib/psci/psci.h> #include <lib/psci/psci.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include <lib/utils.h> #include <lib/utils.h>
#include <plat/arm/common/plat_arm.h>
#include <plat_arm.h>
/* /*
* DRAM1 is used also to load the NS boot loader. For this reason we * DRAM1 is used also to load the NS boot loader. For this reason we
......
...@@ -11,10 +11,9 @@ ...@@ -11,10 +11,9 @@
#include <arch_helpers.h> #include <arch_helpers.h>
#include <lib/psci/psci.h> #include <lib/psci/psci.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <plat_arm.h>
/* Allow ARM Standard platforms to override these functions */ /* Allow ARM Standard platforms to override these functions */
#pragma weak plat_arm_program_trusted_mailbox #pragma weak plat_arm_program_trusted_mailbox
......
...@@ -9,11 +9,10 @@ ...@@ -9,11 +9,10 @@
#include <common/debug.h> #include <common/debug.h>
#include <common/runtime_svc.h> #include <common/runtime_svc.h>
#include <lib/pmf/pmf.h> #include <lib/pmf/pmf.h>
#include <plat/arm/common/arm_sip_svc.h>
#include <plat/arm/common/plat_arm.h>
#include <tools_share/uuid.h> #include <tools_share/uuid.h>
#include <arm_sip_svc.h>
#include <plat_arm.h>
/* ARM SiP Service UUID */ /* ARM SiP Service UUID */
DEFINE_SVC_UUID2(arm_sip_svc_uid, DEFINE_SVC_UUID2(arm_sip_svc_uid,
0x556d75e2, 0x6033, 0xb54b, 0xb5, 0x75, 0x556d75e2, 0x6033, 0xb54b, 0xb5, 0x75,
......
...@@ -7,8 +7,7 @@ ...@@ -7,8 +7,7 @@
#include <platform_def.h> #include <platform_def.h>
#include <arch.h> #include <arch.h>
#include <plat/arm/common/plat_arm.h>
#include <plat_arm.h>
/******************************************************************************* /*******************************************************************************
* This function validates an MPIDR by checking whether it falls within the * This function validates an MPIDR by checking whether it falls within the
......
...@@ -8,8 +8,7 @@ ...@@ -8,8 +8,7 @@
#include <common/debug.h> #include <common/debug.h>
#include <drivers/arm/tzc400.h> #include <drivers/arm/tzc400.h>
#include <plat/arm/common/plat_arm.h>
#include <plat_arm.h>
/* Weak definitions may be overridden in specific ARM standard platform */ /* Weak definitions may be overridden in specific ARM standard platform */
#pragma weak plat_arm_security_setup #pragma weak plat_arm_security_setup
......
...@@ -10,8 +10,7 @@ ...@@ -10,8 +10,7 @@
#include <common/debug.h> #include <common/debug.h>
#include <drivers/arm/tzc_dmc500.h> #include <drivers/arm/tzc_dmc500.h>
#include <plat/arm/common/plat_arm.h>
#include <plat_arm.h>
/******************************************************************************* /*******************************************************************************
* Initialize the DMC500-TrustZone Controller for ARM standard platforms. * Initialize the DMC500-TrustZone Controller for ARM standard platforms.
......
...@@ -12,11 +12,10 @@ ...@@ -12,11 +12,10 @@
#include <lib/el3_runtime/context_mgmt.h> #include <lib/el3_runtime/context_mgmt.h>
#include <lib/psci/psci.h> #include <lib/psci/psci.h>
#include <lib/utils.h> #include <lib/utils.h>
#include <plat/arm/common/arm_sip_svc.h>
#include <plat/arm/common/plat_arm.h>
#include <smccc_helpers.h> #include <smccc_helpers.h>
#include <arm_sip_svc.h>
#include <plat_arm.h>
/* /*
* Handle SMC from a lower exception level to switch its execution state * Handle SMC from a lower exception level to switch its execution state
* (either from AArch64 to AArch32, or vice versa). * (either from AArch64 to AArch32, or vice versa).
......
...@@ -14,10 +14,9 @@ ...@@ -14,10 +14,9 @@
#include <drivers/arm/pl011.h> #include <drivers/arm/pl011.h>
#include <drivers/console.h> #include <drivers/console.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <plat_arm.h>
static entry_point_info_t bl33_image_ep_info; static entry_point_info_t bl33_image_ep_info;
/* Weak definitions may be overridden in specific ARM standard platform */ /* Weak definitions may be overridden in specific ARM standard platform */
......
...@@ -13,8 +13,7 @@ ...@@ -13,8 +13,7 @@
#include <common/debug.h> #include <common/debug.h>
#include <drivers/arm/pl011.h> #include <drivers/arm/pl011.h>
#include <drivers/console.h> #include <drivers/console.h>
#include <plat/arm/common/plat_arm.h>
#include <plat_arm.h>
#define BL32_END (unsigned long)(&__BL32_END__) #define BL32_END (unsigned long)(&__BL32_END__)
......
...@@ -6,11 +6,10 @@ ...@@ -6,11 +6,10 @@
#include <common/bl_common.h> #include <common/bl_common.h>
#include <common/debug.h> #include <common/debug.h>
#include <plat/arm/common/plat_arm.h>
#include <plat/arm/soc/common/soc_css.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include <plat_arm.h>
#include <soc_css.h>
void bl1_platform_setup(void) void bl1_platform_setup(void)
{ {
arm_bl1_platform_setup(); arm_bl1_platform_setup();
......
...@@ -10,10 +10,9 @@ ...@@ -10,10 +10,9 @@
#include <common/debug.h> #include <common/debug.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include <lib/utils.h> #include <lib/utils.h>
#include <plat/arm/common/plat_arm.h>
#include <platform_def.h> #include <platform_def.h>
#include <plat_arm.h>
#include "../drivers/scp/css_scp.h" #include "../drivers/scp/css_scp.h"
/* Weak definition may be overridden in specific CSS based platform */ /* Weak definition may be overridden in specific CSS based platform */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment