source: rtems/bsps/powerpc/gen5200/include/bsp/bestcomm/include/mgt5200/mgt5200.h @ 2afb22b

5
Last change on this file since 2afb22b was 2afb22b, checked in by Chris Johns <chrisj@…>, on 12/23/17 at 07:18:56

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.3 KB
Line 
1#ifndef __MGT5200_MGT5200_H
2#define __MGT5200_MGT5200_H
3
4/******************************************************************************
5*
6* Copyright (c) 2004 Freescale Semiconductor, Inc.
7*
8* Permission is hereby granted, free of charge, to any person obtaining a
9* copy of this software and associated documentation files (the "Software"),
10* to deal in the Software without restriction, including without limitation
11* the rights to use, copy, modify, merge, publish, distribute, sublicense,
12* and/or sell copies of the Software, and to permit persons to whom the
13* Software is furnished to do so, subject to the following conditions:
14*
15* The above copyright notice and this permission notice shall be included
16* in all copies or substantial portions of the Software.
17*
18* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
22* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
23* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24* OTHER DEALINGS IN THE SOFTWARE.
25*
26******************************************************************************/
27
28#define MBAR_CS         0x0000
29#define MBAR_SDRAM      0x0100
30#define MBAR_CDM        0x0200
31#define MBAR_LPC        0x0300
32#define MBAR_SCTMR      0x0400
33#define MBAR_INT_CTRL   0x0500
34#define MBAR_GPTIMER    0x0600
35#define MBAR_SLTIMER    0x0700
36#define MBAR_RTCLOCK    0x0800
37#define MBAR_MSCAN      0x0900
38#define MBAR_GPIO_STD   0x0B00
39#define MBAR_GPIO_WKUP  0x0C00
40#define MBAR_XCPCI      0x0D00
41#define MBAR_SPI        0x0F00
42#define MBAR_USB        0x1000
43#define MBAR_SDMA       0x1200
44#define MBAR_BDLC       0x1300
45#define MBAR_IR         0x1400
46#define MBAR_XLB_ARB    0x1F00
47#define MBAR_PSC1       0x2000
48#define MBAR_PSC2       0x2200
49#define MBAR_PSC3       0x2400
50#define MBAR_PSC4       0x2600
51#define MBAR_PSC5       0x2800
52#define MBAR_PSC6       0x2C00
53#define MBAR_IRDA       0x2C00
54#define MBAR_ETHERNET   0x3000
55#define MBAR_SCPCI      0x3800
56#define MBAR_ATA        0x3A00
57#define MBAR_SCLPC      0x3C00
58#define MBAR_I2C        0x3D00
59#define MBAR_SRAM       0x8000
60
61#endif /* __MGT5200_MGT5200_H */
Note: See TracBrowser for help on using the repository browser.