move boot firmware files to raspberrypi-firmware and require it in kernel-raspberrypi [release 3.6.11.20130425git-2mamba;Mon Feb 17 2014]

This commit is contained in:
Silvan Calarco 2024-01-05 17:21:27 +01:00
parent dd66966aae
commit ebd8e50d5a
6 changed files with 232 additions and 0 deletions

View File

@ -1,2 +1,3 @@
# raspberrypi-firmware # raspberrypi-firmware
Boot firmware files (except kernel) for the Raspberry Pi.

View File

@ -0,0 +1 @@
dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2 rootfstype=ext4 quiet rootwait splash

View File

@ -0,0 +1,9 @@
arm_freq=800
force_turbo=1
gpu_mem=100
disable_overscan=1
start_file=start_x.elf
fixup_file=fixup_x.dat
framebuffer_depth=32
framebuffer_ignore_alpha=1
#hdmi_drive=2

View File

@ -0,0 +1 @@
/opt/vc/lib

View File

@ -0,0 +1 @@
SUBSYSTEM=="vchiq", GROUP="video", MODE="0660"

219
raspberrypi-firmware.spec Normal file
View File

@ -0,0 +1,219 @@
# the userspace libraries and devel files are now available in source format
%define include_userspace 0
%define kernelver 3.6.11
%define gitversion 20130425git
Name: raspberrypi-firmware
Version: 3.6.11.20130425git
Release: 2mamba
Summary: Boot firmware files (except kernel) for the Raspberry Pi
Group: System/Kernel and Hardware
Vendor: openmamba
Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com>
URL: http://www.raspberrypi.org/
## GITSOURCE git://github.com/raspberrypi/firmware.git
Source0: git://github.com/raspberrypi/firmware.git/master/firmware-%{kernelver}.%{gitversion}.tar.bz2
Source1: raspberrypi-firmware-kernelconf.txt
Source2: raspberrypi-firmware-kernelcmdline.txt
Source10: raspberrypi-firmware-udev-vchiq-permissions
Source11: raspberrypi-firmware-ldconf
License: GPL, LICENCE.broadcom
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
ExclusiveArch: arm
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
%{summary}.
Source: https://github.com/raspberrypi/firmware.
%package -n kernel-raspberrypi
Group: System/Kernel and Hardware
Summary: Linux kernel files for the Raspberry Pi
Provides: raspberrypi-kernel = %{?epoch:%epoch:}%{version}-%{release}
Obsoletes: raspberrypi-kernel
Requires: kernel-raspberrypi-modules = %{?epoch:%epoch:}%{version}-%{release}
Requires: raspberrypi-firmware = %{?epoch:%epoch:}%{version}-%{release}
%description -n kernel-raspberrypi
Linux kernel files and modules for the Raspberry Pi.
Source: https://github.com/raspberrypi/firmware.
*start.elf, bootcode.bin and loader.bin are the GPU firmware and bootloaders.
Their licence is described in 'LICENCE.broadcom'.
The kernel.img files are builds of the Linux kernel, released under the GPL (see COPYING.linux).
%package -n kernel-raspberrypi-modules
Group: System/Kernel and Hardware
Summary: Linux kernel modules for the Raspberry Pi
%description -n kernel-raspberrypi-modules
Linux kernel modules for the Raspberry Pi.
Source: https://github.com/raspberrypi/firmware.
%package -n kernel-raspberrypi-doc
Group: Documentation
Summary: Raspberry Pi kernel documentation
Provides: raspberrypi-kernel-doc = %{?epoch:%epoch:}%{version}-%{release}
Obsoletes: raspberrypi-kernel-doc
%description -n kernel-raspberrypi-doc
Raspberry Pi kernel documentation.
%if %include_userspace
%package -n raspberrypi-libs
Group: System/Libraries
Summary: Userspace libraries for the Raspberry Pi
%description -n raspberrypi-libs
This package contains the userspace libraries for the Raspberry Pi.
Source: https://github.com/raspberrypi/firmware.
%package -n raspberrypi-devel
Group: Development/Libraries
Summary: Development files for the Raspberry Pi
Requires: raspberrypi-libs = %{?epoch:%epoch:}%{version}-%{release}
%description -n raspberrypi-devel
This package contains libraries and header files for developing applications for the Raspberry Pi.
Source: https://github.com/raspberrypi/firmware.
%package -n raspberrypi-utils
Group: System/Tools
Summary: System tools for the Raspberry Pi
%description -n raspberrypi-utils
This package contains some system tools for the Raspberry Pi.
Source: https://github.com/raspberrypi/firmware.
%endif
%prep
%setup -q -n firmware-%{kernelver}.%{gitversion}
%define __os_install_post %{nil}
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
# kernel + kernel modules + firmware
install -d %{buildroot}/boot
boot_flist="\
bootcode.bin
fixup_x.dat
kernel.img
LICENCE.broadcom
start_x.elf"
for f in $boot_flist; do
install -m 644 boot/$f %{buildroot}/boot/
done
install -d %{buildroot}/lib/modules
cp -R modules/3.6.11+ %{buildroot}/lib/modules/
install %{S:1} %{buildroot}/boot/config.txt
install %{S:2} %{buildroot}/boot/cmdline.txt
install -d %{buildroot}/lib/udev/rules.d
install -m 644 %{S:10} \
%{buildroot}/lib/udev/rules.d/10-vchiq-permissions.rules
install -d %{buildroot}%{_datadir}/doc/raspberrypi-kernel
cp -R documentation/ilcomponents %{buildroot}%{_datadir}/doc/raspberrypi-kernel
%if %include_userspace
# libraries
install -d %{buildroot}/opt/vc/lib
cp -R opt/vc/lib %{buildroot}/opt/vc/
install -d %{buildroot}%{_sysconfdir}/ld.so.conf.d
install %{S:11} %{buildroot}%{_sysconfdir}/ld.so.conf.d/rpi-vc.conf
# development files
install -d %{buildroot}/opt/vc/include
cp -R opt/vc/include %{buildroot}/opt/vc/
# tools
install -d %{buildroot}/opt/vc/bin
for f in edidparser tvservice vcdbg vcgencmd vchiq_test; do
install -m 755 opt/vc/bin/$f %{buildroot}/opt/vc/bin/$f
done
%endif
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
/boot/bootcode.bin
/boot/fixup_x.dat
/boot/start_x.elf
/boot/LICENCE.broadcom
%config(noreplace) /boot/config.txt
%config(noreplace) /boot/cmdline.txt
/lib/udev/rules.d/10-vchiq-permissions.rules
%files -n kernel-raspberrypi
%defattr(-,root,root)
/boot/kernel.img
%files -n kernel-raspberrypi-modules
%defattr(-,root,root)
/lib/modules
%files -n kernel-raspberrypi-doc
%defattr(-,root,root)
%{_datadir}/doc/raspberrypi-kernel
%if %include_userspace
%post -n raspberrypi-libs -p /sbin/ldconfig
%postun -n raspberrypi-libs -p /sbin/ldconfig
%files -n raspberrypi-libs
%defattr(-,root,root)
/opt/vc/lib
%{_sysconfdir}/ld.so.conf.d/rpi-vc.conf
%files -n raspberrypi-devel
%defattr(-,root,root)
/opt/vc/include
%files -n raspberrypi-utils
%defattr(-,root,root)
/opt/vc/bin/edidparser
/opt/vc/bin/tvservice
/opt/vc/bin/vcdbg
/opt/vc/bin/vcgencmd
/opt/vc/bin/vchiq_test
%endif
%changelog
* Mon Feb 17 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.6.11.20130425git-2mamba
- move boot firmware files to raspberrypi-firmware and require it in kernel-raspberrypi
* Thu Apr 25 2013 Davide Madrisan <davide.madrisan@gmail.com> 20130425git-1mamba
- update to 20130425git
* Wed Mar 05 2013 Davide Madrisan <davide.madrisan@gmail.com> 20130301git-3mamba
- rename the kernel subpackages to follow the openmamba schema
* Sun Mar 03 2013 Davide Madrisan <davide.madrisan@gmail.com> 20130301git-2mamba
- do not provide the userspace libraries by default; the source code is now available
* Fri Mar 01 2013 Davide Madrisan <davide.madrisan@gmail.com> 20130301git-1mamba
- update to 20130301git
* Sun Oct 28 2012 Davide Madrisan <davide.madrisan@gmail.com> 20121028git-1mamba
- updated from git
- remove raspberrypi-libs, raspberrypi-devel, and raspberrypi-utils
- new subpackage raspberrypi-kernel-doc
* Sat Oct 13 2012 Davide Madrisan <davide.madrisan@gmail.com> 20121013git-1mamba
- updated from git
* Fri Sep 21 2012 Davide Madrisan <davide.madrisan@gmail.com> 20120919git-2mamba
- add %{_sysconfdir}/udev/rules.d/10-vchiq-permissions.rules
* Wed Sep 19 2012 Davide Madrisan <davide.madrisan@gmail.com> 20120919git-1mamba
- package created by autospec