]> code.ossystems Code Review - openembedded-core.git/commitdiff
devtool/standard.py: Enable perf to be buildable
authorSaul Wold <sgw@linux.intel.com>
Fri, 19 May 2017 23:18:46 +0000 (16:18 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 May 2017 22:35:51 +0000 (23:35 +0100)
Perf is a tool build from the kernel source, which is normally available
in /work-shared/..., but when devtool is used to modify the kernel
source code, perf is not buildable since it gets an error about being unable
to add a depends to a non-exisit task do_patch.

This patch removes do_patch from the SRCTREECOVEREDTASKS and creates an empty
do_patch task to enable the VarFlags code to have someplace to attach depends
information to.

[YOCT #11120]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/devtool/standard.py

index 5ff1e230fddd9d06a8fcc0db14940f45b1d62152..2ecef99cdb4af578c58467e82536080ffc08293e 100644 (file)
@@ -842,7 +842,10 @@ def modify(args, config, basepath, workspace):
 
             if bb.data.inherits_class('kernel', rd):
                 f.write('SRCTREECOVEREDTASKS = "do_validate_branches do_kernel_checkout '
-                        'do_fetch do_unpack do_patch do_kernel_configme do_kernel_configcheck"\n')
+                        'do_fetch do_unpack do_kernel_configme do_kernel_configcheck"\n')
+                f.write('\ndo_patch() {\n'
+                        '    :\n'
+                        '}\n')
                 f.write('\ndo_configure_append() {\n'
                         '    cp ${B}/.config ${S}/.config.baseline\n'
                         '    ln -sfT ${B}/.config ${S}/.config.new\n'