Add cloc to hosttools and use patched sources 38/23438/2
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Thu, 19 Dec 2019 23:51:48 +0000 (00:51 +0100)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Fri, 20 Dec 2019 18:03:37 +0000 (18:03 +0000)
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>
meta-agl-profile-core/classes/cloc.bbclass

index 53713bf..9b73704 100644 (file)
@@ -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