From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by mail.openembedded.org (Postfix) with ESMTP id ED1CE7C409 for ; Tue, 12 Feb 2019 09:57:54 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com ([147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id x1C9vtli008294 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Tue, 12 Feb 2019 01:57:55 -0800 (PST) Received: from pek-lpg-core1.wrs.com (128.224.156.132) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.435.0; Tue, 12 Feb 2019 01:57:55 -0800 From: Robert Yang To: Date: Tue, 12 Feb 2019 18:16:41 +0800 Message-ID: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 Subject: [PATCH 1/2] yocto-check-layer-wrapper: Fix path for oe-init-build-env X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Feb 2019 09:57:55 -0000 Content-Type: text/plain We only could run it in top of oe-core dir since it assumed oe-init-build-env was in cwd, this patch fixes the problem. [YOCTO #13148] Signed-off-by: Robert Yang --- scripts/yocto-check-layer-wrapper | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/yocto-check-layer-wrapper b/scripts/yocto-check-layer-wrapper index bbf6ee1..b5df9ce 100755 --- a/scripts/yocto-check-layer-wrapper +++ b/scripts/yocto-check-layer-wrapper @@ -30,7 +30,9 @@ cd $base_dir build_dir=$(mktemp -p $base_dir -d -t build-XXXX) -source oe-init-build-env $build_dir +this_dir=$(dirname $(readlink -f $0)) + +source $this_dir/../oe-init-build-env $build_dir if [[ $output_log != '' ]]; then yocto-check-layer -o "$output_log" "$*" else -- 2.7.4