2018-02-16 17:28:55 +01:00
|
|
|
#
|
|
|
|
# spec file for package raspberrypi-firmware-dt
|
|
|
|
#
|
2023-01-03 11:24:43 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2018-02-16 17:28:55 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-11-20 13:53:27 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-02-16 17:28:55 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: raspberrypi-firmware-dt
|
2023-11-23 12:26:05 +01:00
|
|
|
Version: 2023.11.21
|
2018-02-16 17:28:55 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Device trees for the Raspberry Pi firmware loader
|
2018-11-20 13:53:27 +01:00
|
|
|
License: GPL-2.0-only
|
2018-02-16 17:28:55 +01:00
|
|
|
Group: System/Boot
|
2019-11-19 08:56:56 +01:00
|
|
|
URL: https://github.com/raspberrypi/linux/
|
2018-02-16 17:28:55 +01:00
|
|
|
Source: raspberrypi-firmware-dt-%{version}.tar.xz
|
2019-11-19 08:56:56 +01:00
|
|
|
Source1: disable-vc4-overlay.dts
|
2020-04-07 08:54:20 +02:00
|
|
|
Source2: uboot-bcm2835-pl011-overlay.dts
|
2021-01-27 14:40:15 +01:00
|
|
|
Source3: disable-v3d-overlay.dts
|
2021-03-04 12:11:03 +01:00
|
|
|
Source4: enable-bt-overlay.dts
|
2021-04-09 16:07:44 +02:00
|
|
|
Source5: smbios-overlay.dts
|
2018-12-19 15:41:31 +01:00
|
|
|
Source100: get-from-git.sh
|
2023-05-31 09:36:14 +02:00
|
|
|
Patch0: 0001-ARM-dts-bcm2711-rpi-Reuse-bcm2836-vchiq-driver.patch
|
2023-07-18 14:20:32 +02:00
|
|
|
Patch1: 0001-ARM-dts-bcm27xx-Use-better-name-for-spidev.patch
|
2018-02-16 17:28:55 +01:00
|
|
|
Requires: raspberrypi-firmware
|
|
|
|
BuildRequires: dtc
|
2018-03-14 16:21:28 +01:00
|
|
|
BuildRequires: raspberrypi-firmware
|
2018-02-16 17:28:55 +01:00
|
|
|
BuildArch: noarch
|
2018-12-19 15:41:31 +01:00
|
|
|
Conflicts: kernel < 4.12.14
|
2020-04-01 09:37:47 +02:00
|
|
|
Supplements: modalias(of:NfirmwareT*Craspberrypi%2Cbcm2835-firmwareC*)
|
2018-02-16 17:28:55 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides additional device tree base files as well as overlays
|
|
|
|
for the Raspberry Pi boot process.
|
|
|
|
|
|
|
|
%prep
|
2021-10-06 10:58:49 +02:00
|
|
|
%setup -q
|
2023-05-31 09:36:14 +02:00
|
|
|
%autopatch -p1
|
2018-02-16 17:28:55 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
SRCDIR=`pwd`
|
|
|
|
mkdir pp
|
|
|
|
PPDIR=`pwd`/pp
|
|
|
|
|
|
|
|
export DTC_FLAGS="-R 4 -p 0x1000 -@ -H epapr"
|
|
|
|
for dts in arch/arm/boot/dts/bcm27*dts arch/arm64/boot/dts/broadcom/bcm27*dts; do
|
|
|
|
target=$(basename ${dts%*.dts})
|
|
|
|
cpp -x assembler-with-cpp -undef -D__DTS__ -nostdinc -I. -I$SRCDIR/include/ -I$SRCDIR/scripts/dtc/include-prefixes/ -P $dts -o $PPDIR/$target.dts
|
|
|
|
dtc $DTC_FLAGS -I dts -O dtb -i ./$(dirname $dts) -o $PPDIR/$target.dtb $PPDIR/$target.dts
|
|
|
|
done
|
|
|
|
|
|
|
|
export DTC_FLAGS="-R 0 -p 0 -@ -H epapr"
|
2021-04-09 16:07:44 +02:00
|
|
|
for dts in arch/arm/boot/dts/overlays/*dts %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5}; do
|
2018-02-16 17:28:55 +01:00
|
|
|
target=$(basename ${dts%*.dts})
|
|
|
|
target=${target%*-overlay}
|
|
|
|
mkdir -p $PPDIR/overlays
|
|
|
|
cpp -x assembler-with-cpp -undef -D__DTS__ -nostdinc -I. -I$SRCDIR/include/ -I$SRCDIR/scripts/dtc/include-prefixes/ -P $dts -o $PPDIR/overlays/$target.dts
|
|
|
|
dtc $DTC_FLAGS -I dts -O dtb -i ./$(dirname $dts) -o $PPDIR/overlays/$target.dtbo $PPDIR/overlays/$target.dts
|
|
|
|
done
|
Accepting request 707760 from home:Guillaume_G:branches:hardware:boot
- Switch branch to 'rpi-5.1.y' to match the kernel version
- Update to f1d85e3870 (2019-06-03):
* remove 3dlab-nano-player, upstream-aux-interrupt (deprecated
and no more needed)
* add draws, i-sabre-q2m, ilitek251x, iqaudio-codec, max98357a,
piglow, udrc
- Handle properly the branch switch in get-from-git.sh script
- Switch branch to 'rpi-5.0.y' to match the kernel version
- Remove upstreamed patch:
* upstream-rpi-ft5406-overlay.patch
- Update to 00794df91 (2019-03-06):
* remove adv7282m, adv728x-m, ov5647, tc358743 and tc358743-audio
* update balena-fin
- Include README file for overlays as it contains useful information
OBS-URL: https://build.opensuse.org/request/show/707760
OBS-URL: https://build.opensuse.org/package/show/hardware:boot/raspberrypi-firmware-dt?expand=0&rev=20
2019-06-12 14:30:14 +02:00
|
|
|
# Include README file
|
|
|
|
cp arch/arm/boot/dts/overlays/README $PPDIR/overlays/
|
2018-02-16 17:28:55 +01:00
|
|
|
|
|
|
|
%define dtbdir /boot/vc
|
2021-04-09 16:07:44 +02:00
|
|
|
|
2018-02-16 17:28:55 +01:00
|
|
|
%install
|
|
|
|
install -m 700 -d %{buildroot}%{dtbdir}/
|
|
|
|
install -m 700 -d %{buildroot}%{dtbdir}/overlays
|
|
|
|
|
|
|
|
for dtb in pp/*.dtb; do
|
|
|
|
install -m 644 $dtb %{buildroot}%{dtbdir}/
|
|
|
|
done
|
|
|
|
|
|
|
|
for dtbo in pp/overlays/*.dtbo; do
|
|
|
|
install -m 644 $dtbo %{buildroot}%{dtbdir}/overlays/
|
|
|
|
done
|
Accepting request 707760 from home:Guillaume_G:branches:hardware:boot
- Switch branch to 'rpi-5.1.y' to match the kernel version
- Update to f1d85e3870 (2019-06-03):
* remove 3dlab-nano-player, upstream-aux-interrupt (deprecated
and no more needed)
* add draws, i-sabre-q2m, ilitek251x, iqaudio-codec, max98357a,
piglow, udrc
- Handle properly the branch switch in get-from-git.sh script
- Switch branch to 'rpi-5.0.y' to match the kernel version
- Remove upstreamed patch:
* upstream-rpi-ft5406-overlay.patch
- Update to 00794df91 (2019-03-06):
* remove adv7282m, adv728x-m, ov5647, tc358743 and tc358743-audio
* update balena-fin
- Include README file for overlays as it contains useful information
OBS-URL: https://build.opensuse.org/request/show/707760
OBS-URL: https://build.opensuse.org/package/show/hardware:boot/raspberrypi-firmware-dt?expand=0&rev=20
2019-06-12 14:30:14 +02:00
|
|
|
install -m 644 pp/overlays/README %{buildroot}%{dtbdir}/overlays/
|
2018-02-16 17:28:55 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
if mountpoint -q /boot/efi && [ ! -L /boot/efi ]; then
|
|
|
|
cp -r /boot/vc/*dtb /boot/vc/overlays /boot/efi/
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2018-02-20 11:41:24 +01:00
|
|
|
%license COPYING
|
2018-02-16 17:28:55 +01:00
|
|
|
%dir /boot/vc/overlays
|
|
|
|
/boot/vc/*dtb
|
|
|
|
/boot/vc/overlays/*dtbo
|
Accepting request 707760 from home:Guillaume_G:branches:hardware:boot
- Switch branch to 'rpi-5.1.y' to match the kernel version
- Update to f1d85e3870 (2019-06-03):
* remove 3dlab-nano-player, upstream-aux-interrupt (deprecated
and no more needed)
* add draws, i-sabre-q2m, ilitek251x, iqaudio-codec, max98357a,
piglow, udrc
- Handle properly the branch switch in get-from-git.sh script
- Switch branch to 'rpi-5.0.y' to match the kernel version
- Remove upstreamed patch:
* upstream-rpi-ft5406-overlay.patch
- Update to 00794df91 (2019-03-06):
* remove adv7282m, adv728x-m, ov5647, tc358743 and tc358743-audio
* update balena-fin
- Include README file for overlays as it contains useful information
OBS-URL: https://build.opensuse.org/request/show/707760
OBS-URL: https://build.opensuse.org/package/show/hardware:boot/raspberrypi-firmware-dt?expand=0&rev=20
2019-06-12 14:30:14 +02:00
|
|
|
/boot/vc/overlays/README
|
2018-02-16 17:28:55 +01:00
|
|
|
|
|
|
|
%changelog
|