summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--conf/machine/include/rpi-base.inc14
1 files changed, 8 insertions, 6 deletions
diff --git a/conf/machine/include/rpi-base.inc b/conf/machine/include/rpi-base.inc
index 8b33a0f..572fe22 100644
--- a/conf/machine/include/rpi-base.inc
+++ b/conf/machine/include/rpi-base.inc
@@ -15,6 +15,7 @@ XSERVER = " \
15 " 15 "
16 16
17RPI_KERNEL_DEVICETREE_OVERLAYS ?= " \ 17RPI_KERNEL_DEVICETREE_OVERLAYS ?= " \
18 overlays/overlay_map.dtb \
18 overlays/at86rf233.dtbo \ 19 overlays/at86rf233.dtbo \
19 overlays/disable-bt.dtbo \ 20 overlays/disable-bt.dtbo \
20 overlays/dwc2.dtbo \ 21 overlays/dwc2.dtbo \
@@ -44,6 +45,7 @@ RPI_KERNEL_DEVICETREE_OVERLAYS ?= " \
44 overlays/rpi-poe.dtbo \ 45 overlays/rpi-poe.dtbo \
45 overlays/vc4-fkms-v3d.dtbo \ 46 overlays/vc4-fkms-v3d.dtbo \
46 overlays/vc4-kms-v3d.dtbo \ 47 overlays/vc4-kms-v3d.dtbo \
48 overlays/vc4-kms-v3d-pi4.dtbo \
47 overlays/vc4-kms-dsi-7inch.dtbo \ 49 overlays/vc4-kms-dsi-7inch.dtbo \
48 overlays/w1-gpio.dtbo \ 50 overlays/w1-gpio.dtbo \
49 overlays/w1-gpio-pullup.dtbo \ 51 overlays/w1-gpio-pullup.dtbo \
@@ -110,17 +112,17 @@ def make_dtb_boot_files(d):
110 112
111 def transform(dtb): 113 def transform(dtb):
112 base = os.path.basename(dtb) 114 base = os.path.basename(dtb)
113 if dtb.endswith('dtb'): 115 if dtb.endswith('dtbo') or base == 'overlay_map.dtb':
114 # eg: whatever/bcm2708-rpi-b.dtb has:
115 # DEPLOYDIR file: bcm2708-rpi-b.dtb
116 # destination: bcm2708-rpi-b.dtb
117 return base
118 elif dtb.endswith('dtbo'):
119 # overlay dtb: 116 # overlay dtb:
120 # eg: overlays/hifiberry-amp.dtbo has: 117 # eg: overlays/hifiberry-amp.dtbo has:
121 # DEPLOYDIR file: hifiberry-amp.dtbo 118 # DEPLOYDIR file: hifiberry-amp.dtbo
122 # destination: overlays/hifiberry-amp.dtbo 119 # destination: overlays/hifiberry-amp.dtbo
123 return '{};{}'.format(base, dtb) 120 return '{};{}'.format(base, dtb)
121 elif dtb.endswith('dtb'):
122 # eg: whatever/bcm2708-rpi-b.dtb has:
123 # DEPLOYDIR file: bcm2708-rpi-b.dtb
124 # destination: bcm2708-rpi-b.dtb
125 return base
124 126
125 return ' '.join([transform(dtb) for dtb in alldtbs.split(' ') if dtb]) 127 return ' '.join([transform(dtb) for dtb in alldtbs.split(' ') if dtb])
126 128