bluez: symlink /etc/firmware to /usr/lib/firmware

This enables bluez/hciattach to use firmware files added by the
kernel overlay system.

Also move /etc/firmware symlink creation from linux to bluez,
the linux kernel package shouldn't need to care about quirks needed
by other packages.

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2018-12-01 11:58:58 +01:00
parent 5dc77c99c2
commit 903346fe98
2 changed files with 3 additions and 3 deletions

View File

@ -298,9 +298,6 @@ post_install() {
mkdir -p $INSTALL/$(get_full_firmware_dir)/ mkdir -p $INSTALL/$(get_full_firmware_dir)/
ln -sf /storage/.config/firmware/ $INSTALL/$(get_full_firmware_dir)/updates ln -sf /storage/.config/firmware/ $INSTALL/$(get_full_firmware_dir)/updates
# bluez looks in /etc/firmware/
ln -sf /$(get_full_firmware_dir)/ $INSTALL/etc/firmware
# regdb and signature is now loaded as firmware by 4.15+ # regdb and signature is now loaded as firmware by 4.15+
if grep -q ^CONFIG_CFG80211_REQUIRE_SIGNED_REGDB= $PKG_BUILD/.config; then if grep -q ^CONFIG_CFG80211_REQUIRE_SIGNED_REGDB= $PKG_BUILD/.config; then
cp $(get_build_dir wireless-regdb)/regulatory.db{,.p7s} $INSTALL/$(get_full_firmware_dir) cp $(get_build_dir wireless-regdb)/regulatory.db{,.p7s} $INSTALL/$(get_full_firmware_dir)

View File

@ -59,6 +59,9 @@ post_makeinstall_target() {
mkdir -p $INSTALL/usr/share/services mkdir -p $INSTALL/usr/share/services
cp -P $PKG_DIR/default.d/*.conf $INSTALL/usr/share/services cp -P $PKG_DIR/default.d/*.conf $INSTALL/usr/share/services
# bluez looks in /etc/firmware/
ln -sf /usr/lib/firmware $INSTALL/etc/firmware
} }
post_install() { post_install() {