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 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 100755
File size: 1.9 KB
RevLine 
[da215ded]1/**
[78623bce]2 * @file
3 *
[66fffc7]4 * @brief ARM Assembler Support API
[da215ded]5 */
6
[5bb38e15]7/*
[08330bf]8 *  COPYRIGHT (c) 2000 Canon Research Centre France SA.
9 *  Emmanuel Raguet, mailto:raguet@crf.canon.fr
10 *
[4f0b287]11 *  Copyright (c) 2002 Advent Networks, Inc.
12 *       Jay Monkman <jmonkman@adventnetworks.com>
13 *
[08330bf]14 *  The license and distribution terms for this file may be
15 *  found in the file LICENSE in this distribution or at
[c499856]16 *  http://www.rtems.org/license/LICENSE.
[08330bf]17 *
18 */
19
[7f70d1b7]20#ifndef _RTEMS_SCORE_ARM_H
21#define _RTEMS_SCORE_ARM_H
[08330bf]22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
[78623bce]27/**
28 * @addtogroup ScoreCPU
29 */
[b697bc6]30/**@{**/
[78623bce]31
[3252126]32#if defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7EM__)
[9dcc683]33  #define CPU_MODEL_NAME "ARMv7M"
34  #define ARM_MULTILIB_ARCH_V7M
[5759510]35#elif defined(__ARM_ARCH_6M__)
36  #define CPU_MODEL_NAME "ARMv6M"
37  #define ARM_MULTILIB_ARCH_V6M
[08330bf]38#else
[9dcc683]39  #define CPU_MODEL_NAME "ARMv4"
40  #define ARM_MULTILIB_ARCH_V4
[08330bf]41#endif
42
[d9bd5cd6]43#if defined(__ARM_ARCH_7A__) \
44  || defined(__ARM_ARCH_7R__) \
[e4b5289a]45  || defined(__ARM_ARCH_7M__) \
46  || defined(__ARM_ARCH_7EM__)
[d9bd5cd6]47  #define ARM_MULTILIB_HAS_WFI
[b4e8306]48  #define ARM_MULTILIB_HAS_LOAD_STORE_EXCLUSIVE
[7c90670]49  #define ARM_MULTILIB_HAS_BARRIER_INSTRUCTIONS
[d9bd5cd6]50#endif
51
[022851a]52#if defined(__ARM_ARCH_7A__) \
53  || defined(__ARM_ARCH_7R__)
54  #define ARM_MULTILIB_HAS_THREAD_ID_REGISTER
55#endif
56
[0cb50ab]57#if defined(__ARM_ARCH_7A__)
58  #define ARM_MULTILIB_CACHE_LINE_MAX_64
59#endif
60
[b43c2e8]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
[8ae37323]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
[9c59c2d9]80#endif
81
[08330bf]82/*
83 *  Define the name of the CPU family.
84 */
85
86#define CPU_NAME "ARM"
87
[78623bce]88/** @} */
89
[08330bf]90#ifdef __cplusplus
91}
92#endif
93
[f6ed46df]94#endif /* _RTEMS_SCORE_ARM_H */
Note: See TracBrowser for help on using the repository browser.