source: rtems/bsps/arm/include/core_cmInstr.h @ e0dd8a5a

5
Last change on this file since e0dd8a5a 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: 3.6 KB
Line 
1/**************************************************************************//**
2 * @file     core_cmInstr.h
3 * @brief    CMSIS Cortex-M Core Instruction Access Header File
4 * @version  V4.30
5 * @date     20. October 2015
6 ******************************************************************************/
7/* Copyright (c) 2009 - 2015 ARM LIMITED
8
9   All rights reserved.
10   Redistribution and use in source and binary forms, with or without
11   modification, are permitted provided that the following conditions are met:
12   - Redistributions of source code must retain the above copyright
13     notice, this list of conditions and the following disclaimer.
14   - Redistributions in binary form must reproduce the above copyright
15     notice, this list of conditions and the following disclaimer in the
16     documentation and/or other materials provided with the distribution.
17   - Neither the name of ARM nor the names of its contributors may be used
18     to endorse or promote products derived from this software without
19     specific prior written permission.
20   *
21   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24   ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
25   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31   POSSIBILITY OF SUCH DAMAGE.
32   ---------------------------------------------------------------------------*/
33
34
35#if   defined ( __ICCARM__ )
36 #pragma system_include         /* treat file as system include file for MISRA check */
37#elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
38  #pragma clang system_header   /* treat file as system include file */
39#endif
40
41#ifndef __CORE_CMINSTR_H
42#define __CORE_CMINSTR_H
43
44
45/* ##########################  Core Instruction Access  ######################### */
46/** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface
47  Access to dedicated instructions
48  @{
49*/
50
51/*------------------ RealView Compiler -----------------*/
52#if   defined ( __CC_ARM )
53  #include "cmsis_armcc.h"
54
55/*------------------ ARM Compiler V6 -------------------*/
56#elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
57  #include "cmsis_armcc_V6.h"
58
59/*------------------ GNU Compiler ----------------------*/
60#elif defined ( __GNUC__ )
61  #include "cmsis_gcc.h"
62
63/*------------------ ICC Compiler ----------------------*/
64#elif defined ( __ICCARM__ )
65  #include <cmsis_iar.h>
66
67/*------------------ TI CCS Compiler -------------------*/
68#elif defined ( __TMS470__ )
69  #include <cmsis_ccs.h>
70
71/*------------------ TASKING Compiler ------------------*/
72#elif defined ( __TASKING__ )
73  /*
74   * The CMSIS functions have been implemented as intrinsics in the compiler.
75   * Please use "carm -?i" to get an up to date list of all intrinsics,
76   * Including the CMSIS ones.
77   */
78
79/*------------------ COSMIC Compiler -------------------*/
80#elif defined ( __CSMC__ )
81  #include <cmsis_csm.h>
82
83#endif
84
85/*@}*/ /* end of group CMSIS_Core_InstructionInterface */
86
87#endif /* __CORE_CMINSTR_H */
Note: See TracBrowser for help on using the repository browser.