From bfd1a5eee3c0b5e53e1b26b068e8afa81a7ad85d Mon Sep 17 00:00:00 2001 From: Thao Nguyen Date: Mon, 30 Oct 2017 16:18:04 +0700 Subject: rcar-gen3: kernel-module-vspm: Fix issue of eSDK In eSDK context, this checking will cause following error since KERNELSRC does not exist. |WARNING: Setscene task (/ssd/FS_YP2.4/build_mmp/eSDK_YP2.4/layers/meta-renesas/meta-rcar-gen3/recipes-kernel/kernel-module-vspm/kernel-module-vspm.bb:do|_populate_sysroot_setscene) failed with exit code '1' - real task will be run instead |ERROR: Task kernel-module-vspm.do_populate_sysroot_setscene failed This patch adds condition to check for the existence of KERNELSRC just when not in context of eSDK. Signed-off-by: Thao Nguyen Signed-off-by: Thuy Tran Signed-off-by: Takamitsu Honda --- .../recipes-kernel/kernel-module-vspm/kernel-module-vspm.bb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'meta-rcar-gen3/recipes-kernel/kernel-module-vspm') diff --git a/meta-rcar-gen3/recipes-kernel/kernel-module-vspm/kernel-module-vspm.bb b/meta-rcar-gen3/recipes-kernel/kernel-module-vspm/kernel-module-vspm.bb index 627dea1..996a0e4 100644 --- a/meta-rcar-gen3/recipes-kernel/kernel-module-vspm/kernel-module-vspm.bb +++ b/meta-rcar-gen3/recipes-kernel/kernel-module-vspm/kernel-module-vspm.bb @@ -66,8 +66,12 @@ vspm_sstate_check_func() { # This module installs shared header files in ${KERNELSRC}/include by # sstate cache. # Those files will be deleted by unpack task of kernel. - if [ ! -d "${KERNELSRC}/include" ]; then - exit 1 + if [ ${WITHIN_EXT_SDK} -eq 1 ]; then + : + else + if [ ! -d "${KERNELSRC}/include" ]; then + exit 1 + fi fi } -- cgit 1.2.3-korg