Skip to contentSkip to conversation

kernel-fitimage: drop dir part from DTB name, as u-boot setup w/o it

PATCH New Denys Dmytriyenko 1 participant 1 message May 20, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel-fitimage: drop dir part from DTB name, as u-boot setup w/o it

---
 meta-arago-distro/classes/kernel-fitimage.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-arago-distro/classes/kernel-fitimage.bbclass +2 -2
index 34b61d00..e58652bc 100644
@@ -342,7 +342,7 @@ fitimage_emit_section_config() {
 
 	dtbcount=1
 	for DTB in ${KERNEL_DEVICETREE}; do
-		DTB=$(echo "${DTB}" | tr '/' '_')
+		DTB=$(basename "${DTB}")
 		if [ "x${FITIMAGE_CONF_BY_NAME}" = "x1" ] ; then
 			conf_name="${DTB}"
 		else
@@ -514,7 +514,7 @@ fitimage_assemble() {
 			if [ ! -e "${DTB_PATH}" ]; then
 				DTB_PATH="arch/${ARCH}/boot/${DTB}"
 			fi
-			DTB=$(echo "${DTB}" | tr '/' '_')
+			DTB=$(basename "${DTB}")
 			fitimage_ti_secure ${DTB_PATH} ${DTB_PATH}.sec
 			if [ "x${FITIMAGE_DTB_BY_NAME}" = "x1" ] ; then
 				fitimage_emit_section_dtb ${1} ${DTB} ${DTB_PATH}.sec
Signature · 1 line
2.17.1