summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlrich Ölmann <u.oelmann@pengutronix.de>2018-04-20 13:28:54 +0200
committerEnrico Jorns <e.joerns@tu-bs.de>2018-05-02 11:59:13 +0200
commitb1547d866075d60d2d861002f62b659c19838718 (patch)
tree936c2f81f1886581e63337b9ecf867e1c7a80cfc
parentaac24a7f3a8cca4b77787fd0563e3d76a127bbba (diff)
downloadmeta-ptx-b1547d866075d60d2d861002f62b659c19838718.tar.gz
meta-ptx-b1547d866075d60d2d861002f62b659c19838718.tar.xz
classes/bootspec: use regular file instead of symlink for 'devicetree' entry
Symlinks may add problems when trying to use them for booting. The underlying file system might not correctly support them or they may point to an invalid location due to mount path prefixes. This commit resembles for the devicetree what bf19a37d90c7 ("classes/bootspec: use kernel file instead of symlink for 'linux' entry") did for the kernel as oe-core changed symlink creation in [1]. [1] https://github.com/openembedded/openembedded-core/commit/10a1b293191268e6792ac8e27bd6427f1974c7ce#diff-ac74dcff302d46159471739bd7a4b3fc Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
-rw-r--r--classes/bootspec.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/bootspec.bbclass b/classes/bootspec.bbclass
index a3ebb8b..bdd6091 100644
--- a/classes/bootspec.bbclass
+++ b/classes/bootspec.bbclass
@@ -52,7 +52,7 @@ python create_bootspec() {
bootspecfile.write('options %s\n' % d.expand('${BOOTSPEC_OPTIONS}'))
bootspecfile.write(d.getVar('BOOTSPEC_EXTRALINE', True).replace(r'\n', '\n'))
bootspecfile.write('linux %s\n' % d.expand('/boot/${KERNEL_IMAGETYPE}-${KERNEL_VERSION}'))
- bootspecfile.write('devicetree %s\n' % d.expand('/boot/devicetree-${KERNEL_IMAGETYPE}-' + x + '.dtb\n'))
+ bootspecfile.write('devicetree %s\n' % d.expand('/boot/' + x + '.dtb\n'))
bootspecfile.close()
}