summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2017-05-19 16:18:46 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-05-25 23:59:32 +0100
commitab0747e7c6d93e0143cf059241ad914cf055f362 (patch)
treec6e68a92767a53376e0bd4232082d5cd9e9662b0 /scripts
parent989bbb98037f9e6e6295f70fe5efdcadb21ee0d0 (diff)
downloadpoky-ab0747e7c6d93e0143cf059241ad914cf055f362.tar.gz
devtool/standard.py: Enable perf to be buildable
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] (From OE-Core rev: 86c793595e560e7bc52e3cd2a2752746e6adcb76) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/devtool/standard.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 5ff1e230fd..2ecef99cdb 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -842,7 +842,10 @@ def modify(args, config, basepath, workspace):
842 842
843 if bb.data.inherits_class('kernel', rd): 843 if bb.data.inherits_class('kernel', rd):
844 f.write('SRCTREECOVEREDTASKS = "do_validate_branches do_kernel_checkout ' 844 f.write('SRCTREECOVEREDTASKS = "do_validate_branches do_kernel_checkout '
845 'do_fetch do_unpack do_patch do_kernel_configme do_kernel_configcheck"\n') 845 'do_fetch do_unpack do_kernel_configme do_kernel_configcheck"\n')
846 f.write('\ndo_patch() {\n'
847 ' :\n'
848 '}\n')
846 f.write('\ndo_configure_append() {\n' 849 f.write('\ndo_configure_append() {\n'
847 ' cp ${B}/.config ${S}/.config.baseline\n' 850 ' cp ${B}/.config ${S}/.config.baseline\n'
848 ' ln -sfT ${B}/.config ${S}/.config.new\n' 851 ' ln -sfT ${B}/.config ${S}/.config.new\n'