raspberrypi-firmware-dt/raspberrypi-firmware-dt.spec
Dirk Mueller 637ae2afa7 Accepting request 670295 from home:Guillaume_G:branches:hardware:boot
- Update to 8f862eec9 (2019-01-29):
  * dtoverlays: Correct DT handling camera GPIOs
  * overlays: Add mcp342x overlay
  * overlays: mcp23017: Support the MCP23008
  * overlays: Add ssd1306 overlay for OLED display
  * overlays: sdio: Add enhanced 1-bit support
  * dtoverlays: fe-pi-audio: fix sgtl5000 compatible string
  * overlays: Update README with removal of lirc-rpi
  * Add overlay for SLB9760 Iridium /LetsTrust TPM
  * lirc-rpi: Remove in favour of gpio-ir
  * overlays: Update upstream overlay
  * dtoverlays: Add i2c on 0&1 option to TC358743, ADV7282 and OV5647
  * overlays: Remove superfluous #address/size-cells
  * dtoverlays: Add support for ADV7280-M, ADV7281-M and ADV7281-MA chips.
  * arm: dt: Add DT overlays for ADV7282M, OV5647, and TC358743
  * overlays: uart0 - return GPIOs 14 and 15 to inputs
  * overlays: pi3-disable-bt: Clear out bt_pins node
  * overlays: Add gpio-no-bank0-irq overlay
  * overlays: add overrides for PoE HAT fan control
  * Update gpio-fan-overlay.dts (#2711)
  * devicetree: add RPi CM3 dts to arm64; mimic the RPi 3B arm64 dts 
    implementation, by referring to the actual dts file in the arm directory
- Remove upstream-aux-interrupt-overlay.dts as it is already in 
  arch/arm/boot/dts/overlays/upstream-aux-interrupt-overlay.dts

OBS-URL: https://build.opensuse.org/request/show/670295
OBS-URL: https://build.opensuse.org/package/show/hardware:boot/raspberrypi-firmware-dt?expand=0&rev=18
2019-02-03 18:24:14 +00:00

90 lines
2.8 KiB
RPMSpec

#
# spec file for package raspberrypi-firmware-dt
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: raspberrypi-firmware-dt
Version: 2019.01.29
Release: 0
Summary: Device trees for the Raspberry Pi firmware loader
License: GPL-2.0-only
Group: System/Boot
Url: https://github.com/raspberrypi/linux/
Source: raspberrypi-firmware-dt-%{version}.tar.xz
Source100: get-from-git.sh
Patch1: upstream-rpi-ft5406-overlay.patch
Requires: raspberrypi-firmware
BuildRequires: dtc
BuildRequires: raspberrypi-firmware
BuildArch: noarch
Conflicts: kernel < 4.12.14
%description
This package provides additional device tree base files as well as overlays
for the Raspberry Pi boot process.
%prep
%setup
%patch1 -p1
%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"
for dts in arch/arm/boot/dts/overlays/*dts; do
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
%define dtbdir /boot/vc
%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
%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)
%license COPYING
%dir /boot/vc/overlays
/boot/vc/*dtb
/boot/vc/overlays/*dtbo
%changelog