Accepting request 503085 from home:a_faerber:branches:hardware
Add Supplements for Raspberry Pi 3 (bsc#1041823) and clean up compatible handling OBS-URL: https://build.opensuse.org/request/show/503085 OBS-URL: https://build.opensuse.org/package/show/hardware/bcm43xx-firmware?expand=0&rev=13
This commit is contained in:
committed by
Git OBS Bridge
parent
23a54ce890
commit
1f10b9d7e7
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 12 12:24:22 UTC 2017 - afaerber@suse.de
|
||||
|
||||
- Add Supplements for Raspberry Pi 3 (bsc#1041823)
|
||||
- Resolve NUL char warning on modprobe for Tumbleweed by properly
|
||||
iterating over zero-separated DT compatible strings
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 10 14:06:29 UTC 2017 - afaerber@suse.de
|
||||
|
||||
|
@@ -49,11 +49,14 @@ BuildRequires: suse-module-tools
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
Requires: kernel-firmware
|
||||
# Raspberry Pi 3 Model B
|
||||
Supplements: modalias(sdio:c*v02D0dA9A6*)
|
||||
|
||||
%description
|
||||
This package provides the firmware files needed for the
|
||||
Broadcom (now Cypress) BCM43430 Wifi+Bluetooth chipset
|
||||
as well as NVRAM config files for BCM43362 and BCM43430.
|
||||
as well as NVRAM config files for BCM43362, BCM43430 and
|
||||
further related chipsets.
|
||||
|
||||
%prep
|
||||
%setup -q -c -T
|
||||
|
@@ -1,27 +1,29 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [[ -e /sys/firmware/devicetree/base/compatible ]]; then
|
||||
case "$(cat /sys/firmware/devicetree/base/compatible 2>/dev/null)" in
|
||||
*lemaker,bananapro*)
|
||||
ln -sf brcmfmac43362-sdio-bananapi-m1+.txt /lib/firmware/brcm/brcmfmac43362-sdio.txt
|
||||
;;
|
||||
*sinovoip,bpi-m2*)
|
||||
ln -sf brcmfmac43362-sdio-bananapi-m2.txt /lib/firmware/brcm/brcmfmac43362-sdio.txt
|
||||
;;
|
||||
*cubietech,cubietruck*)
|
||||
ln -sf brcmfmac43362-sdio-cubietruck.txt /lib/firmware/brcm/brcmfmac43362-sdio.txt
|
||||
;;
|
||||
*solidrun,cubox-i*)
|
||||
ln -sf brcmfmac4329-sdio-cubox-i.txt /lib/firmware/brcm/brcmfmac4329-sdio.txt
|
||||
ln -sf brcmfmac4330-sdio-cubox-i.txt /lib/firmware/brcm/brcmfmac4330-sdio.txt
|
||||
;;
|
||||
*raspberrypi,3-model-b*)
|
||||
ln -sf brcmfmac43430-sdio-raspberrypi3b.txt /lib/firmware/brcm/brcmfmac43430-sdio.txt
|
||||
;;
|
||||
*tronsmart,vega-s95-telos*)
|
||||
ln -sf brcmfmac4339-sdio-vega-s95-telos.txt /lib/firmware/brcm/brcmfmac4339-sdio.txt
|
||||
;;
|
||||
esac
|
||||
while IFS= read -r -d '' compatible; do
|
||||
case "$compatible" in
|
||||
lemaker,bananapro)
|
||||
ln -sf brcmfmac43362-sdio-bananapi-m1+.txt /lib/firmware/brcm/brcmfmac43362-sdio.txt
|
||||
;;
|
||||
sinovoip,bpi-m2)
|
||||
ln -sf brcmfmac43362-sdio-bananapi-m2.txt /lib/firmware/brcm/brcmfmac43362-sdio.txt
|
||||
;;
|
||||
cubietech,cubietruck)
|
||||
ln -sf brcmfmac43362-sdio-cubietruck.txt /lib/firmware/brcm/brcmfmac43362-sdio.txt
|
||||
;;
|
||||
solidrun,cubox-i)
|
||||
ln -sf brcmfmac4329-sdio-cubox-i.txt /lib/firmware/brcm/brcmfmac4329-sdio.txt
|
||||
ln -sf brcmfmac4330-sdio-cubox-i.txt /lib/firmware/brcm/brcmfmac4330-sdio.txt
|
||||
;;
|
||||
raspberrypi,3-model-b)
|
||||
ln -sf brcmfmac43430-sdio-raspberrypi3b.txt /lib/firmware/brcm/brcmfmac43430-sdio.txt
|
||||
;;
|
||||
tronsmart,vega-s95-telos)
|
||||
ln -sf brcmfmac4339-sdio-vega-s95-telos.txt /lib/firmware/brcm/brcmfmac4339-sdio.txt
|
||||
;;
|
||||
esac
|
||||
done < /sys/firmware/devicetree/base/compatible
|
||||
fi
|
||||
|
||||
/usr/sbin/modprobe --ignore-install brcmfmac "$@" || exit $?
|
||||
|
Reference in New Issue
Block a user