milis/talimatname/genel/l/linux-firmware/talimat

47 lines
1.4 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Kernel için firmware ikilileri
2018-01-20 21:43:47 +01:00
# URL: https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git;a=summary
# Paketçi: milisarge
# Gerekler: b43-fwcutter git
# Grup: sürücüler
2017-06-03 15:58:02 +02:00
2017-10-28 14:10:23 +02:00
isim=linux-firmware
2018-01-20 21:43:47 +01:00
surum=20180119
_b43=5.100.138
_legacy=3.130.20.0
2017-10-28 14:10:23 +02:00
devir=1
2018-01-20 21:43:47 +01:00
kaynak=(http://mirror2.openwrt.org/sources/broadcom-wl-${_b43}.tar.bz2
http://downloads.openwrt.org/sources/wl_apsta-${_legacy}.o
microcode_amd_fam17h.bin.xz)
2016-02-24 01:27:23 +01:00
2017-10-27 23:59:41 +02:00
derle() {
2018-01-20 21:43:47 +01:00
if [ ! -d $DERLEME_KAYNAKDIZIN/$isim ];then
git clone git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git $DERLEME_KAYNAKDIZIN/$isim
else
cd $DERLEME_KAYNAKDIZIN/$isim
git pull
cd -
fi
cp -r $DERLEME_KAYNAKDIZIN/$isim $SRC/
cd $SRC/$isim
unxz $SRC/microcode_amd_fam17h.bin.xz
2017-06-03 15:58:02 +02:00
# Build/Package
make DESTDIR=$PKG FIRMWAREDIR=/lib/firmware install
2016-02-24 01:27:23 +01:00
2017-06-03 15:58:02 +02:00
# Cleanup
rm $PKG/lib/firmware/{Makefile,README,configure,GPL-{2,3}}
2018-01-20 21:43:47 +01:00
install -d ${PKG}/usr/share/licenses/${isim}
install -Dm644 LICEN* WHENCE ${PKG}/usr/share/licenses/linux-firmware/
# install b43-firmware
b43-fwcutter -w ${PKG}/lib/firmware/ ${SRC}/broadcom-wl-${_b43}/linux/wl_apsta.o
# install b43-legacy-firmware
b43-fwcutter -w ${PKG}/lib/firmware/ ${SRC}/wl_apsta-${_legacy}.o
# temporary manually add latest amd firmware
cd ..
install -Dm644 microcode_amd_fam17h.bin ${PKG}/lib/firmware/amd-ucode/
2016-02-24 01:27:23 +01:00
}