From: Evgeniy Didin Date: Mon, 3 Dec 2018 17:54:30 +0000 (+0300) Subject: utils/genrandconfig: test with BR2_OPTIMIZE_2=y X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa556e2035c023d4328185a46e15df532e566067;p=buildroot.git 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 Cc: Thomas Petazzoni Cc: arc-buildroot@synopsys.com Signed-off-by: Thomas Petazzoni --- 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):