ARC: MWDT: explicitly forbid to use NEWLIB / NATIVE_APPLICATION

ARC MWDT doesn't support building Zephyr as an native
application (CONFIG_NATIVE_APPLICATION).
ARC MWDT doesn't support building with CONFIG_NEWLIB_LIBC
as it doesn't have newlib.

Let's explicitly forbid to use these Kconfig options for the
MWDT toolchain.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
This commit is contained in:
Evgeniy Paltsev 2021-08-13 00:31:27 +03:00 committed by Christopher Friedt
commit 27de1e2bdb

View file

@ -71,6 +71,14 @@
#endif
#endif /* _SSIZE_T_DEFINED */
#ifdef CONFIG_NEWLIB_LIBC
#error "ARC MWDT doesn't support building with CONFIG_NEWLIB_LIBC as it doesn't have newlib"
#endif /* CONFIG_NEWLIB_LIBC */
#ifdef CONFIG_NATIVE_APPLICATION
#error "ARC MWDT doesn't support building Zephyr as an native application"
#endif /* CONFIG_NATIVE_APPLICATION */
#define __no_optimization __attribute__((optnone))