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:
parent
a033683783
commit
33928f18ae
7 changed files with 96 additions and 0 deletions
16
arch/arm/include/aarch32/cortex_r/exc.h
Normal file
16
arch/arm/include/aarch32/cortex_r/exc.h
Normal 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_ */
|
16
arch/arm/include/aarch32/cortex_r/stack.h
Normal file
16
arch/arm/include/aarch32/cortex_r/stack.h
Normal 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_ */
|
16
include/arch/arm/aarch32/cortex_r/cmsis.h
Normal file
16
include/arch/arm/aarch32/cortex_r/cmsis.h
Normal 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_ */
|
16
include/arch/arm/aarch32/cortex_r/cpu.h
Normal file
16
include/arch/arm/aarch32/cortex_r/cpu.h
Normal 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_ */
|
|
@ -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);
|
7
include/arch/arm/aarch32/cortex_r/scripts/linker.ld
Normal file
7
include/arch/arm/aarch32/cortex_r/scripts/linker.ld
Normal 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>
|
16
include/arch/arm/aarch32/cortex_r/sys_io.h
Normal file
16
include/arch/arm/aarch32/cortex_r/sys_io.h
Normal 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_ */
|
Loading…
Add table
Add a link
Reference in a new issue