source: rtems/cpukit/score/cpu/arm/include/rtems/score/arm.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 100755
File size: 1.9 KB
Line 
1/**
2 * @file
3 *
4 * @brief ARM Assembler Support API
5 */
6
7/*
8 *  COPYRIGHT (c) 2000 Canon Research Centre France SA.
9 *  Emmanuel Raguet, mailto:raguet@crf.canon.fr
10 *
11 *  Copyright (c) 2002 Advent Networks, Inc.
12 *       Jay Monkman <jmonkman@adventnetworks.com>
13 *
14 *  The license and distribution terms for this file may be
15 *  found in the file LICENSE in this distribution or at
16 *  http://www.rtems.org/license/LICENSE.
17 *
18 */
19
20#ifndef _RTEMS_SCORE_ARM_H
21#define _RTEMS_SCORE_ARM_H
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27/**
28 * @addtogroup ScoreCPU
29 */
30/**@{**/
31
32#if defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7EM__)
33  #define CPU_MODEL_NAME "ARMv7M"
34  #define ARM_MULTILIB_ARCH_V7M
35#elif defined(__ARM_ARCH_6M__)
36  #define CPU_MODEL_NAME "ARMv6M"
37  #define ARM_MULTILIB_ARCH_V6M
38#else
39  #define CPU_MODEL_NAME "ARMv4"
40  #define ARM_MULTILIB_ARCH_V4
41#endif
42
43#if defined(__ARM_ARCH_7A__) \
44  || defined(__ARM_ARCH_7R__) \
45  || defined(__ARM_ARCH_7M__) \
46  || defined(__ARM_ARCH_7EM__)
47  #define ARM_MULTILIB_HAS_WFI
48  #define ARM_MULTILIB_HAS_LOAD_STORE_EXCLUSIVE
49  #define ARM_MULTILIB_HAS_BARRIER_INSTRUCTIONS
50#endif
51
52#if defined(__ARM_ARCH_7A__) \
53  || defined(__ARM_ARCH_7R__)
54  #define ARM_MULTILIB_HAS_THREAD_ID_REGISTER
55#endif
56
57#if defined(__ARM_ARCH_7A__)
58  #define ARM_MULTILIB_CACHE_LINE_MAX_64
59#endif
60
61#if defined(__ARM_ARCH_7A__) \
62  || defined(__ARM_ARCH_7M__) \
63  || defined(__ARM_ARCH_7EM__)
64  #define ARM_MULTILIB_HAS_CPACR
65#endif
66
67#if !defined(__SOFTFP__)
68  #if defined(__ARM_NEON__)
69    #define ARM_MULTILIB_VFP_D32
70  #elif defined(__VFP_FP__)
71    #define ARM_MULTILIB_VFP_D16
72  #else
73    #error "FPU support not implemented"
74  #endif
75#endif
76
77#if defined(ARM_MULTILIB_VFP_D16) \
78  || defined(ARM_MULTILIB_VFP_D32)
79  #define ARM_MULTILIB_VFP
80#endif
81
82/*
83 *  Define the name of the CPU family.
84 */
85
86#define CPU_NAME "ARM"
87
88/** @} */
89
90#ifdef __cplusplus
91}
92#endif
93
94#endif /* _RTEMS_SCORE_ARM_H */
Note: See TracBrowser for help on using the repository browser.