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.
This commit is contained in:
Diederik de Haas 2022-11-11 12:50:20 +01:00
parent e522ff5f15
commit 6f016aa1ab
No known key found for this signature in database
GPG Key ID: D76E5BCE787EDB6E
2 changed files with 9 additions and 1 deletions

View File

@ -61,12 +61,18 @@ else:
firmware_component = 'non-free' firmware_component = 'non-free'
firmware_component_old = '' firmware_component_old = ''
# Extra wireless firmware: # wireless firmware:
if version != '2': if version != '2':
wireless_firmware = 'firmware-brcm80211' wireless_firmware = 'firmware-brcm80211'
else: else:
wireless_firmware = '' wireless_firmware = ''
# bluetooth firmware:
if version != '2':
bluetooth_firmware = 'bluez-firmware'
else:
bluetooth_firmware = ''
# Pi 4 on buster requires some backports: # Pi 4 on buster requires some backports:
backports_enable = False backports_enable = False
backports_suite = '%s-backports' % suite backports_suite = '%s-backports' % suite
@ -179,6 +185,7 @@ with open('raspi_master.yaml', 'r') as in_file:
.replace('__SYSTEMD_TIMESYNCD__', systemd_timesyncd) \ .replace('__SYSTEMD_TIMESYNCD__', systemd_timesyncd) \
.replace('__RASPI_FIRMWARE__', raspi_firmware) \ .replace('__RASPI_FIRMWARE__', raspi_firmware) \
.replace('__WIRELESS_FIRMWARE__', wireless_firmware) \ .replace('__WIRELESS_FIRMWARE__', wireless_firmware) \
.replace('__BLUETOOTH_FIRMWARE__', bluetooth_firmware) \
.replace('__SERIAL_CONSOLE__', serial) \ .replace('__SERIAL_CONSOLE__', serial) \
.replace('__HOST__', hostname) \ .replace('__HOST__', hostname) \
.replace('__TOUCH_MACHINE_ID__', touch_machine_id) \ .replace('__TOUCH_MACHINE_ID__', touch_machine_id) \

View File

@ -80,6 +80,7 @@ steps:
- __LINUX_IMAGE__ - __LINUX_IMAGE__
- __RASPI_FIRMWARE__ - __RASPI_FIRMWARE__
- __WIRELESS_FIRMWARE__ - __WIRELESS_FIRMWARE__
- __BLUETOOTH_FIRMWARE__
tag: tag-root tag: tag-root
unless: rootfs_unpacked unless: rootfs_unpacked