Hello,
I tried to compile linux kernel 3.18.12 with xenomai 2.6.4 and rtserial
enabled on arm imx6. The compilation failed with :
CC [M] drivers/xenomai/serial/rt_imx_uart.o
drivers/xenomai/serial/rt_imx_uart.c:39:27: fatal error:
mach/hardware.h: No such file or directory
#include <mach/hardware.h>
^
I can see in the file :
#include <mach/hardware.h>
#include <mach/imx-uart.h>
The requested file seem to be in arch/arm/mach-imx/hardware.h and
imx-uart.h in arch/arm/include/debug/imx-uart.h so i tried to correct
the path with :
#include <../mach-imx/hardware.h>
#include <debug/imx-uart.h>
The compilation failed with :
CC [M] drivers/xenomai/serial/rt_imx_uart.o
drivers/xenomai/serial/rt_imx_uart.c: In function 'rt_imx_uart_probe':
drivers/xenomai/serial/rt_imx_uart.c:1465:21: error: dereferencing
pointer to incomplete type
if (pdata && (pdata->flags & IMXUART_HAVE_RTSCTS))
^
drivers/xenomai/serial/rt_imx_uart.c:1465:31: error:
'IMXUART_HAVE_RTSCTS' undeclared (first use in this function)
if (pdata && (pdata->flags & IMXUART_HAVE_RTSCTS))
^
drivers/xenomai/serial/rt_imx_uart.c:1465:31: note: each undeclared
identifier is reported only once for each function it appears in
drivers/xenomai/serial/rt_imx_uart.c:1467:21: error: dereferencing
pointer to incomplete type
if (pdata && (pdata->flags & IMXUART_USE_DCEDTE))
^
drivers/xenomai/serial/rt_imx_uart.c:1467:31: error:
'IMXUART_USE_DCEDTE' undeclared (first use in this function)
if (pdata && (pdata->flags & IMXUART_USE_DCEDTE))
^
drivers/xenomai/serial/rt_imx_uart.c:1469:20: error: dereferencing
pointer to incomplete type
if (pdata && pdata->init) {
^
drivers/xenomai/serial/rt_imx_uart.c:1470:14: error: dereferencing
pointer to incomplete type
err = pdata->init(pdev);
^
drivers/xenomai/serial/rt_imx_uart.c:1489:20: error: dereferencing
pointer to incomplete type
if (pdata && pdata->exit)
^
drivers/xenomai/serial/rt_imx_uart.c:1490:8: error: dereferencing
pointer to incomplete type
pdata->exit(pdev);
^
drivers/xenomai/serial/rt_imx_uart.c: In function 'rt_imx_uart_remove':
drivers/xenomai/serial/rt_imx_uart.c:1520:20: error: dereferencing
pointer to incomplete type
if (pdata && pdata->exit)
^
drivers/xenomai/serial/rt_imx_uart.c:1521:8: error: dereferencing
pointer to incomplete type
pdata->exit(pdev);
^
Do you have an idea ?
Jean-Baptiste Trédez
_______________________________________________
Xenomai mailing list
Xenomai@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai