kernel.bbclass only install image in do_deploy if not installing from packaged staging
PATCH 1/1 kernel.bbclass only install image in do_deploy if not installing from packaged staging
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(-)
classes/kernel.bbclass +3 -1
@@ -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
Signature · 1 line
1.6.4.2
2010/1/28 Frans Meulenbroeks <[email protected]>:
Quoted 25 lines
install -m 0644 ${KERNEL_OUTPUT} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin expands to
install -m 0644arch/arm/boot/uImage.../deploy/glibc/images/beagleboard/uImage-2.6.29-r51-beagleboard.bin but of coursearch/arm/boot/uImagedoes 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(-)classes/kernel.bbclass +3
-1@@ -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 + fipackage_stagefile_shell ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin
Quoted 5 lines
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