mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
FreeBSD 10 and above no longer have /usr/bin/cvs - allow it to be found in the path (e.g., from a devel/cvs ports install)
This commit is contained in:
parent
44e82d8896
commit
b7a13abd4b
@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# RTEMS Tools Project (http://www.rtems.org/)
|
# RTEMS Tools Project (http://www.rtems.org/)
|
||||||
# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
|
# Copyright 2010-2014 Chris Johns (chrisj@rtems.org)
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# This file is part of the RTEMS Tools package in 'rtems-tools'.
|
# This file is part of the RTEMS Tools package in 'rtems-tools'.
|
||||||
@ -73,6 +73,12 @@ def load():
|
|||||||
defines['_build_alias'] = defines['_host_alias']
|
defines['_build_alias'] = defines['_host_alias']
|
||||||
defines['_build_arch'] = defines['_host_arch']
|
defines['_build_arch'] = defines['_host_arch']
|
||||||
|
|
||||||
|
# FreeBSD 10 and above no longer have /usr/bin/cvs, but it can (e.g.) be installed to /usr/local/bin/cvs through the devel/cvs port
|
||||||
|
if int(float(version)) >= 10:
|
||||||
|
cvs = 'cvs'
|
||||||
|
if check.check_exe(cvs, cvs):
|
||||||
|
defines['__cvs'] = cvs
|
||||||
|
|
||||||
for gv in ['47', '48', '49']:
|
for gv in ['47', '48', '49']:
|
||||||
gcc = '%s-portbld-freebsd%s-gcc%s' % (cpu, version, gv)
|
gcc = '%s-portbld-freebsd%s-gcc%s' % (cpu, version, gv)
|
||||||
if check.check_exe(gcc, gcc):
|
if check.check_exe(gcc, gcc):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user