Skip to contentSkip to conversation

utils/genrandconfig: Add level 2 optimization option

PATCH New Evgeniy Didin 2 participants 2 messages Dec 3, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 utils/genrandconfig: Add level 2 optimization option

Currently all random defconfigs which are used in autobuilder use size optimizaion(-Os).
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 genertated in random defconfigs, so we could be able to test how packages are built with "-O2" in autobuilder.

Cc Thomas Petazzoni <[email protected]>
Cc arc-buildroot at synopsys.com
---
 utils/genrandconfig | 2 ++
 1 file changed, 2 insertions(+)
utils/genrandconfig +2 -0
index 1d6ff990f5..35c7cbd14c 100755
@@ -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):
Signature · 1 line
2.16.2
#1 lore raw

PATCH 1/1 utils/genrandconfig: Add level 2 optimization option

Hello,

Quoted 8 lines · Evgeniy Didin

Currently all random defconfigs which are used in autobuilder use size optimizaion(-Os).
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 genertated in random defconfigs, so we could be able to test how packages are built with "-O2" in autobuilder.

Quoted 6 lines
Cc Thomas Petazzoni <[email protected]>
Cc arc-buildroot at synopsys.com
---
 utils/genrandconfig | 2 ++
 1 file changed, 2 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com