Dirk Mueller
37c6f891cd
* A number of bugfixes * Fix many warnings with -Wsign-compare * Add compilation with meson (not used by default so far) * Yet another revamp of how we handle unaligned accesses * Added a number of extra checks for common tree errors * Checks for interrupt providers * i2c reg properties * Tighten checking of gpio properties * Reduce dependencies when building libfdt only * Allow libfdt.h header to be used from C++ more easily * Accept .dtbo extension for overlays * Update valid node and property characters to match current devicetree spec * Add several checks for root node sanity in fdt_check_full() * Somewhat more robust type labelling for the benefit of yaml output OBS-URL: https://build.opensuse.org/package/show/Base:System/dtc?expand=0&rev=56
101 lines
3.0 KiB
RPMSpec
101 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package dtc
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%define sover 1
|
|
Name: dtc
|
|
Version: 1.6.1
|
|
Release: 0
|
|
Summary: Device-tree compiler
|
|
License: GPL-2.0-or-later
|
|
URL: https://github.com/dgibson/dtc
|
|
Source0: https://mirrors.edge.kernel.org/pub/software/utils/dtc/dtc-%{version}.tar.gz
|
|
Source1: https://mirrors.edge.kernel.org/pub/software/utils/dtc/dtc-%{version}.tar.sign
|
|
Source20: baselibs.conf
|
|
Source21: dtc.keyring
|
|
BuildRequires: bison
|
|
BuildRequires: flex
|
|
BuildRequires: libyaml-devel
|
|
|
|
%description
|
|
PowerPC kernels are moving towards requiring a small Open
|
|
Firmware-style device tree as the only means of passing information
|
|
from bootloaders/firmware to the kernel. This does not require a full
|
|
Open Firmware implementation. DTC (Device Tree Compiler) is a tool to
|
|
create a static device tree, which is adequate for most embedded
|
|
systems (since their topology will not vary across reboots). DTC is
|
|
available via a git tree: git://ozlabs.org/srv/projects/dtc/dtc.git
|
|
|
|
%package -n libfdt%{sover}
|
|
Summary: Device tree library
|
|
|
|
%description -n libfdt%{sover}
|
|
libfdt is a library to process Open Firmware style device trees on various
|
|
architectures.
|
|
|
|
%package -n libfdt-devel
|
|
Summary: Development headers for device tree library
|
|
Requires: libfdt%{sover} = %{version}-%{release}
|
|
# Provide previously used incorrectly named devel package
|
|
Provides: libfdt1-devel = %{version}-%{release}
|
|
Obsoletes: libfdt1-devel < %{version}-%{release}
|
|
|
|
%description -n libfdt-devel
|
|
This package provides development files for libfdt
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
sed -i 's/python2/python3/' pylibfdt/setup.py
|
|
|
|
%build
|
|
%make_build EXTRA_CFLAGS="%{optflags} -pie" LDFLAGS="%{optflags}"
|
|
|
|
%install
|
|
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir} \
|
|
BINDIR=%{_bindir} NO_PYTHON=1
|
|
install -p -m 644 libfdt/libfdt_env.h %{buildroot}/%{_includedir}
|
|
rm -f %{buildroot}/%{_libdir}/*.a
|
|
|
|
%check
|
|
export EXTRA_CFLAGS="%{optflags}"
|
|
%make_build check
|
|
|
|
%files
|
|
%license README.license
|
|
%doc Documentation/manual.txt
|
|
%{_bindir}/convert-dtsv0
|
|
%{_bindir}/dtc
|
|
%{_bindir}/dtdiff
|
|
%{_bindir}/fdtdump
|
|
%{_bindir}/fdtget
|
|
%{_bindir}/fdtput
|
|
%{_bindir}/fdtoverlay
|
|
|
|
%post -n libfdt%{sover} -p /sbin/ldconfig
|
|
%postun -n libfdt%{sover} -p /sbin/ldconfig
|
|
|
|
%files -n libfdt%{sover}
|
|
%{_libdir}/libfdt-%{version}.so
|
|
%{_libdir}/libfdt.so.*
|
|
|
|
%files -n libfdt-devel
|
|
%{_libdir}/libfdt.so
|
|
%{_includedir}/*
|
|
|
|
%changelog
|