openhpi: control snmp-bc ptest generation

Do not try to compile ptests for snmp-bc if it is not in PACKGECONFIG.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Slater, Joseph 2019-09-10 11:00:08 -07:00 committed by Khem Raj
parent 0749b8fccc
commit b518e00692

View File

@ -83,6 +83,21 @@ do_install_append () {
}
do_compile_ptest () {
for x in `find ${B} -name Makefile -exec grep -l buildtest-TESTS {} \;`; do
dir=`dirname ${x}`
case $dir in
*cpp/t) ;;
*snmp_bc/t) if ${@bb.utils.contains('PACKAGECONFIG','snmp-bc','true','false',d)}
then
oe_runmake -C ${dir} buildtest-TESTS
fi
;;
*) oe_runmake -C ${dir} buildtest-TESTS ;;
esac
done
}
ack_do_compile_ptest () {
for x in `find ${B} -name Makefile -exec grep -l buildtest-TESTS {} \;`; do
dir=`dirname ${x}`
upper=`dirname ${dir}`