source: rtems-source-builder/source-builder/defaults.mc @ 97a685f

4.104.114.95
Last change on this file since 97a685f was 97a685f, checked in by Chris Johns <chrisj@…>, on 04/30/13 at 01:20:54

Add mail support to mail reports.

  • Property mode set to 100644
File size: 11.2 KB
Line 
1#
2# RTEMS Tools Project (http://www.rtems.org/)
3# Copyright 2010-2013 Chris Johns (chrisj@rtems.org)
4# All rights reserved.
5#
6# This file is part of the RTEMS Tools package in 'rtems-tools'.
7#
8# Permission to use, copy, modify, and/or distribute this software for any
9# purpose with or without fee is hereby granted, provided that the above
10# copyright notice and this permission notice appear in all copies.
11#
12# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
13# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
14# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
15# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
16# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19
20#
21# All paths in defaults must be Unix format. Do not store any Windows format
22# paths in the defaults.
23#
24# Every entry must describe the type of checking a host must pass.
25#
26# Records:
27#  key: type, attribute, value
28#   type     : none, dir, exe, triplet
29#   attribute: none, required, optional
30#   value    : 'single line', '''multi line'''
31#
32
33#
34# Global defaults
35#
36[global]
37
38# Nothing
39nil:                 none,    none,     ''
40
41# Set to invalid values.
42_bset:               none,    none,     ''
43name:                none,    none,     ''
44version:             none,    none,     ''
45release:             none,    none,     ''
46
47# GNU triples needed to build packages
48_host:               triplet, required, ''
49_build:              triplet, required, '%{_host}'
50_target:             none,    optional, ''
51
52# Paths
53_host_platform:      none,    none,     '%{_host_cpu}-%{_host_vendor}-%{_host_os}%{?_gnu}'
54_arch:               none,    none,     '%{_host_arch}'
55_topdir:             dir,     required, '%{_cwd}'
56_configdir:          dir,     optional, '%{_topdir}/config:%{_sbdir}/config'
57_tardir:             dir,     optional, '%{_topdir}/tar'
58_sourcedir:          dir,     optional, '%{_topdir}/sources'
59_patchdir:           dir,     optional, '%{_topdir}/patches:%{_sbdir}/patches'
60_builddir:           dir,     optional, '%{_topdir}/build/%{name}-%{version}-%{release}'
61_buildcxcdir:        dir,     optional, '%{_topdir}/build/%{name}-%{version}-%{release}-cxc'
62_docdir:             dir,     none,     '%{_defaultdocdir}'
63_tmppath:            dir,     none,     '%{_topdir}/build/tmp'
64_tmproot:            dir,     none,     '%{_tmppath}/source-build-%(%{__id_u} -n)/%{_bset}'
65_tmpcxcroot:         dir,     none,     '%{_tmppath}/source-build-%(%{__id_u} -n)-cxc/%{_bset}'
66buildroot:           dir,     none,     '%{_tmppath}/%{name}-root-%(%{__id_u} -n)'
67buildcxcroot:        dir,     none,     '%{_tmppath}/%{name}-root-%(%{__id_u} -n)-cxc'
68_datadir:            dir,     none,     '%{_prefix}/share'
69_defaultdocdir:      dir,     none,     '%{_prefix}/share/doc'
70_exeext:             none,    none,     ''
71_exec_prefix:        dir,     none,     '%{_prefix}'
72_bindir:             dir,     none,     '%{_exec_prefix}/bin'
73_sbindir:            dir,     none,     '%{_exec_prefix}/sbin'
74_libexecdir:         dir,     none,     '%{_exec_prefix}/libexec'
75_datarootdir:        dir,     none,     '%{_prefix}/share'
76_datadir:            dir,     none,     '%{_datarootdir}'
77_sysconfdir:         dir,     none,     '%{_prefix}/etc'
78_sharedstatedir:     dir,     none,     '%{_prefix}/com'
79_localstatedir:      dir,     none,     '%{prefix}/var'
80_includedir:         dir,     none,     '%{_prefix}/include'
81_lib:                dir,     none,     'lib'
82_libdir:             dir,     none,     '%{_exec_prefix}/%{_lib}'
83_libexecdir:         dir,     none,     '%{_exec_prefix}/libexec'
84_mandir:             dir,     none,     '%{_datarootdir}/man'
85_infodir:            dir,     none,     '%{_datarootdir}/info'
86_localedir:          dir,     none,     '%{_datarootdir}/locale'
87_localedir:          dir,     none,     '%{_datadir}/locale'
88_localstatedir:      dir,     none,     '%{_prefix}/var'
89_prefix:             dir,     none,     '%{_usr}'
90_usr:                dir,     none,     '/usr/local'
91_usrsrc:             dir,     none,     '%{_usr}/src'
92_var:                dir,     none,     '/usr/local/var'
93_varrun:             dir,     none,     '%{_var}/run'
94
95# Defaults, override in platform specific modules.
96___setup_shell:      exe,     required, '/bin/sh'
97__aclocal:           exe,     optional, 'aclocal'
98__ar:                exe,     required, 'ar'
99__arch_install_post: exe,     none,     '%{nil}'
100__as:                exe,     required, 'as'
101__autoconf:          exe,     required, 'autoconf'
102__autoheader:        exe,     required, 'autoheader'
103__automake:          exe,     required, 'automake'
104__awk:               exe,     required, 'awk'
105__bash:              exe,     optional, '/bin/bash'
106__bison:             exe,     required, '/usr/bin/bison'
107__bzip2:             exe,     required, '/usr/bin/bzip2'
108__cat:               exe,     required, '/bin/cat'
109__cc:                exe,     required, '/usr/bin/gcc'
110__chgrp:             exe,     required, '/usr/bin/chgrp'
111__chmod:             exe,     required, '/bin/chmod'
112__chown:             exe,     required, '/usr/sbin/chown'
113__cp:                exe,     required, '/bin/cp'
114__cpp:               exe,     none,     '%{__cc} -E'
115__cvs:               exe,     optional, '/usr/bin/cvs'
116__cvs_z:             none,    none,     '%{__cvs} -z 9'
117__cxx:               exe,     required, '/usr/bin/g++'
118__flex:              exe,     required, '/usr/bin/flex'
119__git:               exe,     required, '/usr/bin/git'
120__grep:              exe,     required, '/usr/bin/grep'
121__gzip:              exe,     required, '/usr/bin/gzip'
122__id:                exe,     required, '/usr/bin/id'
123__id_u:              exe,     none,     '%{__id} -u'
124__install:           exe,     required, '/usr/bin/install'
125__install_info:      exe,     optional, '/usr/bin/install-info'
126__ld:                exe,     required, '/usr/bin/ld'
127__ldconfig:          exe,     required, '/sbin/ldconfig'
128__ln_s:              exe,     none,     'ln -s'
129__make:              exe,     required, 'make'
130__makeinfo:          exe,     required, '/usr/bin/makeinfo'
131__mkdir:             exe,     required, '/bin/mkdir'
132__mkdir_p:           exe,     none,     '/bin/mkdir -p'
133__mv:                exe,     required, '/bin/mv'
134__nm:                exe,     required, '/usr/bin/nm'
135__objcopy:           exe,     optional, '/usr/bin/objcopy'
136__objdump:           exe,     optional, '/usr/bin/objdump'
137__patch_bin:         exe,     required, '/usr/bin/patch'
138__patch_opts:        none,    none,     '%{nil}'
139__patch:             exe,     none,     '%{__patch_bin} %{__patch_opts}'
140__perl:              exe,     optional, 'perl'
141__svn:               exe,     optional, '/usr/bin/svn'
142__ranlib:            exe,     required, 'ranlib'
143__rm:                exe,     required, '/bin/rm'
144__rmfile:            exe,     none,     '%{__rm} -f'
145__rmdir:             exe,     none,     '%{__rm} -rf'
146__sed:               exe,     required, '/usr/bin/sed'
147__setup_post:        exe,     none,     '%{__chmod} -R a+rX,g-w,o-w .'
148__sh:                exe,     required, '/bin/sh'
149__tar:               exe,     required, '/usr/bin/tar'
150__tar_extract:       exe,     none,     '%{__tar} -xvvf'
151__touch:             exe,     required, '/usr/bin/touch'
152__unzip:             exe,     required, '/usr/bin/unzip'
153__xz:                exe,     required, '/usr/bin/xz'
154
155# Shell Build Settings.
156___build_args:       none,    none,     '-e'
157___build_cmd:        none,    none,     '%{?_sudo:%{_sudo} }%{?_remsh:%{_remsh} %{_remhost} }%{?_remsudo:%{_remsudo} }%{?_remchroot:%{_remchroot} %{_remroot} }%{___build_shell} %{___build_args}'
158___build_post:       none,    none,     'exit 0'
159
160# Prebuild set up script.
161___build_pre:        none,    none,     '''# ___build_pre in as set up in defaults.py
162# Save the original path away.
163export SB_ORIG_PATH=${PATH}
164# Directories
165%{?_prefix:SB_PREFIX="%{_prefix}"}
166%{?_prefix:SB_PREFIX_CLEAN=$(echo "%{_prefix}" | %{__sed} -e 's/^\///')}
167SB_SOURCE_DIR="%{_sourcedir}"
168SB_BUILD_DIR="%{_builddir}"
169SB_OPT_FLAGS="%{?_tmproot:-I%{_tmproot}/${SB_PREFIX_CLEAN}/include -L%{_tmproot}/${SB_PREFIX_CLEAN}/lib} %{optflags}"
170SB_ARCH="%{_arch}"
171SB_OS="%{_os}"
172export SB_SOURCE_DIR SB_BUILD_DIR SB_OPT_FLAGS SB_ARCH SB_OS
173# Documentation
174SB_DOC_DIR="%{_docdir}"
175export SB_DOC_DIR
176# Packages
177SB_PACKAGE_NAME="%{name}"
178SB_PACKAGE_VERSION="%{version}"
179SB_PACKAGE_RELEASE="%{release}"
180export SB_PACKAGE_NAME SB_PACKAGE_VERSION SB_PACKAGE_RELEASE
181# Build directories
182export SB_PREFIX
183%{?_builddir:SB_BUILD_DIR="%{_builddir}"}
184%{?buildroot:SB_BUILD_ROOT="%{buildroot}"}
185%{?buildroot:%{?_prefix:SB_BUILD_ROOT_BINDIR="%{buildroot}/${SB_PREFIX_CLEAN}/bin"}}
186export SB_BUILD_ROOT SB_BUILD_DIR SB_BUILD_ROOT_BINDIR
187%{?_buildcxcdir:SB_BUILD_CXC_DIR="%{_buildcxcdir}"}
188%{?buildcxcroot:SB_BUILD_CXC_ROOT="%{buildcxcroot}"}
189%{?buildcxcroot:%{?_prefix:SB_BUILD_CXC_ROOT_BINDIR="%{buildcxcroot}/${SB_PREFIX_CLEAN}/bin"}}
190export SB_BUILD_CXC_ROOT SB_BUILD_CXC_DIR SB_BUILD_CXC_ROOT_BINDIR
191%{?_tmproot:SB_TMPROOT="%{_tmproot}"}
192%{?_tmproot:%{?_prefix:SB_TMPPREFIX="%{_tmproot}/${SB_PREFIX_CLEAN}"}}
193%{?_tmproot:%{?_prefix:SB_TMPBINDIR="%{_tmproot}/${SB_PREFIX_CLEAN}/bin"}}
194export SB_TMPROOT SB_TMPPREFIX SB_TMPBINDIR
195%{?_tmpcxcroot:SB_TMPCXCROOT="%{_tmproot}"}
196%{?_tmpcxcroot:%{?_prefix:SB_TMPCXCPREFIX="%{_tmpcxcroot}/${SB_PREFIX_CLEAN}"}}
197%{?_tmpcxcroot:%{?_prefix:SB_TMPCXCBINDIR="%{_tmpcxcroot}/${SB_PREFIX_CLEAN}/bin"}}
198export SB_TMPCXCROOT SB_TMPCXCPREFIX SB_TMPCXCBINDIR
199# The compiler flags
200%{?_targetcflags:CFLAGS_FOR_TARGET="%{_targetcflags}"}
201%{?_targetcxxflags:CXXFLAGS_FOR_TARGET="%{_targetcxxflags}"}
202export CFLAGS_FOR_TARGET
203export CXXFLAGS_FOR_TARGET
204# Set up the path. Put the CXC path first.
205if test -n "${SB_TMPBINDIR}" ; then
206 PATH="${SB_TMPBINDIR}:$PATH"
207fi
208if test -n "${SB_TMPCXCBINDIR}" ; then
209 PATH="${SB_TMPCXCBINDIR}:$PATH"
210fi
211export PATH
212# Default environment set up.
213LANG=C
214export LANG
215unset DISPLAY || :
216umask 022
217cd "%{_builddir}"'''
218
219___build_shell:      none,    none,     '%{?_buildshell:%{_buildshell}}%{!?_buildshell:/bin/sh}'
220
221___build_template:   none,    none,     '''#!%{___build_shell}
222%{___build_pre}
223%{nil}'''
224
225# Configure command
226configure:           none,    none,     '''
227CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ;
228CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ;
229FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ;
230./configure --build=%{_build} --host=%{_host} \
231      --target=%{_target_platform} \
232      --program-prefix=%{?_program_prefix} \
233      --prefix=%{_prefix} \
234      --exec-prefix=%{_exec_prefix} \
235      --bindir=%{_bindir} \
236      --sbindir=%{_sbindir} \
237      --sysconfdir=%{_sysconfdir} \
238      --datadir=%{_datadir} \
239      --includedir=%{_includedir} \
240      --libdir=%{_libdir} \
241      --libexecdir=%{_libexecdir} \
242      --localstatedir=%{_localstatedir} \
243      --sharedstatedir=%{_sharedstatedir} \
244      --mandir=%{_mandir} \
245      --infodir=%{_infodir}'''
246
247# Default package settings
248_forced_static:     none,         none, '-Xlinker -Bstatic ${LIBS_STATIC} -Xlinker -Bdynamic'
249__xz:                exe,     required, '/usr/bin/xz'
250
251# Mail Support
252_mail_smtp_host:   none,         none, 'localhost'
253_mail_tools_to:    none,         none, 'rtems-tooltestresults@rtems.org'
Note: See TracBrowser for help on using the repository browser.