[oe-commits] [openembedded-core] 10/50: kernel-fitimage: sanitize dtb section name (unbreak MIPS)

git at git.openembedded.org git at git.openembedded.org
Thu Sep 21 22:37:01 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit dfa897594de6de638aee77fd30ef0a5c6216dab3
Author: André Draszik <adraszik at tycoint.com>
AuthorDate: Wed Sep 20 10:41:53 2017 +0100

    kernel-fitimage: sanitize dtb section name (unbreak MIPS)
    
    We can't build fitImages for MIPS any more:
    | Error: fit-image.its:21.27-28 syntax error
    | FATAL ERROR: Unable to parse input tree
    | uboot-mkimage: Can't read arch/mips/boot/fitImage.tmp: Invalid argument
    
    Since commit cd2ed7f80b555add07795cc0cbaee866e6c193a3
    ("kernel-fitimage: dtb sections named by their filenames
    and one config section for each dtb"), commit
    1ec405ef5df82884c8997878bbe6c66d924b5127 in yocto, dtb
    sections are named by the DTB filename, but the filename
    can legally be in a subdirectory below
    arch/$arch/boot/dts/, and on MIPS all DTBs are actually
    in a subdirectory.
    
    If so, mkimage fails with the above error message.
    
    Unbreak this by replacing the offending character
    (directory separator /)
    
    Signed-off-by: André Draszik <adraszik at tycoint.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/kernel-fitimage.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass
index 2630b47..6f1b766 100644
--- a/meta/classes/kernel-fitimage.bbclass
+++ b/meta/classes/kernel-fitimage.bbclass
@@ -351,6 +351,7 @@ fitimage_assemble() {
 				DTB_PATH="arch/${ARCH}/boot/${DTB}"
 			fi
 
+			DTB=$(echo "${DTB}" | tr '/' '_')
 			DTBS="${DTBS} ${DTB}"
 			fitimage_emit_section_dtb ${1} ${DTB} ${DTB_PATH}
 		done

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list