Making --enable-targets=all parameterized
This commit is contained in:
parent
a52f11c8e2
commit
e0c1f42841
1 changed files with 8 additions and 1 deletions
|
@ -461,7 +461,6 @@ flags for it if needed."""
|
||||||
Configure.__init__ (self, **kwargs)
|
Configure.__init__ (self, **kwargs)
|
||||||
self.workdir = WithProperties (r"%s", r'builddir')
|
self.workdir = WithProperties (r"%s", r'builddir')
|
||||||
self.command = ['../binutils-gdb/configure',
|
self.command = ['../binutils-gdb/configure',
|
||||||
'--enable-targets=all',
|
|
||||||
'--disable-binutils',
|
'--disable-binutils',
|
||||||
'--disable-ld',
|
'--disable-ld',
|
||||||
'--disable-gold',
|
'--disable-gold',
|
||||||
|
@ -561,6 +560,9 @@ The parameters of the class are:
|
||||||
- extra_conf_flags: extra flags to be passed to "configure".
|
- extra_conf_flags: extra flags to be passed to "configure".
|
||||||
Should be a list (i.e., []). The default is None.
|
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
|
- extra_make_flags: extra flags to be passed to "make", when
|
||||||
compiling. Should be a list (i.e., []). The default is None.
|
compiling. Should be a list (i.e., []). The default is None.
|
||||||
|
|
||||||
|
@ -593,6 +595,7 @@ The parameters of the class are:
|
||||||
run_testsuite = True
|
run_testsuite = True
|
||||||
|
|
||||||
extra_conf_flags = None
|
extra_conf_flags = None
|
||||||
|
enable_targets_all = True
|
||||||
|
|
||||||
extra_make_flags = None
|
extra_make_flags = None
|
||||||
extra_make_check_flags = None
|
extra_make_check_flags = None
|
||||||
|
@ -628,6 +631,9 @@ The parameters of the class are:
|
||||||
if not self.extra_conf_flags:
|
if not self.extra_conf_flags:
|
||||||
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:
|
if self.use_system_debuginfo:
|
||||||
self.extra_conf_flags.append (r'--with-separate-debug-dir=/usr/lib/debug')
|
self.extra_conf_flags.append (r'--with-separate-debug-dir=/usr/lib/debug')
|
||||||
|
|
||||||
|
@ -769,6 +775,7 @@ anything for now."""
|
||||||
class RunTestGDBBSD_Common (BuildAndTestGDBFactory):
|
class RunTestGDBBSD_Common (BuildAndTestGDBFactory):
|
||||||
"""Common BSD test configurations"""
|
"""Common BSD test configurations"""
|
||||||
def __init__ (self, **kwargs):
|
def __init__ (self, **kwargs):
|
||||||
|
self.enable_targets_all = False
|
||||||
self.extra_conf_flags = [ 'CFLAGS=-I/usr/local/include', '--disable-werror' ]
|
self.extra_conf_flags = [ 'CFLAGS=-I/usr/local/include', '--disable-werror' ]
|
||||||
self.make_command = 'gmake'
|
self.make_command = 'gmake'
|
||||||
BuildAndTestGDBFactory.__init__ (self, **kwargs)
|
BuildAndTestGDBFactory.__init__ (self, **kwargs)
|
||||||
|
|
Loading…
Reference in a new issue