[PATCH v2 8/8] am335x display drivers: Port to RTEMS

Christian Mauderer list at c-mauderer.de
Sat Aug 3 12:02:14 UTC 2019


Seems that one file got lost since the last version of the patch set:

````
Waf: Entering directory
`/home/christian/rtems/rtems-bbb/libs/rtems-libbsd/build/arm-rtems5-beagleboneblack-noIPSec'
[1422/2156] Compiling freebsd/sys/dev/fb/fbd.c
[1786/2156] Compiling freebsd/sys/arm/ti/am335x/am335x_lcd.c
In file included from ../../freebsd/sys/dev/vt/vt.h:49:0,
                 from ../../freebsd/sys/dev/fb/fbd.c:55:
../../freebsd/sys/sys/terminal.h:46:10: fatal error:
rtems/bsd/local/opt_syscons.h: No such file or directory
 #include <rtems/bsd/local/opt_syscons.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

../../freebsd/sys/arm/ti/am335x/am335x_lcd.c:34:10: fatal error:
rtems/bsd/local/opt_syscons.h: No such file or directory
 #include <rtems/bsd/local/opt_syscons.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Waf: Leaving directory
`/home/christian/rtems/rtems-bbb/libs/rtems-libbsd/build/arm-rtems5-beagleboneblack-noIPSec'
Build failed
````

On 02/08/2019 23:00, Vijay Kumar Banerjee wrote:
> ---
>  libbsd.py                                             | 8 ++++++++
>  rtemsbsd/include/bsp/nexus-devices.h                  | 2 ++
>  rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h | 2 ++
>  3 files changed, 12 insertions(+)
> 
> diff --git a/libbsd.py b/libbsd.py
> index f94f7b3d..96cc4e3b 100644
> --- a/libbsd.py
> +++ b/libbsd.py
> @@ -802,6 +802,11 @@ class display(builder.Module):
>                  'sys/dev/vt/vt.h',
>                  'sys/dev/fb/fbreg.h',
>                  'sys/teken/teken.h',
> +                'sys/arm/ti/am335x/am335x_lcd.h',
> +                'sys/arm/ti/am335x/am335x_pwm.h',
> +                'sys/sys/fbio.h',
> +                'sys/sys/consio.h',
> +                'sys/sys/terminal.h',
>              ]
>          )
>          self.addKernelSpaceSourceFiles(
> @@ -813,6 +818,9 @@ class display(builder.Module):
>                  'sys/dev/videomode/videomode.c',
>                  'sys/dev/fb/fb.c',
>                  'sys/dev/fb/fbd.c',
> +                'sys/arm/ti/am335x/am335x_lcd.c',
> +                'sys/arm/ti/am335x/am335x_pwmss.c',
> +                'sys/arm/ti/am335x/am335x_ecap.c',
>              ],
>              mm.generator['source']()
>          )
> diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h
> index ebf1ba13..e9da3be1 100644
> --- a/rtemsbsd/include/bsp/nexus-devices.h
> +++ b/rtemsbsd/include/bsp/nexus-devices.h
> @@ -56,6 +56,8 @@ SYSINIT_DRIVER_REFERENCE(simplebus, ofwbus);
>  SYSINIT_DRIVER_REFERENCE(ti_scm, simplebus);
>  SYSINIT_DRIVER_REFERENCE(ti_pinmux, simplebus);
>  SYSINIT_DRIVER_REFERENCE(am335x_prcm, simplebus);
> +SYSINIT_DRIVER_REFERENCE(am335x_pwmss, simplebus);
> +SYSINIT_DRIVER_REFERENCE(am335x_lcd, simplebus);
>  SYSINIT_DRIVER_REFERENCE(usbss, simplebus);
>  SYSINIT_DRIVER_REFERENCE(musbotg, usbss);
>  SYSINIT_DRIVER_REFERENCE(sdhci_ti, simplebus);
> diff --git a/rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h b/rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h
> index ee643d59..03078328 100644
> --- a/rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h
> +++ b/rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h
> @@ -46,6 +46,8 @@
>  #define	altq_remove _bsd_altq_remove
>  #define	altq_remove_queue _bsd_altq_remove_queue
>  #define	altqs_inactive_open _bsd_altqs_inactive_open
> +#define	am335x_pwm_config_ecap _bsd_am335x_pwm_config_ecap
> +#define	am335x_pwmss_driver _bsd_am335x_pwmss_driver
>  #define	arp_announce_ifaddr _bsd_arp_announce_ifaddr
>  #define	arp_ifinit _bsd_arp_ifinit
>  #define	arprequest _bsd_arprequest
> 



More information about the devel mailing list