aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhang Nguyen <khang.nguyen.xv@rvc.renesas.com>2018-02-23 14:34:26 +0700
committerKhang Nguyen <khang.nguyen.xv@rvc.renesas.com>2018-03-22 13:36:54 +0700
commit4fcaa8e59e35cecb3d80a9bdaa9f0cd8c164fb0c (patch)
tree2f9c5a422daec153f8c9565c87fc2e916653003c
parent2224b701ccac6eddc86470a04faa301e6bbc72de (diff)
rcar-gen3: dtv-dvd-control: Add function to prevent build DTV with E3
This commit adds a python function to prevent build DTV feature with E3 due to E3 does not support SSP. The following error will occur when trying enable DTV for E3: | E3 (SoC: r8a77990) does not support SSP, please disable DTV feature in your local configuration Signed-off-by: Khang Nguyen <khang.nguyen.xv@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
-rw-r--r--meta-rcar-gen3/include/dtv-dvd-control.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta-rcar-gen3/include/dtv-dvd-control.inc b/meta-rcar-gen3/include/dtv-dvd-control.inc
index 9029dfd..1a79c07 100644
--- a/meta-rcar-gen3/include/dtv-dvd-control.inc
+++ b/meta-rcar-gen3/include/dtv-dvd-control.inc
@@ -3,3 +3,14 @@ USE_DTV = "${@'1' if 'dtv' in '${DISTRO_FEATURES}' else '0'}"
# USE_DVD for DVD Core-Middleware for Linux
USE_DVD = "${@'1' if 'dvd' in '${DISTRO_FEATURES}' else '0'}"
+
+# This function to prevent build DTV feature with E3
+python do_dtv_checking () {
+ soc = d.getVar('SOC_FAMILY')
+ soc = soc.split(':')[1]
+ use_dtv = d.getVar('USE_DTV')
+ if use_dtv == "1" and soc == "r8a77990":
+ bb.fatal("E3 (SoC: r8a77990) does not support SSP, please disable DTV feature in your local configuration")
+}
+
+addtask dtv_checking before do_configure after do_patch