Patchwork image.bbclass: use ${TARGET_PREFIX}depmod

login
register
mail settings
Submitter Christopher Larson
Date Aug. 29, 2011, 4:26 p.m.
Message ID <1314635206-5831-1-git-send-email-kergoth@gmail.com>
Download mbox | patch
Permalink /patch/10731/
State New, archived
Headers show

Comments

Christopher Larson - Aug. 29, 2011, 4:26 p.m.
From: Chris Larson <chris_larson@mentor.com>

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>
---
 meta/classes/image.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Richard Purdie - Aug. 30, 2011, 9:06 p.m.
On Mon, 2011-08-29 at 09:26 -0700, Christopher Larson wrote:
> From: Chris Larson <chris_larson@mentor.com>
> 
> 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>
> ---
>  meta/classes/image.bbclass |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Merged to master, thanks.

Richard

Patch

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index bf8b73a..3cd5e7a 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -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}