source: rtems/bsps/m68k/av5282/include/bsp.h @ 2afb22b

5
Last change on this file since 2afb22b was 2afb22b, checked in by Chris Johns <chrisj@…>, on Dec 23, 2017 at 7:18:56 AM

Remove make preinstall

A speciality of the RTEMS build system was the make preinstall step. It
copied header files from arbitrary locations into the build tree. The
header files were included via the -Bsome/build/tree/path GCC command
line option.

This has at least seven problems:

  • The make preinstall step itself needs time and disk space.
  • Errors in header files show up in the build tree copy. This makes it hard for editors to open the right file to fix the error.
  • There is no clear relationship between source and build tree header files. This makes an audit of the build process difficult.
  • The visibility of all header files in the build tree makes it difficult to enforce API barriers. For example it is discouraged to use BSP-specifics in the cpukit.
  • An introduction of a new build system is difficult.
  • Include paths specified by the -B option are system headers. This may suppress warnings.
  • The parallel build had sporadic failures on some hosts.

This patch removes the make preinstall step. All installed header
files are moved to dedicated include directories in the source tree.
Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc,
etc. Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g.
erc32, imx, qoriq, etc.

The new cpukit include directories are:

  • cpukit/include
  • cpukit/score/cpu/@RTEMS_CPU@/include
  • cpukit/libnetworking

The new BSP include directories are:

  • bsps/include
  • bsps/@RTEMS_CPU@/include
  • bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include

There are build tree include directories for generated files.

The include directory order favours the most general header file, e.g.
it is not possible to override general header files via the include path
order.

The "bootstrap -p" option was removed. The new "bootstrap -H" option
should be used to regenerate the "headers.am" files.

Update #3254.

  • Property mode set to 100644
File size: 2.1 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup m68k_av5282
5 *
6 * @brief Global BSP definitions.
7 */
8
9/*
10 *  av5282 BSP header file
11 */
12
13/**
14 * @defgroup m68k_av5282 AV5282 Support
15 *
16 * @ingroup bsp_m68k
17 *
18 * @brief AV5282 support.
19 */
20
21#ifndef LIBBSP_M68K_AV5282_BSP_H
22#define LIBBSP_M68K_AV5282_BSP_H
23
24#ifndef ASM
25
26#include <bspopts.h>
27#include <bsp/default-initial-extension.h>
28
29#include <rtems.h>
30#include <rtems/bspIo.h>
31
32/***************************************************************************/
33/**  Hardware data structure headers                                      **/
34#include <mcf5282/mcf5282.h>   /* internal MCF5282 modules */
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40/***************************************************************************/
41/**  Network driver configuration                                         **/
42struct rtems_bsdnet_ifconfig;
43extern int rtems_fec_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching );
44#define RTEMS_BSP_NETWORK_DRIVER_NAME     "fs1"
45#define RTEMS_BSP_NETWORK_DRIVER_ATTACH   rtems_fec_driver_attach
46
47/***************************************************************************/
48/**  User Definable configuration                                         **/
49
50/* define which port the console should use - all other ports are then defined as general purpose */
51#define CONSOLE_PORT        0
52
53/* externals */
54
55/* constants */
56
57/* miscellaneous stuff assumed to exist */
58
59/* functions */
60
61uint32_t get_CPU_clock_speed(void);
62
63rtems_isr_entry set_vector(
64  rtems_isr_entry     handler,
65  rtems_vector_number vector,
66  int                 type
67);
68
69/*
70 * Interrupt assignments
71 *  Highest-priority listed first
72 */
73#define FEC_IRQ_LEVEL       4
74#define FEC_IRQ_RX_PRIORITY 7
75#define FEC_IRQ_TX_PRIORITY 6
76
77#define PIT3_IRQ_LEVEL      4
78#define PIT3_IRQ_PRIORITY   0
79
80#define UART0_IRQ_LEVEL     3
81#define UART0_IRQ_PRIORITY  7
82#define UART1_IRQ_LEVEL     3
83#define UART1_IRQ_PRIORITY  6
84#define UART2_IRQ_LEVEL     3
85#define UART2_IRQ_PRIORITY  5
86
87/*
88 * Prototypes for methods called from .S to alow dependency tracking
89 */
90void Init5282(void);
91
92#ifdef __cplusplus
93}
94#endif
95
96#endif /* !ASM */
97#endif
Note: See TracBrowser for help on using the repository browser.