source: rtems/c/src/make/Makefile.inc.in

Last change on this file was 270c5df5, checked in by Chris Johns <chrisj@…>, on Jul 17, 2019 at 12:19:04 PM

Makefile.inc: Add support for staged builds.

  • Allow the RTEMS_ROOT to be conditionally supplied. This can be a staging area before being moved to the final install prefix location.
  • Update the default.cfg to use RTEMS_ROOT and to not rely on the exec_prefix so it's paths can be staged.
  • Fix and add the needed configure subs.

Closes #3768

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#
2# BSP specific settings. To be included in application Makefiles
3#
4# This support will be removed from RTEMS. Please consider other
5# ways to build applications.
6#
7
8RTEMS_API = @RTEMS_API@
9
10RTEMS_CPU = @RTEMS_CPU@
11RTEMS_BSP = @RTEMS_BSP@
12
13prefix = @prefix@
14exec_prefix = @exec_prefix@
15
16CC_FOR_TARGET = @CC@
17CXX_FOR_TARGET = @CXX@
18AS_FOR_TARGET = @AS@
19AR_FOR_TARGET = @AR@
20NM_FOR_TARGET = @NM@
21LD_FOR_TARGET = @LD@
22SIZE_FOR_TARGET = @SIZE@
23OBJCOPY_FOR_TARGET = @OBJCOPY@
24
25CC= $(CC_FOR_TARGET)
26CXX= $(CXX_FOR_TARGET)
27AS= $(AS_FOR_TARGET)
28LD= $(LD_FOR_TARGET)
29NM= $(NM_FOR_TARGET)
30AR= $(AR_FOR_TARGET)
31SIZE= $(SIZE_FOR_TARGET)
32OBJCOPY= $(OBJCOPY_FOR_TARGET)
33
34export CC
35export CXX
36export AS
37export LD
38export NM
39export AR
40export SIZE
41export OBJCOPY
42
43RTEMS_ROOT  ?= $(prefix)
44PROJECT_ROOT = $(RTEMS_ROOT)
45RTEMS_CUSTOM = $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
46RTEMS_SHARE  = $(RTEMS_ROOT)/share/rtems$(RTEMS_API)
47
48RTEMS_USE_OWN_PDIR = no
49RTEMS_HAS_POSIX_API = @RTEMS_HAS_POSIX_API@
50RTEMS_HAS_ITRON_API = no
51RTEMS_HAS_CPLUSPLUS = @RTEMS_HAS_CPLUSPLUS@
52
53export RTEMS_BSP
54export RTEMS_CUSTOM
55export PROJECT_ROOT
Note: See TracBrowser for help on using the repository browser.