From aa556e2035c023d4328185a46e15df532e566067 Mon Sep 17 00:00:00 2001 From: Evgeniy Didin Date: Mon, 3 Dec 2018 20:54:30 +0300 Subject: [PATCH] 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 --- utils/genrandconfig | 2 ++ 1 file changed, 2 insertions(+) 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): -- 2.30.2