arch: arm: aarch32: Add header shims for cortex_a_r renaming

Out-of-tree code can still be using the old file locations. Introduce
header shims to include the headers from the new correct location and
print a warning message.

These shims should be removed after two releases.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
This commit is contained in:
Stephanos Ioannidis 2020-03-22 23:38:44 +09:00 committed by Ioannis Glaropoulos
commit 33928f18ae
7 changed files with 96 additions and 0 deletions

View file

@ -0,0 +1,16 @@
/*
* Copyright (c) 2020 Stephanos Ioannidis <root@stephanos.io>
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_R_EXC_H_
#define ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_R_EXC_H_
#ifndef CONFIG_COMPAT_INCLUDES
#warning "This header file has moved, include <aarch32/cortex_a_r/exc.h> instead."
#endif
#include <aarch32/cortex_a_r/exc.h>
#endif /* ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_R_EXC_H_ */

View file

@ -0,0 +1,16 @@
/*
* Copyright (c) 2020 Stephanos Ioannidis <root@stephanos.io>
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_R_STACK_H_
#define ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_R_STACK_H_
#ifndef CONFIG_COMPAT_INCLUDES
#warning "This header file has moved, include <aarch32/cortex_a_r/stack.h> instead."
#endif
#include <aarch32/cortex_a_r/stack.h>
#endif /* ZEPHYR_ARCH_ARM_INCLUDE_AARCH32_CORTEX_R_STACK_H_ */

View file

@ -0,0 +1,16 @@
/*
* Copyright (c) 2020 Stephanos Ioannidis <root@stephanos.io>
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_R_CMSIS_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_R_CMSIS_H_
#ifndef CONFIG_COMPAT_INCLUDES
#warning "This header file has moved, include <arch/arm/aarch32/cortex_a_r/cpu.h> instead."
#endif
#include <arch/arm/aarch32/cortex_a_r/cpu.h>
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_R_CMSIS_H_ */

View file

@ -0,0 +1,16 @@
/*
* Copyright (c) 2020 Stephanos Ioannidis <root@stephanos.io>
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_R_CPU_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_R_CPU_H_
#ifndef CONFIG_COMPAT_INCLUDES
#warning "This header file has moved, include <arch/arm/aarch32/cortex_a_r/cpu.h> instead."
#endif
#include <arch/arm/aarch32/cortex_a_r/cpu.h>
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_R_CPU_H_ */

View file

@ -0,0 +1,9 @@
/*
* Copyright (c) 2017 Linaro Limited.
*
* SPDX-License-Identifier: Apache-2.0
*/
/* Set initial alignment to the 32 byte minimum for all MPUs */
_app_data_align = 32;
. = ALIGN(32);

View file

@ -0,0 +1,7 @@
/*
* Copyright (c) 2020 Stephanos Ioannidis <root@stephanos.io>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <arch/arm/aarch32/cortex_a_r/scripts/linker.ld>

View file

@ -0,0 +1,16 @@
/*
* Copyright (c) 2020 Stephanos Ioannidis <root@stephanos.io>
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_R_SYS_IO_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_R_SYS_IO_H_
#ifndef CONFIG_COMPAT_INCLUDES
#warning "This header file has moved, include <arch/arm/aarch32/cortex_a_r/sys_io.h> instead."
#endif
#include <arch/arm/aarch32/cortex_a_r/sys_io.h>
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_CORTEX_R_SYS_IO_H_ */