source: rtems/bsps/arm/beagle/include/bsp/beagleboneblack.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/**
2 * @file
3 *
4 * @ingroup arm_beagle
5 *
6 * @brief BeagleBone Black BSP definitions.
7 */
8
9/**
10 * Copyright (c) 2015 Ketul Shah <ketulshah1993 at gmail.com>
11 *
12 * The license and distribution terms for this file may be
13 * found in the file LICENSE in this distribution or at
14 * http://www.rtems.org/license/LICENSE.
15 */
16
17#ifndef LIBBSP_ARM_BEAGLE_BEAGLEBONEBLACK_H
18#define LIBBSP_ARM_BEAGLE_BEAGLEBONEBLACK_H
19
20/* In general GPIOs of BeagleBone Black/White can be addressed
21 * using two 46-pin dual-row expansion connectors P9 and P8,
22 * which are also known as Expansion A and Expansion B Connectors,
23 * respectively.
24 *
25 * Each Expansion Connector consists of 23 pins. So 2x23 pins would
26 * be available. It has 4 GPIO Banks each consists of 32 pins each.
27 * Toatal number of pins are 128 (32x4).
28 *
29 * So for mapping between generalized pin name and the unique pin
30 * numbers in this header file Macros are declared.
31 */
32
33/* USER LEDs of BeagleBone Black */
34#define BBB_LED_USR0  53 /* USR LED0 */
35#define BBB_LED_USR1  54 /* USR LED1 */
36#define BBB_LED_USR2  55 /* USR LED2 */
37#define BBB_LED_USR3  56 /* USR LED3 */
38
39/* Header P8 of BeagleBone Black */
40#define BBB_P8_7      66 /* GPIO2_2 */
41#define BBB_P8_8      67 /* GPIO2_3 */
42#define BBB_P8_9      69 /* GPIO2_5 */
43#define BBB_P8_10     68 /* GPIO2_4 */
44#define BBB_P8_11     45 /* GPIO1_13 */
45#define BBB_P8_12     44 /* GPIO1_12 */
46#define BBB_P8_13     23 /* GPIO0_23 */
47#define BBB_P8_14     26 /* GPIO0_26 */
48#define BBB_P8_15     47 /* GPIO1_15 */
49#define BBB_P8_16     46 /* GPIO1_14 */
50#define BBB_P8_17     27 /* GPIO0_27 */
51#define BBB_P8_18     65 /* GPIO2_1 */
52#define BBB_P8_19     22 /* GPIO0_22 */
53#define BBB_P8_26     61 /* GPIO1_29 */
54       
55/* Header P9 of BeagleBone Black */
56#define BBB_P9_11     30 /* GPIO0_30 */
57#define BBB_P9_12     60 /* GPIO1_28 */
58#define BBB_P9_13     31 /* GPIO0_31 */
59#define BBB_P9_14     50 /* GPIO1_18 */
60#define BBB_P9_15     48 /* GPIO1_16 */
61#define BBB_P9_16     51 /* GPIO1_19 */
62#define BBB_P9_17      5 /* GPIO0_5 */
63#define BBB_P9_18      4 /* GPIO0_4 */
64#define BBB_P9_23     49 /* GPIO1_17 */
65#define BBB_P9_24     15 /* GPIO0_15 */
66#define BBB_P9_26     14 /* GPIO1_14 */
67#define BBB_P9_27     115/* GPIO3_19 */
68#define BBB_P9_30     112/* GPIO3_16 */
69#define BBB_P9_41     20 /* GPIO0_20 */
70#define BBB_P9_42      7 /* GPIO0_7 */
71
72#endif /* LIBBSP_ARM_BEAGLE_GPIO_H */
Note: See TracBrowser for help on using the repository browser.