]> code.ossystems Code Review - openembedded-core.git/commitdiff
image.bbclass: use ${TARGET_PREFIX}depmod
authorChris Larson <chris_larson@mentor.com>
Mon, 29 Aug 2011 16:26:46 +0000 (09:26 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 30 Aug 2011 21:06:38 +0000 (22:06 +0100)
Currently it uses ${TARGET_SYS}-. This is inconsistent, as the recipe
and kernel bbclass both use the prefix. While there aren't many cases
where the two differ, it is harmless to ensure that we are behaving
consistently.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/image.bbclass

index bf8b73a75f10df873fe7c635787bb1f7a785803c..3cd5e7aae03c9281341b39f03a682db6d5e909e1 100644 (file)
@@ -165,7 +165,7 @@ fakeroot do_rootfs () {
                KERNEL_VERSION=`cat ${STAGING_KERNEL_DIR}/kernel-abiversion`
 
                mkdir -p ${IMAGE_ROOTFS}/lib/modules/$KERNEL_VERSION
-               ${TARGET_SYS}-depmod -a -b ${IMAGE_ROOTFS} -F ${STAGING_KERNEL_DIR}/System.map-$KERNEL_VERSION $KERNEL_VERSION
+               ${TARGET_PREFIX}depmod -a -b ${IMAGE_ROOTFS} -F ${STAGING_KERNEL_DIR}/System.map-$KERNEL_VERSION $KERNEL_VERSION
        fi
 
        ${IMAGE_PREPROCESS_COMMAND}