Making --enable-targets=all parameterized

This commit is contained in:
Sergio Durigan Junior 2015-06-22 22:25:21 -04:00
parent a52f11c8e2
commit e0c1f42841

View file

@ -461,7 +461,6 @@ flags for it if needed."""
Configure.__init__ (self, **kwargs)
self.workdir = WithProperties (r"%s", r'builddir')
self.command = ['../binutils-gdb/configure',
'--enable-targets=all',
'--disable-binutils',
'--disable-ld',
'--disable-gold',
@ -561,6 +560,9 @@ The parameters of the class are:
- extra_conf_flags: extra flags to be passed to "configure".
Should be a list (i.e., []). The default is None.
- enable_targets_all: set this to True to pass
'--enable-targets=all' to configure. The default is True.
- extra_make_flags: extra flags to be passed to "make", when
compiling. Should be a list (i.e., []). The default is None.
@ -593,6 +595,7 @@ The parameters of the class are:
run_testsuite = True
extra_conf_flags = None
enable_targets_all = True
extra_make_flags = None
extra_make_check_flags = None
@ -628,6 +631,9 @@ The parameters of the class are:
if not self.extra_conf_flags:
self.extra_conf_flags = []
if self.enable_targets_all:
self.extra_conf_flags.append (r'--enable-targets=all')
if self.use_system_debuginfo:
self.extra_conf_flags.append (r'--with-separate-debug-dir=/usr/lib/debug')
@ -769,6 +775,7 @@ anything for now."""
class RunTestGDBBSD_Common (BuildAndTestGDBFactory):
"""Common BSD test configurations"""
def __init__ (self, **kwargs):
self.enable_targets_all = False
self.extra_conf_flags = [ 'CFLAGS=-I/usr/local/include', '--disable-werror' ]
self.make_command = 'gmake'
BuildAndTestGDBFactory.__init__ (self, **kwargs)