From e0c1f42841dbd7b3a324740371c9c59de3170b89 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Mon, 22 Jun 2015 22:25:21 -0400 Subject: [PATCH] Making --enable-targets=all parameterized --- master.cfg | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/master.cfg b/master.cfg index 59b6687..e2845e3 100644 --- a/master.cfg +++ b/master.cfg @@ -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)