From eaea05c88661a88a89fa6b139f7e6b243155d492 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sat, 17 Jan 2015 17:04:35 +0000 Subject: depmodwrapper-cross: Update to use STAGING_KERNEL_BUILDDIR Signed-off-by: Richard Purdie --- meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb b/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb index ec20bf8d30..7533809f27 100644 --- a/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb +++ b/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb @@ -19,21 +19,21 @@ if [ "\$1" != "-a" -o "\$2" != "-b" ]; then echo "Usage: depmodwrapper -a -b rootfs KERNEL_VERSION" >&2 exit 1 fi -if [ ! -r ${STAGING_KERNEL_DIR}/kernel-abiversion ]; then - echo "Unable to read: ${STAGING_KERNEL_DIR}/kernel-abiversion" >&2 +if [ ! -r ${STAGING_KERNEL_BUILDDIR}/kernel-abiversion ]; then + echo "Unable to read: ${STAGING_KERNEL_BUILDDIR}/kernel-abiversion" >&2 else - kernelabi=\$(cat ${STAGING_KERNEL_DIR}/kernel-abiversion) + kernelabi=\$(cat ${STAGING_KERNEL_BUILDDIR}/kernel-abiversion) if [ "\$kernelabi" != "\$4" ]; then echo "Error: Kernel version \$4 does not match kernel-abiversion (\$kernelabi)" >&2 exit 1 fi fi -if [ ! -r ${STAGING_KERNEL_DIR}/System.map-\$4 ]; then - echo "Unable to read: ${STAGING_KERNEL_DIR}/System.map-\$4" >&2 +if [ ! -r ${STAGING_KERNEL_BUILDDIR}/System.map-\$4 ]; then + echo "Unable to read: ${STAGING_KERNEL_BUILDDIR}/System.map-\$4" >&2 exec env depmod "\$1" "\$2" "\$3" "\$4" else - exec env depmod "\$1" "\$2" "\$3" -F "${STAGING_KERNEL_DIR}/System.map-\$4" "\$4" + exec env depmod "\$1" "\$2" "\$3" -F "${STAGING_KERNEL_BUILDDIR}/System.map-\$4" "\$4" fi EOF chmod +x ${D}${bindir_crossscripts}/depmodwrapper -- cgit 1.2.3-korg