|
|
cb60b0 |
Name: dtc
|
|
|
cb60b0 |
Version: 1.4.6
|
|
|
cb60b0 |
Release: 1%{?dist}
|
|
|
cb60b0 |
Summary: Device Tree Compiler
|
|
|
cb60b0 |
Group: Development/Tools
|
|
|
cb60b0 |
License: GPLv2+
|
|
|
cb60b0 |
URL: https://devicetree.org/
|
|
|
cb60b0 |
Source: https://github.com/dgibson/dtc/archive/v%{version}.tar.gz
|
|
|
cb60b0 |
|
|
|
cb60b0 |
|
|
|
cb60b0 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
cb60b0 |
|
|
|
cb60b0 |
BuildRequires: gcc make
|
|
|
cb60b0 |
BuildRequires: flex, bison
|
|
|
cb60b0 |
|
|
|
cb60b0 |
%description
|
|
|
cb60b0 |
Devicetree is a data structure for describing hardware. Rather than hard coding
|
|
|
cb60b0 |
every detail of a device into an operating system, many aspects of the hardware
|
|
|
cb60b0 |
can be described in a data structure that is passed to the operating system at
|
|
|
cb60b0 |
boot time. The devicetree is used by OpenFirmware, OpenPOWER Abstraction Layer
|
|
|
cb60b0 |
(OPAL), Power Architecture Platform Requirements (PAPR) and in the standalone
|
|
|
cb60b0 |
Flattened Device Tree (FDT) form.
|
|
|
cb60b0 |
|
|
|
cb60b0 |
%package -n libfdt
|
|
|
cb60b0 |
Summary: Device tree library
|
|
|
cb60b0 |
Group: Development/Libraries
|
|
|
cb60b0 |
|
|
|
cb60b0 |
%description -n libfdt
|
|
|
cb60b0 |
libfdt is a library to process Open Firmware style device trees on various
|
|
|
cb60b0 |
architectures.
|
|
|
cb60b0 |
|
|
|
cb60b0 |
%package -n libfdt-devel
|
|
|
cb60b0 |
Summary: Development headers for device tree library
|
|
|
cb60b0 |
Group: Development/Libraries
|
|
|
cb60b0 |
Requires: libfdt = %{version}-%{release}
|
|
|
cb60b0 |
|
|
|
cb60b0 |
%description -n libfdt-devel
|
|
|
cb60b0 |
This package provides development files for libfdt
|
|
|
cb60b0 |
|
|
|
cb60b0 |
%prep
|
|
|
cb60b0 |
%setup -q -n dtc-%{version}
|
|
|
cb60b0 |
|
|
|
cb60b0 |
|
|
|
cb60b0 |
%build
|
|
|
cb60b0 |
make %{?_smp_mflags} V=1 CC="gcc $RPM_OPT_FLAGS $RPM_LD_FLAGS" NO_PYTHON=1
|
|
|
cb60b0 |
|
|
|
cb60b0 |
%install
|
|
|
cb60b0 |
make install DESTDIR=$RPM_BUILD_ROOT SETUP_PREFIX=$RPM_BUILD_ROOT/usr PREFIX=/usr LIBDIR=%{_libdir} NO_PYTHON=1
|
|
|
cb60b0 |
rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.a
|
|
|
cb60b0 |
|
|
|
cb60b0 |
# we don't want or need ftdump, so drop
|
|
|
cb60b0 |
rm -f $RPM_BUILD_ROOT/%{_bindir}/ftdump
|
|
|
cb60b0 |
|
|
|
cb60b0 |
%post -n libfdt -p /sbin/ldconfig
|
|
|
cb60b0 |
|
|
|
cb60b0 |
%postun -n libfdt -p /sbin/ldconfig
|
|
|
cb60b0 |
|
|
|
cb60b0 |
%clean
|
|
|
cb60b0 |
rm -rf $RPM_BUILD_ROOT
|
|
|
cb60b0 |
|
|
|
cb60b0 |
%files
|
|
|
cb60b0 |
%defattr(-,root,root,-)
|
|
|
cb60b0 |
%license GPL
|
|
|
cb60b0 |
%doc Documentation/manual.txt
|
|
|
cb60b0 |
%{_bindir}/*
|
|
|
cb60b0 |
|
|
|
cb60b0 |
%files -n libfdt
|
|
|
cb60b0 |
%defattr(-,root,root,-)
|
|
|
cb60b0 |
%license GPL
|
|
|
cb60b0 |
%{_libdir}/libfdt-%{version}.so
|
|
|
cb60b0 |
%{_libdir}/libfdt.so.*
|
|
|
cb60b0 |
|
|
|
cb60b0 |
%files -n libfdt-devel
|
|
|
cb60b0 |
%defattr(-,root,root,-)
|
|
|
cb60b0 |
%{_libdir}/libfdt.so
|
|
|
cb60b0 |
%{_includedir}/*
|
|
|
cb60b0 |
|
|
|
cb60b0 |
%changelog
|
|
|
cb60b0 |
* Thu Aug 09 2018 Miroslav Rezanina <mrezanin@redhat.com> - 1.4.6-1
|
|
|
cb60b0 |
- Updated for RHEL 8 [bz#1518440]
|
|
|
cb60b0 |
- Resolves: bz#1518440
|
|
|
cb60b0 |
(Prepare dtc for RHEL-8.0 )
|
|
|
cb60b0 |
|
|
|
cb60b0 |
* Mon Mar 06 2017 Miroslav Rezanina <mrezanin@redhat.com> - 1.4.3-1
|
|
|
cb60b0 |
- Rebase to 1.4.3 [bz#1427157]
|
|
|
cb60b0 |
- Resolves: bz#1427157
|
|
|
cb60b0 |
(package libfdt 1.4.3, when available)
|
|
|
cb60b0 |
|
|
|
cb60b0 |
* Tue Aug 19 2014 Miroslav Rezanina <mrezanin@redhat.com> - 1.4.0-2
|
|
|
cb60b0 |
- Update power macro for ppc64le
|
|
|
cb60b0 |
|
|
|
cb60b0 |
* Fri Jul 25 2014 Miroslav Rezanina <mrezanin@redhat.com> - 1.4.0-1
|
|
|
cb60b0 |
- Initial version
|