talimat 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Tanım: Kernel için firmware ikilileri
  2. # URL: https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git;a=summary
  3. # Paketçi: milisarge
  4. # Gerekler: b43-fwcutter git
  5. # Grup: sürücü
  6. isim=linux-firmware
  7. surum=20181008
  8. _b43=5.100.138
  9. _legacy=3.130.20.0
  10. devir=1
  11. kaynak=(http://mirror2.openwrt.org/sources/broadcom-wl-${_b43}.tar.bz2
  12. http://downloads.openwrt.org/sources/wl_apsta-${_legacy}.o
  13. microcode_amd_fam17h.bin.xz)
  14. derle() {
  15. if [ ! -d $DERLEME_KAYNAKDIZIN/$isim ];then
  16. git clone git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git $DERLEME_KAYNAKDIZIN/$isim
  17. else
  18. cd $DERLEME_KAYNAKDIZIN/$isim
  19. git pull
  20. cd -
  21. fi
  22. cp -r $DERLEME_KAYNAKDIZIN/$isim $SRC/
  23. cd $SRC/$isim
  24. unxz $SRC/microcode_amd_fam17h.bin.xz
  25. # Build/Package
  26. make DESTDIR=$PKG FIRMWAREDIR=/lib/firmware install
  27. # Cleanup
  28. rm $PKG/lib/firmware/{Makefile,README,configure,GPL-{2,3}}
  29. install -d ${PKG}/usr/share/licenses/${isim}
  30. install -Dm644 LICEN* WHENCE ${PKG}/usr/share/licenses/linux-firmware/
  31. # install b43-firmware
  32. b43-fwcutter -w ${PKG}/lib/firmware/ ${SRC}/broadcom-wl-${_b43}/linux/wl_apsta.o
  33. # install b43-legacy-firmware
  34. b43-fwcutter -w ${PKG}/lib/firmware/ ${SRC}/wl_apsta-${_legacy}.o
  35. # temporary manually add latest amd firmware
  36. cd ..
  37. install -Dm644 microcode_amd_fam17h.bin ${PKG}/lib/firmware/amd-ucode/
  38. }