blob: e6cfda80e1bc8d9d9c037bc3db679d218b28f128 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
### Machine definition file utilities
def make_dtb_boot_files(d):
# Generate IMAGE_BOOT_FILES entries for device tree files listed in
# KERNEL_DEVICETREE.
# Use only the basename for dtb files:
alldtbs = d.getVar('KERNEL_DEVICETREE')
def transform(dtb):
if dtb.endswith('dtb') or dtb.endswith('dtbo'):
# eg: whatever/bcm2708-rpi-b.dtb has:
# DEPLOYDIR file: bcm2708-rpi-b.dtb
# destination: bcm2708-rpi-b.dtb
return os.path.basename(dtb)
return ' '.join([transform(dtb) for dtb in alldtbs.split(' ') if dtb])
|