[oe] [PATCH] kernel.bbclass only install image in do_deploy if not installing from packaged staging
Frans Meulenbroeks
fransmeulenbroeks at gmail.com
Thu Jan 28 22:16:15 UTC 2010
2010/1/28 Frans Meulenbroeks <fransmeulenbroeks at gmail.com>:
> install -m 0644 ${KERNEL_OUTPUT} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin
> expands to
> install -m 0644 arch/arm/boot/uImage .../deploy/glibc/images/beagleboard/uImage-2.6.29-r51-beagleboard.bin
> but of course arch/arm/boot/uImage does not exist since we are using packaged staging so we get
> the error:
> install: cannot stat `arch/arm/boot/uImage': No such file or directory
> This patch only installs if not using packaged staging
> ---
> classes/kernel.bbclass | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
> index 53ea252..fa48a43 100644
> --- a/classes/kernel.bbclass
> +++ b/classes/kernel.bbclass
> @@ -537,7 +537,9 @@ MODULES_IMAGE_BASE_NAME ?= modules-${PV}-${PR}-${MACHINE}
>
> do_deploy() {
> install -d ${DEPLOY_DIR_IMAGE}
> - install -m 0644 ${KERNEL_OUTPUT} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin
> + if [ "$PSTAGING_ACTIVE" = "0" ]; then
> + install -m 0644 ${KERNEL_OUTPUT} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin
> + fi
> package_stagefile_shell ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin
>
> if [ -d "${PKGD}/lib" ]; then
> --
> 1.6.4.2
>
>
This patch supersedes the first one, which had junk added.
Kudo's to the people in #oe who helped me getting this into a proper submission.
Frans
More information about the Openembedded-devel
mailing list