All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] utils/genrandconfig: Add level 2 optimization option
@ 2018-12-03 17:54 Evgeniy Didin
  2018-12-03 21:08 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Evgeniy Didin @ 2018-12-03 17:54 UTC (permalink / raw)
  To: buildroot

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.

Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: arc-buildroot at synopsys.com
---
 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.16.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] utils/genrandconfig: Add level 2 optimization option
  2018-12-03 17:54 [Buildroot] [PATCH] utils/genrandconfig: Add level 2 optimization option Evgeniy Didin
@ 2018-12-03 21:08 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2018-12-03 21:08 UTC (permalink / raw)
  To: buildroot

Hello,

On Mon,  3 Dec 2018 20:54:30 +0300, Evgeniy Didin wrote:
> 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.
> 
> Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com>
> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> Cc: arc-buildroot at synopsys.com
> ---
>  utils/genrandconfig | 2 ++
>  1 file changed, 2 insertions(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-12-03 21:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-03 17:54 [Buildroot] [PATCH] utils/genrandconfig: Add level 2 optimization option Evgeniy Didin
2018-12-03 21:08 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.