summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Haigh <jonathan.haigh@arm.com>2018-07-17 15:23:13 +0100
committerAndrei Gherzan <andrei@gherzan.com>2018-07-20 10:50:10 +0100
commitc7999e8c2f04385f34877aa9c549ed61c8bcf1a1 (patch)
tree143629ad57d739be0fe9264718f0f8d428db77a7
parent6888a49ae84445136d138087290efcf6793c4149 (diff)
downloadmeta-raspberrypi-c7999e8c2f04385f34877aa9c549ed61c8bcf1a1.tar.gz
rpi-base.inc: update IMAGE_BOOT_FILES for change in oe-core
[Issue #285] -- https://github.com/agherzan/meta-raspberrypi/issues/285 The openembedded-core commit 1860d9d3c62e2e94cd68a809385873ffd8270b6d changed the names of DTB files in the deploy directory - they are no longer prefixed with "${KERNEL_IMAGETYPE}-". Update make_dtb_boot_files (which generates entries in IMAGE_BOOT_FILES) to take this change into account. Signed-off-by: Jonathan Haigh <jonathan.haigh@arm.com>
-rw-r--r--conf/machine/include/rpi-base.inc15
1 files changed, 5 insertions, 10 deletions
diff --git a/conf/machine/include/rpi-base.inc b/conf/machine/include/rpi-base.inc
index b01c561..5eed55d 100644
--- a/conf/machine/include/rpi-base.inc
+++ b/conf/machine/include/rpi-base.inc
@@ -76,23 +76,18 @@ def make_dtb_boot_files(d):
76 imgtyp = d.getVar('KERNEL_IMAGETYPE') 76 imgtyp = d.getVar('KERNEL_IMAGETYPE')
77 77
78 def transform(dtb): 78 def transform(dtb):
79 base = os.path.basename(dtb)
79 if dtb.endswith('dtb'): 80 if dtb.endswith('dtb'):
80 # eg: whatever/bcm2708-rpi-b.dtb has: 81 # eg: whatever/bcm2708-rpi-b.dtb has:
81 # DEPLOYDIR file: ${KERNEL_IMAGETYPE}-bcm2708-rpi-b.dtb 82 # DEPLOYDIR file: bcm2708-rpi-b.dtb
82 # destination: bcm2708-rpi-b.dtb 83 # destination: bcm2708-rpi-b.dtb
83 base = os.path.basename(dtb) 84 return base
84 src = '{}-{}'.format(imgtyp, base)
85 dst = base
86 return '{};{}'.format(src, dst)
87 elif dtb.endswith('dtbo'): 85 elif dtb.endswith('dtbo'):
88 # overlay dtb: 86 # overlay dtb:
89 # eg: overlays/hifiberry-amp.dtbo has: 87 # eg: overlays/hifiberry-amp.dtbo has:
90 # DEPLOYDIR file: ${KERNEL_IMAGETYPE}-hifiberry-amp.dtbo 88 # DEPLOYDIR file: hifiberry-amp.dtbo
91 # destination: overlays/hifiberry-amp.dtbo 89 # destination: overlays/hifiberry-amp.dtbo
92 base = os.path.basename(dtb) 90 return '{};{}'.format(base, dtb)
93 src = '{}-{}'.format(imgtyp, base)
94 dst = dtb
95 return '{};{}'.format(src, dtb)
96 91
97 return ' '.join([transform(dtb) for dtb in alldtbs.split(' ') if dtb]) 92 return ' '.join([transform(dtb) for dtb in alldtbs.split(' ') if dtb])
98 93