[oe-commits] Richard Purdie : depmodwrapper-cross: Update to use STAGING_KERNEL_BUILDDIR

git at git.openembedded.org git at git.openembedded.org
Wed Jan 21 11:37:51 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: eaea05c88661a88a89fa6b139f7e6b243155d492
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=eaea05c88661a88a89fa6b139f7e6b243155d492

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Sat Jan 17 17:04:35 2015 +0000

depmodwrapper-cross: Update to use STAGING_KERNEL_BUILDDIR

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 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 ec20bf8..7533809 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



More information about the Openembedded-commits mailing list