summaryrefslogtreecommitdiff
path: root/generate-recipe.py
diff options
context:
space:
mode:
authorDiederik de Haas <didi.debian@cknow.org>2022-11-11 12:50:20 +0100
committerDiederik de Haas <didi.debian@cknow.org>2022-11-11 12:53:54 +0100
commit6f016aa1aba263c5c29c15ff70489b85ffbd5280 (patch)
treedc192bc6cbdfcc24def9725a0c9e09db38cfff96 /generate-recipe.py
parente522ff5f15dd8b5878b65be3b42173f6cb85df4c (diff)
Add 'bluez-firmware' package to images
All RPi models which have wireless, also have bluetooth, so add the firmware package to those images so that the hardware is supported. Also remove the 'Extra' from the wireless firmware comment.
Diffstat (limited to 'generate-recipe.py')
-rwxr-xr-xgenerate-recipe.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/generate-recipe.py b/generate-recipe.py
index c72aee1..65b0f1c 100755
--- a/generate-recipe.py
+++ b/generate-recipe.py
@@ -61,12 +61,18 @@ else:
firmware_component = 'non-free'
firmware_component_old = ''
-# Extra wireless firmware:
+# wireless firmware:
if version != '2':
wireless_firmware = 'firmware-brcm80211'
else:
wireless_firmware = ''
+# bluetooth firmware:
+if version != '2':
+ bluetooth_firmware = 'bluez-firmware'
+else:
+ bluetooth_firmware = ''
+
# Pi 4 on buster requires some backports:
backports_enable = False
backports_suite = '%s-backports' % suite
@@ -179,6 +185,7 @@ with open('raspi_master.yaml', 'r') as in_file:
.replace('__SYSTEMD_TIMESYNCD__', systemd_timesyncd) \
.replace('__RASPI_FIRMWARE__', raspi_firmware) \
.replace('__WIRELESS_FIRMWARE__', wireless_firmware) \
+ .replace('__BLUETOOTH_FIRMWARE__', bluetooth_firmware) \
.replace('__SERIAL_CONSOLE__', serial) \
.replace('__HOST__', hostname) \
.replace('__TOUCH_MACHINE_ID__', touch_machine_id) \