]> rtime.felk.cvut.cz Git - linux-conf-perf.git/commitdiff
Print kernel build command
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 16 Oct 2015 21:35:38 +0000 (23:35 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 16 Oct 2015 21:35:38 +0000 (23:35 +0200)
scripts/kernel.py

index 33fcb794c7288b0d5a302ad06cd7a5da3fe18ad6..4c198ed9cf01d20e70ec5a828e8d02c8dac0dd3a 100644 (file)
@@ -43,10 +43,13 @@ def make(confhash):
        wd = os.getcwd()
        os.chdir(sf(conf.linux_build_folder))
        if conf.kernel_make_output:
-               subprocess.call(conf.build_command, env=utils.get_kernel_env())
+               out = sys.stdout
        else:
-               subprocess.call(conf.build_command, stdout=subprocess.DEVNULL,
-                               env=utils.get_kernel_env())
+               out = subprocess.DEVNULL
+
+       print(conf.build_command)
+       subprocess.call(conf.build_command, stdout=out, env=utils.get_kernel_env())
+
        jobimage = os.path.join(sf(conf.build_folder), confhash + '_linux.img')
        shutil.move(sf(conf.linux_image), jobimage)
        os.chdir(wd)