aboutsummaryrefslogtreecommitdiffstats
path: root/meta-agl-profile-core
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2019-12-20 00:51:48 +0100
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-12-20 18:03:37 +0000
commitcd0ce95f466f79b35f02464f3eabff7bfd7d087e (patch)
tree73fe6a38200861444e9e64668cc95a1ed414945b /meta-agl-profile-core
parent973295da1db9943e9fc288b6269d106320edd403 (diff)
Add cloc to hosttools and use patched sources
to use the cloc bbclass, cloc needs to be installed on the host. Thus add it to HOSTTOOLS and also apply all patches. Change-Id: Ifd9a355d2d0dc75f55b683e9d7f398a8f46bae16 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'meta-agl-profile-core')
-rw-r--r--meta-agl-profile-core/classes/cloc.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta-agl-profile-core/classes/cloc.bbclass b/meta-agl-profile-core/classes/cloc.bbclass
index 53713bfc3..9b73704e8 100644
--- a/meta-agl-profile-core/classes/cloc.bbclass
+++ b/meta-agl-profile-core/classes/cloc.bbclass
@@ -5,6 +5,10 @@
# summary with
# cloc --sum-reports `find . -name "*clocreport" | grep -v "\-native" ` --out summary.report
+# cloc needs to be installed on the host
+# FIXME: create a cloc-native
+HOSTTOOLS += "cloc"
+
CLOC_DIRECTORY ??= "${DEPLOY_DIR}/cloc/"
CLOCSTATEDIR = "${WORKDIR}/cloc-destdir/"
@@ -24,6 +28,6 @@ python do_cloc() {
}
-addtask cloc before do_configure after do_unpack
+addtask cloc before do_configure after do_patch
EXPORT_FUNCTIONS do_cloc