[RTEMS Project] #3285: Reorganize BSP source directory

RTEMS trac trac at rtems.org
Wed Jan 31 11:53:45 UTC 2018


#3285: Reorganize BSP source directory
-----------------------------+------------------------------
 Reporter:  Sebastian Huber  |       Owner:  Sebastian Huber
     Type:  task             |      Status:  assigned
 Priority:  normal           |   Milestone:  5.1
Component:  build            |     Version:  5
 Severity:  normal           |  Resolution:
 Keywords:                   |  Blocked By:
 Blocking:                   |
-----------------------------+------------------------------
Description changed by Sebastian Huber:

Old description:

> Now, that all BSP header files are in
>
> * bsps/include
> * bsps/@RTEMS_CPU@/include
> * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILY@/include
>
> we should also move the BSP sources to this new directory tree. How do we
> want to organize the BSP sources in bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILY@?
>
> * include (this is already there, see #3254)
> * start (everything required to run a minimal application without
> devices)
>   * start.S
>   * bspstart.c
>   * linkcmds
>   * cache.c
> * smp
>   * bspsmp.c
> * dev (Everything device driver related)
>   * clock.c
>   * console.c
>   * i2c.c
>   * spi.c
> * make
>   * somebsp.cfg
> * network (legacy network stack drivers)
> * mpci (RTEMS_MULTIPROCESSING support)
>
> Explicit directories for smp, network, mpci may make it possible to
> automatically generate the Makefile.am with an AM_CONDITIONAL() for the
> respective directory.
>
> The excessive use of subdirectories which contain usually only one file
> should be avoided.
>
> The layout of external sources should be used as is if possible.
>
> The first step is to move all libcpu sources to
>
> * bsps/@RTEMS_CPU@/shared, or
> * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILY at .

New description:

 Now, that all BSP header files are in

 * bsps/include
 * bsps/@RTEMS_CPU@/include
 * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILY@/include

 we should also move the BSP sources to this new directory tree. How do we
 want to organize the BSP sources in bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILY@?

 * include (this is already there, see #3254)
 * start (everything required to run a minimal application without devices)
   * start.S
   * bspstart.c
   * linkcmds
   * cache.c
 * smp
   * bspsmp.c
 * dev (everything device driver related)
   * clock.c
   * console.c
   * i2c.c
   * spi.c
 * make
   * somebsp.cfg
 * net(legacy network stack drivers)
 * mpci (RTEMS_MULTIPROCESSING support)
 * contrib (import of external sources)
   * The layout of external sources should be used as is if possible.

 Explicit directories for smp, network, mpci may make it possible to
 automatically generate the Makefile.am with an AM_CONDITIONAL() for the
 respective directory.

 The excessive use of subdirectories which contain usually only one file
 should be avoided.

 The first step is to move all libcpu sources to

 * bsps/@RTEMS_CPU@/shared, or
 * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILY at .

--

--
Ticket URL: <http://devel.rtems.org/ticket/3285#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list