From 30d2c17fb8efaf8c05b7751f56345771cfd071e3 Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Tue, 14 Dec 2021 13:47:26 +0800 Subject: [PATCH] board: arm64: imx8mm_evk: add a dummy file Because we currently use RAM_CONSOLE for now, and there is actually no device in the build, so there is twister build failure, add a dummy file to avoid build failure. Signed-off-by: Peng Fan --- boards/arm64/imx8mm_evk/CMakeLists.txt | 3 +++ boards/arm64/imx8mm_evk/dummy.c | 35 ++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 boards/arm64/imx8mm_evk/dummy.c diff --git a/boards/arm64/imx8mm_evk/CMakeLists.txt b/boards/arm64/imx8mm_evk/CMakeLists.txt index 9881313609a..c04749f674f 100644 --- a/boards/arm64/imx8mm_evk/CMakeLists.txt +++ b/boards/arm64/imx8mm_evk/CMakeLists.txt @@ -1 +1,4 @@ # SPDX-License-Identifier: Apache-2.0 + +zephyr_library() +zephyr_library_sources(dummy.c) diff --git a/boards/arm64/imx8mm_evk/dummy.c b/boards/arm64/imx8mm_evk/dummy.c new file mode 100644 index 00000000000..a35d637c7ed --- /dev/null +++ b/boards/arm64/imx8mm_evk/dummy.c @@ -0,0 +1,35 @@ +/* + * Copyright 2021 NXP + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#ifndef CONFIG_UART_MCUX_IUART + +#define DT_DRV_COMPAT nxp_imx_iuart + +#include +#include +#include +#include +#include + +static int dummy_init(const struct device *dev) +{ + return 0; +} + +#define IUART_MCUX_INIT(n) \ + \ + DEVICE_DT_INST_DEFINE(n, \ + &dummy_init, \ + NULL, \ + NULL, \ + NULL, \ + PRE_KERNEL_1, \ + 0, \ + NULL); + +DT_INST_FOREACH_STATUS_OKAY(IUART_MCUX_INIT) + +#endif