Skip to content
Snippets Groups Projects

Change abicheck to be a task, not postfunc.

Merged Pavel Zhukov requested to merge landgraf/meta-binaryaudit:abicheck_task into oniro/kirkstone
All threads resolved!
Files
3
+ 14
13
@@ -3,11 +3,20 @@ inherit binaryaudit
BUILDHISTORY_FEATURES += "abicheck"
DEPENDS_append_class-target = " libabigail-native"
IMG_DIR="${WORKDIR}/image"
python binary_audit_gather_abixml() {
python do_abicheck() {
if "class-target" == d.getVar("CLASSOVERRIDE"):
binary_audit_gather_abixml(d)
binary_audit_abixml_compare_to_ref(d)
}
addtask abicheck after do_install
do_abicheck[nostamp] = "1"
do_abicheck[depends] += " libabigail-native:do_populate_sysroot"
def binary_audit_gather_abixml(d):
import glob, os, time
from binaryaudit import abicheck
@@ -47,13 +56,10 @@ python binary_audit_gather_abixml() {
with open(duration_fl, "w") as f:
f.write(u"{}".format(t1 - t0))
f.close()
}
# Target binaries are the only interest.
do_install[postfuncs] += "${@ "binary_audit_gather_abixml" if ("class-target" == d.getVar("CLASSOVERRIDE")) else "" }"
do_install[vardepsexclude] += "${@ "binary_audit_gather_abixml" if ("class-target" == d.getVar("CLASSOVERRIDE")) else "" }"
python binary_audit_abixml_compare_to_ref() {
def binary_audit_abixml_compare_to_ref(d):
import glob, os, time
from binaryaudit import util
from binaryaudit import abicheck
@@ -158,8 +164,3 @@ python binary_audit_abixml_compare_to_ref() {
with open(duration_fl, "w") as f:
f.write(u"{}".format(t1 - t0))
f.close()
}
# Target binaries are the only interest.
do_install[postfuncs] += "${@ "binary_audit_abixml_compare_to_ref" if ("class-target" == d.getVar("CLASSOVERRIDE")) else "" }"
do_install[vardepsexclude] += "${@ "binary_audit_abixml_compare_to_ref" if ("class-target" == d.getVar("CLASSOVERRIDE")) else "" }"
Loading