diff mbox

[PATCH/autobuild,4/8] autobuild-run: remove redundant 'make oldconfig'

Message ID 20170409205128.11560-4-arnout@mind.be
State Superseded
Headers show

Commit Message

Arnout Vandecappelle April 9, 2017, 8:51 p.m. UTC
After running 'make randpackageconfig', and additional 'make oldconfig'
is done. However, this is redundant, since randpackageconfig already
does an olddefconfig.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
 scripts/autobuild-run | 6 ------
 1 file changed, 6 deletions(-)

Comments

Thomas Petazzoni April 10, 2017, 8:25 a.m. UTC | #1
Hello,

On Sun, 9 Apr 2017 22:51:24 +0200, Arnout Vandecappelle
(Essensium/Mind) wrote:
> After running 'make randpackageconfig', and additional 'make oldconfig'
> is done. However, this is redundant, since randpackageconfig already
> does an olddefconfig.
> 
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

Well, this oldconfig is not exactly right after randpackageconfig.

We do this:

 - randpackageconfig
 - fixup_config()
 - oldconfig

The fixup_config() function potentially does some changes to
the .config file, and that's why we re-run oldconfig afterwards. This
ensures that the build will not wait indefinitely while asking the user
the value of a config option.

Therefore, I wouldn't qualify this oldconfig as "redundant".

Best regards,

Thomas
Arnout Vandecappelle April 10, 2017, 8:46 a.m. UTC | #2
On 10-04-17 10:25, Thomas Petazzoni wrote:
> Hello,
> 
> On Sun, 9 Apr 2017 22:51:24 +0200, Arnout Vandecappelle
> (Essensium/Mind) wrote:
>> After running 'make randpackageconfig', and additional 'make oldconfig'
>> is done. However, this is redundant, since randpackageconfig already
>> does an olddefconfig.
>>
>> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> 
> Well, this oldconfig is not exactly right after randpackageconfig.
> 
> We do this:
> 
>  - randpackageconfig
>  - fixup_config()
>  - oldconfig
> 
> The fixup_config() function potentially does some changes to
> the .config file, and that's why we re-run oldconfig afterwards. This
> ensures that the build will not wait indefinitely while asking the user
> the value of a config option.

 D'oh, I missed that. Fortunately somebody reviews my crap! :-)

 So instead I'll replace it with olddefconfig and squash with the preceding
patch, OK?

 Regards,
 Arnout

> 
> Therefore, I wouldn't qualify this oldconfig as "redundant".
> 
> Best regards,
> 
> Thomas
>
Thomas Petazzoni April 12, 2017, 9:27 a.m. UTC | #3
Hello,

On Mon, 10 Apr 2017 10:46:54 +0200, Arnout Vandecappelle wrote:

>  So instead I'll replace it with olddefconfig and squash with the preceding
> patch, OK?

Yup, seen your v2, looks good to me.

Thanks!

Thomas
diff mbox

Patch

diff --git a/scripts/autobuild-run b/scripts/autobuild-run
index 42276db..1df1ce0 100755
--- a/scripts/autobuild-run
+++ b/scripts/autobuild-run
@@ -586,12 +586,6 @@  def gen_config(**kwargs):
         if fixup_config(**kwargs):
             break
 
-    ret = subprocess.call(["yes '' 2>/dev/null| make O=%s -C %s oldconfig" % \
-                           (outputdir, srcdir)], shell=True, stdout=devnull, stderr=devnull)
-    if ret != 0:
-        log_write(log, "ERROR: cannot oldconfig")
-        return -1
-
     ret = subprocess.call(["make", "O=%s" % outputdir, "-C", srcdir, "savedefconfig"],
                           stdout=devnull, stderr=devnull)
     if ret != 0: