From patchwork Thu Mar 30 00:57:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 96214 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp11468qgd; Wed, 29 Mar 2017 18:11:50 -0700 (PDT) X-Received: by 10.98.42.200 with SMTP id q191mr3294547pfq.73.1490836310024; Wed, 29 Mar 2017 18:11:50 -0700 (PDT) Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id r78si504628pfg.71.2017.03.29.18.11.49; Wed, 29 Mar 2017 18:11:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 48D7277C20; Thu, 30 Mar 2017 01:11:13 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org X-Greylist: delayed 596 seconds by postgrey-1.34 at layers.openembedded.org; Thu, 30 Mar 2017 01:08:58 UTC Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by mail.openembedded.org (Postfix) with ESMTP id 20EA560017 for ; Thu, 30 Mar 2017 01:08:58 +0000 (UTC) Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 30 Mar 2017 09:59:03 +0900 Received: from mail.mfilter.local (unknown [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 65574180B90; Thu, 30 Mar 2017 09:59:02 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Thu, 30 Mar 2017 09:59:02 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 0CB6F1A17B5; Thu, 30 Mar 2017 09:59:02 +0900 (JST) From: Kunihiko Hayashi To: openembedded-core@lists.openembedded.org Date: Thu, 30 Mar 2017 09:57:23 +0900 Message-Id: <1490835443-23652-1-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 Cc: Jassi Brar , masami.hiramatsu@linaro.org Subject: [OE-core] [PATCH] kernel.bbclass: Use the correct path of kernel build image file except for vmlinux 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Use the correct path of kernel build image file except for vmlinux when producing gzipped kernel image. The kernel_do_compile() function produces the gzipped kernel image from the original kernel image when an image types included in KERNEL_IMAGETYPES has a suffix .gz. Although the original kernel image file is usually built on the directory arch/${ARCH}/boot/ except for vmlinux, the name of image types included in KERNEL_IMAGETYPES doesn't have a path of 'arch/${ARCH}/boot', then bitbake fails to produce the gzipped kernel image which type has a suffix .gz. This fixes above failure by using 'arch/${ARCH}/boot/' prefix for image path unless ${typeformake} is "vmlinux". Signed-off-by: Kunihiko Hayashi Signed-off-by: Jassi Brar --- meta/classes/kernel.bbclass | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.7.4 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 244087a..5e26965 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -268,7 +268,11 @@ kernel_do_compile() { for type in ${KERNEL_IMAGETYPES} ; do if test "${typeformake}.gz" = "${type}"; then mkdir -p "${KERNEL_OUTPUT_DIR}" - gzip -9c < "${typeformake}" > "${KERNEL_OUTPUT_DIR}/${type}" + if test x${typeformake} = x"vmlinux"; then + gzip -9c < "${typeformake}" > "${KERNEL_OUTPUT_DIR}/${type}" + else + gzip -9c < "arch/${ARCH}/boot/${typeformake}" > "${KERNEL_OUTPUT_DIR}/${type}" + fi break; fi done