From ba5cacef79c608429a8eed7cb0bf69a688cc63df Mon Sep 17 00:00:00 2001 From: Duy Dang Date: Sun, 29 Jul 2018 23:50:07 -0400 Subject: rcar-gen3: kernel-module-xtensa-hifi: Use distro features check The improper error occurs when building Kernel module ADSP without its distro feature enabled in local.conf: | ERROR: kernel-module-xtensa-hifi-1.0-r0 do_populate_lic: QA Issue: kernel-module-xtensa-hifi: LIC_FILES_CHKSUM points to an invalid file This commit modifies recipe to use distro_features_check class that provides the proper error: | ERROR: Nothing PROVIDES 'kernel-module-xtensa-hifi' | kernel-module-xtensa-hifi was skipped: missing required distro feature 'adsp' (not in DISTRO_FEATURES) Signed-off-by: Duy Dang Signed-off-by: Takamitsu Honda --- .../recipes-kernel/kernel-module-adsp/kernel-module-xtensa-hifi.bb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'meta-rcar-gen3/recipes-kernel') diff --git a/meta-rcar-gen3/recipes-kernel/kernel-module-adsp/kernel-module-xtensa-hifi.bb b/meta-rcar-gen3/recipes-kernel/kernel-module-adsp/kernel-module-xtensa-hifi.bb index 60c9717..62f10d6 100644 --- a/meta-rcar-gen3/recipes-kernel/kernel-module-adsp/kernel-module-xtensa-hifi.bb +++ b/meta-rcar-gen3/recipes-kernel/kernel-module-adsp/kernel-module-xtensa-hifi.bb @@ -6,12 +6,13 @@ LIC_FILES_CHKSUM = " \ file://MIT-COPYING;md5=f932f6ad0feea4f97b6e8316e172070e \ " -require include/adsp-control.inc -inherit module +inherit module distro_features_check + +REQUIRED_DISTRO_FEATURES = "adsp" FILESEXTRAPATHS_prepend := "${THISDIR}/xtensa-hifi:" -SRC_URI = "${@base_conditional('USE_ADSP', '1', 'file://RCG3AHPDL4101ZDO.tar.gz', '', d)}" +SRC_URI = "file://RCG3AHPDL4101ZDO.tar.gz" S = "${WORKDIR}/RCG3AHPDL4101ZDO" -- cgit 1.2.3-korg