aarch32: Add header shims to support old file locations

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.

Add also a new Kconfig symbol to suppress such warning.

The shim will go away after two releases, so make sure to adapt your
application for the new locations.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
Carlo Caione 2019-12-17 17:13:47 +00:00 committed by Anas Nashif
commit d048faacf2
29 changed files with 434 additions and 0 deletions

16
include/arch/arm/thread.h Normal file
View file

@ -0,0 +1,16 @@
/*
* Copyright (c) 2019 Carlo Caione <ccaione@baylibre.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_THREAD_H_
#define ZEPHYR_INCLUDE_ARCH_ARM_THREAD_H_
#ifndef CONFIG_COMPAT_INCLUDES
#warning "This header file has moved, include <arch/arm/aarch32/thread.h> instead."
#endif
#include <arch/arm/aarch32/thread.h>
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_THREAD_H_ */