aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorGravatar Evgeniy Didin <Evgeniy.Didin@synopsys.com>2018-12-03 20:54:30 +0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-12-03 22:06:12 +0100
commitaa556e2035c023d4328185a46e15df532e566067 (patch)
treed2ae1200f721564312ce6b68f7b68b772912d051 /utils
parent6b50f988ad0a6044530b30344d52139da2994237 (diff)
downloadbuildroot-aa556e2035c023d4328185a46e15df532e566067.tar.gz
buildroot-aa556e2035c023d4328185a46e15df532e566067.tar.bz2
utils/genrandconfig: test with BR2_OPTIMIZE_2=y
Currently all random defconfigs which are used in autobuilder use size optimizaion (-Os), since BR2_OPTIMIZE_S=y is the default. Adding "-O2" optimization will give better test coverage. In many cases software gets built with speed optimization rather than size optimization. So let's add Level 2 optimizaion option to be generated in random defconfigs, so we could be able to test how packages are built with "-O2" in autobuilder. Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: arc-buildroot@synopsys.com Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'utils')
-rwxr-xr-xutils/genrandconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/genrandconfig b/utils/genrandconfig
index 1d6ff990f5..35c7cbd14c 100755
--- a/utils/genrandconfig
+++ b/utils/genrandconfig
@@ -366,6 +366,8 @@ def gen_config(args):
configlines.append("BR2_STATIC_LIBS=y\n")
if randint(0, 20) == 0:
configlines.append("BR2_PACKAGE_PYTHON_PY_ONLY=y\n")
+ if randint(0,5) == 0:
+ configlines.append("BR2_OPTIMIZE_2=y\n")
# Write out the configuration file
if not os.path.exists(args.outputdir):