summaryrefslogtreecommitdiffstats
path: root/meta-networking
diff options
context:
space:
mode:
authorSlater, Joseph <joe.slater@windriver.com>2019-09-10 11:00:08 -0700
committerKhem Raj <raj.khem@gmail.com>2019-09-10 11:08:47 -0700
commitb518e0069250eb7ea3aa56f5026b489a93e7dd69 (patch)
tree119730b789156e9130c2c1d41e5fdba428231f69 /meta-networking
parent0749b8fccc97f2ccd3516b9e06016b6deea130e0 (diff)
downloadmeta-openembedded-b518e0069250eb7ea3aa56f5026b489a93e7dd69.tar.gz
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>
Diffstat (limited to 'meta-networking')
-rw-r--r--meta-networking/recipes-daemons/openhpi/openhpi_3.8.0.bb15
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/openhpi/openhpi_3.8.0.bb b/meta-networking/recipes-daemons/openhpi/openhpi_3.8.0.bb
index e3a0c2eb6..b47d59e2d 100644
--- a/meta-networking/recipes-daemons/openhpi/openhpi_3.8.0.bb
+++ b/meta-networking/recipes-daemons/openhpi/openhpi_3.8.0.bb
@@ -85,6 +85,21 @@ do_install_append () {
85do_compile_ptest () { 85do_compile_ptest () {
86 for x in `find ${B} -name Makefile -exec grep -l buildtest-TESTS {} \;`; do 86 for x in `find ${B} -name Makefile -exec grep -l buildtest-TESTS {} \;`; do
87 dir=`dirname ${x}` 87 dir=`dirname ${x}`
88 case $dir in
89 *cpp/t) ;;
90 *snmp_bc/t) if ${@bb.utils.contains('PACKAGECONFIG','snmp-bc','true','false',d)}
91 then
92 oe_runmake -C ${dir} buildtest-TESTS
93 fi
94 ;;
95 *) oe_runmake -C ${dir} buildtest-TESTS ;;
96 esac
97 done
98}
99
100ack_do_compile_ptest () {
101 for x in `find ${B} -name Makefile -exec grep -l buildtest-TESTS {} \;`; do
102 dir=`dirname ${x}`
88 upper=`dirname ${dir}` 103 upper=`dirname ${dir}`
89 if [ `basename ${upper}` != "cpp" ]; then 104 if [ `basename ${upper}` != "cpp" ]; then
90 oe_runmake -C ${dir} buildtest-TESTS 105 oe_runmake -C ${dir} buildtest-TESTS