Received: from comal.ext.ti.com ([198.47.26.152]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1UHeX8-0004ha-N0 for openembedded-devel@lists.openembedded.org; Mon, 18 Mar 2013 19:11:52 +0100 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id r2IHoXLN009226 for ; Mon, 18 Mar 2013 12:50:34 -0500 Received: from DBDE70.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id r2IHoWD2000730 for ; Mon, 18 Mar 2013 23:20:33 +0530 (IST) Received: from dbdp32.itg.ti.com (172.24.170.251) by dbde70.ent.ti.com (172.24.170.148) with Microsoft SMTP Server id 14.1.323.3; Mon, 18 Mar 2013 23:20:32 +0530 Received: from localhost.localdomain (dbdp20.itg.ti.com [172.24.170.38]) by dbdp32.itg.ti.com (8.13.8/8.13.8) with ESMTP id r2IHoUwq020360; Mon, 18 Mar 2013 23:20:31 +0530 From: Chase Maupin To: Date: Mon, 18 Mar 2013 12:50:28 -0500 Message-ID: <1363629028-6920-1-git-send-email-Chase.Maupin@ti.com> X-Mailer: git-send-email 1.7.0.4 MIME-Version: 1.0 Cc: Chase Maupin Subject: [meta-oe][PATCH][for-danny] kernel bbclass: return to original directory in do_deploy X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Mar 2013 18:11:52 -0000 Content-Type: text/plain * During the base kernel_do_deploy function the directory is changed to DEPLOYDIR in order to do some cleanup and symlinking. However, the directory is not changed back to the original starting directory ${S} at the end. For append functions this means that the starting directory is not ${S} as expected but instead ${DEPLOYDIR}. For functions like the do_deploy_append in recipes-kernel/linux/linux-dtb.inc there is an assumption that you are still in the source directory and not the DEPLOYDIR. Without this change the .dtb files are not copied because the check for the existence of ${DTS_FILE} which is a relative path from the ${S} directory fails. This means that the .dtb files are not copied into the deploy directory and subsequently the deploy/images directory. In the log.do_deploy file you will see lines like: Warning: arch/arm/boot/dts/xxxxx.dts is not available! This fix has also been picked up in the oe-core kernel.bbclass: http://cgit.openembedded.org/openembedded-core/commit/?id=fd5d80ab1a405cb4ef94f2cde25f8c251da490f0 Signed-off-by: Chase Maupin --- meta-oe/classes/kernel.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/meta-oe/classes/kernel.bbclass b/meta-oe/classes/kernel.bbclass index 25c5f64..a0f67f9 100644 --- a/meta-oe/classes/kernel.bbclass +++ b/meta-oe/classes/kernel.bbclass @@ -546,6 +546,7 @@ kernel_do_deploy() { ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${KERNEL_IMAGETYPE} cp ${COREBASE}/meta/files/deploydir_readme.txt ${DEPLOYDIR}/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt + cd - } do_deploy[dirs] = "${DEPLOYDIR} ${B}" -- 1.7.0.4