Skip to contentSkip to conversation

image.bbclass: use ${TARGET_PREFIX}depmod

PATCH Applied Christopher Larson 2 participants 2 messages Aug 29, 2011 – Aug 30, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 image.bbclass: use ${TARGET_PREFIX}depmod

From: Chris Larson <[email protected]>

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.

---
 meta/classes/image.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta/classes/image.bbclass +1 -1
index bf8b73a..3cd5e7a 100644
@@ -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}
Signature · 1 line
1.7.3.2.430.g208247
#1 lore raw
Quoted 11 lines · Christopher Larson

From: Chris Larson <[email protected]>

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.

---
 meta/classes/image.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Merged to master, thanks.

Richard