diff options
author | Slater, Joseph <joe.slater@windriver.com> | 2019-09-10 11:00:08 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-09-10 11:08:47 -0700 |
commit | b518e0069250eb7ea3aa56f5026b489a93e7dd69 (patch) | |
tree | 119730b789156e9130c2c1d41e5fdba428231f69 /meta-networking | |
parent | 0749b8fccc97f2ccd3516b9e06016b6deea130e0 (diff) | |
download | meta-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.bb | 15 |
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 () { | |||
85 | do_compile_ptest () { | 85 | do_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 | |||
100 | ack_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 |