summaryrefslogtreecommitdiffstats
path: root/source-builder/defaults.mc
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2014-02-04 18:38:18 +1100
committerChris Johns <chrisj@rtems.org>2014-02-04 18:38:18 +1100
commit56e8d800550c88caa372f8119ec293d8899a35e0 (patch)
tree984cdffc184a1fab62d3799dd7579854ea9fb92b /source-builder/defaults.mc
parentsb: Do not assume the src is valid. (diff)
downloadrtems-source-builder-56e8d800550c88caa372f8119ec293d8899a35e0.tar.bz2
config: Add support to build qemu.
Qemu requires gettext, glib, libffi, and pixman. DTC is built as a submodule. On Mavrick provide a pkg-config command so avoid needing a pkgconfig. The one here is only just good enough to work. Provide an internal autotools build including libtool so qemu can be built from git.
Diffstat (limited to 'source-builder/defaults.mc')
-rw-r--r--source-builder/defaults.mc9
1 files changed, 9 insertions, 0 deletions
diff --git a/source-builder/defaults.mc b/source-builder/defaults.mc
index 3d1a219..1030825 100644
--- a/source-builder/defaults.mc
+++ b/source-builder/defaults.mc
@@ -57,6 +57,10 @@ _uid: none, convert, '%(%{__id_u} -n)'
optflags: none, convert, '-O2 -pipe'
optincludes: none, convert, ''
+# Extra path a platform can override.
+_extra_path: none, none, ''
+_ld_library_path: none, none, 'LD_LIBRARY_PATH'
+
# Paths
_host_platform: none, none, '%{_host_cpu}-%{_host_vendor}-%{_host_os}%{?_gnu}'
_arch: none, none, '%{_host_arch}'
@@ -209,6 +213,8 @@ export SB_TMPROOT SB_TMPPREFIX SB_TMPBINDIR
%{?_tmpcxcroot:%{?_prefix:SB_TMPCXCPREFIX="%{_tmpcxcroot}/${SB_PREFIX_CLEAN}"}}
%{?_tmpcxcroot:%{?_prefix:SB_TMPCXCBINDIR="%{_tmpcxcroot}/${SB_PREFIX_CLEAN}/bin"}}
export SB_TMPCXCROOT SB_TMPCXCPREFIX SB_TMPCXCBINDIR
+# Extra path support
+%{?_extra_path:SB_EXTRAPATH="%{_extra_path}"}
# The compiler flags
%{?_targetcflags:CFLAGS_FOR_TARGET="%{_targetcflags}"}
%{?_targetcxxflags:CXXFLAGS_FOR_TARGET="%{_targetcxxflags}"}
@@ -221,6 +227,9 @@ fi
if test -n "${SB_TMPCXCBINDIR}" ; then
PATH="${SB_TMPCXCBINDIR}:$PATH"
fi
+if test -n "${SB_EXTRAPATH}" ; then
+ PATH="${SB_EXTRAPATH}:$PATH"
+fi
export PATH
# Default environment set up.
LANG=C