diff options
-rw-r--r-- | meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb b/meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb index f8498c4c88..cf72d9ca7f 100644 --- a/meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb +++ b/meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb | |||
@@ -22,10 +22,13 @@ S = "${WORKDIR}/git" | |||
22 | 22 | ||
23 | inherit autotools-brokensep pkgconfig ptest | 23 | inherit autotools-brokensep pkgconfig ptest |
24 | 24 | ||
25 | PACKAGECONFIG ??= "" | ||
26 | PACKAGECONFIG[python] = ",," | ||
27 | |||
25 | EXTRA_OECONF += "--with-protoc=echo" | 28 | EXTRA_OECONF += "--with-protoc=echo" |
26 | 29 | ||
27 | TEST_SRC_DIR = "examples" | 30 | TEST_SRC_DIR = "examples" |
28 | LANG_SUPPORT = "cpp python" | 31 | LANG_SUPPORT = "cpp ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python', '', d)}" |
29 | 32 | ||
30 | do_compile_ptest() { | 33 | do_compile_ptest() { |
31 | # Modify makefile to use the cross-compiler | 34 | # Modify makefile to use the cross-compiler |
@@ -78,7 +81,7 @@ FILES_${PN}-lite = "${libdir}/libprotobuf-lite${SOLIBS}" | |||
78 | 81 | ||
79 | RDEPENDS_${PN}-compiler = "${PN}" | 82 | RDEPENDS_${PN}-compiler = "${PN}" |
80 | RDEPENDS_${PN}-dev += "${PN}-compiler" | 83 | RDEPENDS_${PN}-dev += "${PN}-compiler" |
81 | RDEPENDS_${PN}-ptest = "bash python-protobuf" | 84 | RDEPENDS_${PN}-ptest = "bash ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python-protobuf', '', d)}" |
82 | 85 | ||
83 | MIPS_INSTRUCTION_SET = "mips" | 86 | MIPS_INSTRUCTION_SET = "mips" |
84 | 87 | ||