summaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3
diff options
context:
space:
mode:
authorDuy Dang <duy.dang.yw@rvc.renesas.com>2019-01-24 11:27:56 +0700
committerDuy Dang <duy.dang.yw@renesas.com>2019-04-02 09:31:34 +0700
commit20fcc94a8d05eda80250f27e87aaa3cfc3275300 (patch)
tree97488ae760f1506507ad7c091ddd31c6fd47a8a4 /meta-rcar-gen3
parent5df4c994040171bd7bf13c625b1fef295d1e9c9c (diff)
rcar-gen3: omx-module: Improve vp9dec_lib checking functionRenesas-Yocto-v3.19.0
This commit modifies the vp9dec_lib checking function to disable vp9dec_lib automatically when not building for M3N, E3 and also warns the user to build it on M3 v3.0 only. This also allows to run the checking at the end of recipe parsing, not have to wait until do_patch finished. Change-Id: I6329c223a42d10a041407a349bac77927b5f3614 Signed-off-by: Duy Dang <duy.dang.yw@renesas.com> Signed-off-by: Khang Nguyen <khang.nguyen.xw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
Diffstat (limited to 'meta-rcar-gen3')
-rw-r--r--meta-rcar-gen3/include/omx-control.inc11
1 files changed, 7 insertions, 4 deletions
diff --git a/meta-rcar-gen3/include/omx-control.inc b/meta-rcar-gen3/include/omx-control.inc
index 7723693..69093e8 100644
--- a/meta-rcar-gen3/include/omx-control.inc
+++ b/meta-rcar-gen3/include/omx-control.inc
@@ -78,17 +78,20 @@ USE_VP8E_OMX = "${@'1' if 'vp8enc_lib' in '${DISTRO_FEATURES}' else '0'}"
USE_VP9D_OMX = "${@'1' if 'vp9dec_lib' in '${DISTRO_FEATURES}' else '0'}"
# This function is to make sure vp9dec_lib only build with M3N or E3
-python do_vp9_checking() {
+# and warns user to build vp9dec_lib for M3 v3.0 only
+python () {
soc = d.getVar('SOC_FAMILY')
soc = soc.split(':')[1]
use_vp9d = d.getVar('USE_VP9D_OMX')
if use_vp9d == "1":
if soc != 'r8a77965' and soc != 'r8a77990':
- bb.fatal("vp9dec_lib only supports M3N (SoC: r8a77965), E3 (SoC: r8a77990), please disable this feature in your local configuration")
+ if soc == 'r8a7796':
+ bb.warn("vp9dec_lib supports M3 v3.0 only, it does not work on other M3 versions.")
+ else:
+ bb.warn("vp9dec_lib only supports M3N (SoC: r8a77965), E3 (SoC: r8a77990), M3 v3.0 (SoC: r8a7796). Disabling.")
+ d.setVar('USE_VP9D_OMX', '0')
}
-addtask vp9_checking before do_configure after do_patch
-
# OMX Video Decoder Flag list
LIST_OMX_VIDEO_DEC_FLAG = " \
${USE_H263D_OMX} \