[RTEMS Project] #3285: Reorganize BSP source directory

RTEMS trac trac at rtems.org
Tue Apr 17 09:02:22 UTC 2018


#3285: Reorganize BSP source directory
-----------------------------+------------------------------
 Reporter:  Sebastian Huber  |       Owner:  Sebastian Huber
     Type:  task             |      Status:  assigned
 Priority:  normal           |   Milestone:  6.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
> * 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 .

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)
 * config
   * somebsp.cfg
 * start (everything required to run a minimal application without devices)
   * start.S
   * bspstart.c
   * bspsmp.c
   * linkcmds
 * cache (everything for the cache controller support)
 * irq (everything for the interrupt controller support)
 * console (everything for the console driver)
 * clock (everything for the clock driver
 * i2c (everything for the I2C driver)
 * spi (everything for the SPI driver)
 * net (legacy network stack drivers)
 * mpci (RTEMS_MULTIPROCESSING support)
 * rtc (everything for the RTC driver)
 * ata (everything for the ATA driver)
 * contrib (import of external sources)
   * The layout of external sources should be used as is if possible.

--

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


More information about the bugs mailing list