add more firmwares

This commit is contained in:
Chris Cromer 2020-05-31 00:32:30 -04:00
parent c733b21a38
commit 823d481f6d
Signed by: cromer
GPG Key ID: 39CC813FF3C8708A
6 changed files with 57 additions and 174 deletions

View File

@ -3,7 +3,7 @@
Summary: Meta package for LFS Base installation Summary: Meta package for LFS Base installation
Name: base Name: base
Version: 8.4 Version: 8.4
Release: 1 Release: 2
License: None License: None
URL: None URL: None
Group: LFS/Base Group: LFS/Base
@ -92,9 +92,7 @@ Requires: popt
Requires: python2 Requires: python2
Requires: rpm Requires: rpm
Requires: wget Requires: wget
Requires: firmware-radeon Requires: linux-firmware
Requires: firmware-realtek
Requires: firmware-amd-ucode
%description %description
Summary: Meta package for LFS Base installation Summary: Meta package for LFS Base installation
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
@ -105,6 +103,8 @@ Summary: Meta package for LFS Base installation
%defattr(-,lfs,lfs) %defattr(-,lfs,lfs)
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
%changelog %changelog
* Sat May 30 2020 Chris Cromer <chris@cromer.cl> 8.4-2
- Add linux-firmware and remove other firmwares
* Mon Apr 29 2019 baho-utot <baho-utot@columbus.rr.com> 8.4-1 * Mon Apr 29 2019 baho-utot <baho-utot@columbus.rr.com> 8.4-1
- LFS-8.4 - LFS-8.4
* Mon Oct 01 2018 baho-utot <baho-utot@columbus.rr.com> 8.2-1 * Mon Oct 01 2018 baho-utot <baho-utot@columbus.rr.com> 8.2-1

View File

@ -1,60 +0,0 @@
#MD5SUM: dd92e77d72097f89a7c28eeb121cd62e;SOURCES/firmware-amd-ucode-1.00.tar.gz
#-----------------------------------------------------------------------------
Summary: Firmware for amd processors
Name: firmware-amd-ucode
Version: 2019.05.22
Release: 1
License: Any
URL: Any
Group: LFS/Base
Vendor: Elizabeth
Source: %{name}-%{version}.tar.gz
Requires: filesystem
%description
Firmware for amd processors
#-----------------------------------------------------------------------------
%prep
%build
cd %{_builddir}
tar xf %{_sourcedir}/%{name}-%{version}.tar.gz
install -vdm 755 %{buildroot}/boot
# AMD family 21 - 15h
install -vdm 755 fam15h/kernel/x86/microcode
cp -var amd-ucode/microcode_amd_fam15h.bin fam15h/kernel/x86/microcode/AuthenticAMD.bin
pushd fam15h
find . | cpio -o -H newc > %{buildroot}/boot/microcode_amd_fam15h.img
popd
# AMD family 22 - 16h
install -vdm 755 fam16h/kernel/x86/microcode
cp -var amd-ucode/microcode_amd_fam16h.bin fam16h/kernel/x86/microcode/AuthenticAMD.bin
pushd fam16h
find . | cpio -o -H newc > %{buildroot}/boot/microcode_amd_fam16h.img
popd
# AMD family 23 - 17h
install -vdm 755 fam17h/kernel/x86/microcode
cp -var amd-ucode/microcode_amd_fam17h.bin fam17h/kernel/x86/microcode/AuthenticAMD.bin
pushd fam17h
find . | cpio -o -H newc > %{buildroot}/boot/microcode_amd_fam17h.img
popd
%install
ls %{buildroot}/boot
#-----------------------------------------------------------------------------
# Copy license/copying file
# install -D -m644 %{_builddir}/LICENSE.radeon %{buildroot}/usr/share/licenses/%{name}/LICENSE
#-----------------------------------------------------------------------------
# Create file list
# rm %{buildroot}%{_infodir}/dir
# find %{buildroot} -name '*.la' -delete
find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.rpm
sed -i "s|^${RPM_BUILD_ROOT}||" filelist.rpm
# sed -i '/man\/man/d' filelist.rpm
# sed -i '/\/usr\/share\/info/d' filelist.rpm
#-----------------------------------------------------------------------------
%files -f filelist.rpm
%defattr(-,root,root)
# %%{_infodir}/*
# %%{_mandir}/man1/*
#-----------------------------------------------------------------------------
%changelog
* Sun Jul 29 2018 baho-utot <baho-utot@columbus.rr.com> 1.00-1
- Initial build. First version

View File

@ -1,42 +0,0 @@
#MD5SUM: 55e7c8cf8bca4fbb738be885266a2dc4;SOURCES/firmware-radeon-1.00.tar.gz
#-----------------------------------------------------------------------------
Summary: Firmware for radeon graphics cards
Name: firmware-radeon
Version: 1.00
Release: 1
License: Any
URL: Any
Group: LFS/Base
Vendor: Elizabeth
Source: %{name}-%{version}.tar.gz
Requires: filesystem
%description
Firmware for radeon graphics cards
#-----------------------------------------------------------------------------
%prep
%build
cd %{_builddir}
tar xzf %{_sourcedir}/%{name}-%{version}.tar.gz
%install
install -vdm 755 %{buildroot}/lib/firmware/radeon
cp -var %{_builddir}/radeon/* %{buildroot}/lib/firmware/radeon
#-----------------------------------------------------------------------------
# Copy license/copying file
install -D -m644 %{_builddir}/LICENSE.radeon %{buildroot}/usr/share/licenses/%{name}/LICENSE
#-----------------------------------------------------------------------------
# Create file list
# rm %{buildroot}%{_infodir}/dir
# find %{buildroot} -name '*.la' -delete
find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.rpm
sed -i "s|^${RPM_BUILD_ROOT}||" filelist.rpm
# sed -i '/man\/man/d' filelist.rpm
# sed -i '/\/usr\/share\/info/d' filelist.rpm
#-----------------------------------------------------------------------------
%files -f filelist.rpm
%defattr(-,root,root)
# %%{_infodir}/*
# %%{_mandir}/man1/*
#-----------------------------------------------------------------------------
%changelog
* Sun Jul 29 2018 baho-utot <baho-utot@columbus.rr.com> 1.00-1
- Initial build. First version

View File

@ -1,42 +0,0 @@
#MD5SUM: ca0739ca20bd48a6bbfb31c1778e2469;SOURCES/firmware-realtek-1.00.tar.gz
#-----------------------------------------------------------------------------
Summary: Firmware for realtek network cards
Name: firmware-realtek
Version: 1.00
Release: 1
License: Any
URL: Any
Group: LFS/Base
Vendor: Elizabeth
Source: %{name}-%{version}.tar.gz
Requires: filesystem
%description
Firmware for realtek network cards
#-----------------------------------------------------------------------------
%prep
%build
cd %{_builddir}
tar xzf %{_sourcedir}/%{name}-%{version}.tar.gz
%install
install -vdm 755 %{buildroot}/lib/firmware/rtl_nic
cp -var %{_builddir}/rtl_nic/* %{buildroot}/lib/firmware/rtl_nic
#-----------------------------------------------------------------------------
# Copy license/copying file
# install -D -m644 %{_builddir}/LICENSE.realtek %{buildroot}/usr/share/licenses/%{name}/LICENSE
#-----------------------------------------------------------------------------
# Create file list
# rm %{buildroot}%{_infodir}/dir
# find %{buildroot} -name '*.la' -delete
find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.rpm
sed -i "s|^${RPM_BUILD_ROOT}||" filelist.rpm
# sed -i '/man\/man/d' filelist.rpm
# sed -i '/\/usr\/share\/info/d' filelist.rpm
#-----------------------------------------------------------------------------
%files -f filelist.rpm
%defattr(-,root,root)
# %%{_infodir}/*
# %%{_mandir}/man1/*
#-----------------------------------------------------------------------------
%changelog
* Sun Jul 29 2018 baho-utot <baho-utot@columbus.rr.com> 1.00-1
- Initial build. First version

28
SPECS/linux-firmware.spec Normal file
View File

@ -0,0 +1,28 @@
#MD5SUM: 74127d907539428043addc03b7cb5730;SOURCES/linux-firmware.tar.gz
#-----------------------------------------------------------------------------
Summary: Firmware for various hardware for linux
Name: linux-firmware
Version: 1.0
Release: 1
License: Any
URL: Any
Group: LFS/Base
Vendor: Elizabeth
Source0: %{name}.tar.gz
Requires: filesystem
%description
Firmware for various hardware for linux
#-----------------------------------------------------------------------------
%prep
%setup -q -n %{name}
%build
%install
make %{?_smp_mflags} DESTDIR="%{buildroot}" FIRMWAREDIR=/lib/firmware install
%files
%defattr(-,root,root)
/lib/*
#-----------------------------------------------------------------------------
%changelog
* Sat May 30 2020 Chris Cromer <chris@cromer.cl> 1.0-1
- Initial build

View File

@ -1,11 +1,12 @@
#!/bin/bash #!/bin/bash
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# Title: ch6.sh # Title: ch6.sh
# Date: 2019-03-14 # Date: 2020-05-30
# Version: 1.0 # Version: 1.0
# Author: baho-utot@columbus.rr.com # Author: chris@cromer.cl
# Options: # Options:
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# Copyright 2020 Chris Cromer
# Copyright 2019 Baho Utot # Copyright 2019 Baho Utot
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
@ -403,9 +404,7 @@ LIST+="linux " # 8.3. Linux-4.20.12
LIST+="popt " # popt LIST+="popt " # popt
LIST+="rpm " # rpm LIST+="rpm " # rpm
LIST+="wget " # wget LIST+="wget " # wget
LIST+="firmware-radeon " # firmware-radeon LIST+="linux-firmware " # linux-firmware
LIST+="firmware-realtek " # firmware-realtek
LIST+="firmware-amd-ucode " # firmware-amd-ucode
LIST+="python2 " # python2 LIST+="python2 " # python2
LIST+="base " # lfs base packages meta package LIST+="base " # lfs base packages meta package
for i in ${LIST};do for i in ${LIST};do