summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2017-08-27 12:06:22 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-10-03 14:35:32 +0200
commitcae8da64d383252ab1911accb28548d16326849c (patch)
tree9081d128bf051f06d947d54ce58fb046e10cca8b
parentba48e59f4d31c136b3e822e2fd449153605c7fbf (diff)
classes/image_type_tezi.bbclass: fix for dtb filenames containing multiple dots
In IMAGE_CMD_teziimg(), if a dtb file has more than one dot the current logic fails. e.g. device.tree.dtb will be truncated at the first dot to device. Fix by removing awk in favour of letting basename also remove the .dtb extension. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
-rw-r--r--classes/image_type_tezi.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/image_type_tezi.bbclass b/classes/image_type_tezi.bbclass
index 87964ad..14ea7c4 100644
--- a/classes/image_type_tezi.bbclass
+++ b/classes/image_type_tezi.bbclass
@@ -189,7 +189,7 @@ IMAGE_CMD_teziimg () {
# Create list of device tree files
if test -n "${KERNEL_DEVICETREE}"; then
for DTS_FILE in ${KERNEL_DEVICETREE}; do
- DTS_BASE_NAME=`basename ${DTS_FILE} | awk -F "." '{print $1}'`
+ DTS_BASE_NAME=`basename ${DTS_FILE} .dtb`
if [ -e "${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${DTS_BASE_NAME}.dtb" ]; then
KERNEL_DEVICETREE_FILES="${KERNEL_DEVICETREE_FILES} ${KERNEL_IMAGETYPE}-${DTS_BASE_NAME}.dtb"
else