File firmware-imx.spec of Package firmware-imx
#
# spec file for package firmware-imx
#
# Copyright (c) 2025 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 abbrev 27879f8
Name: firmware-imx
Version: 8.25
Release: 0
Summary: Freescale i.MX Firmware files used for boot
License: NXP Software License
Group: System/Boot
URL: https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/
Source0: firmware-imx-%{version}-%{abbrev}.bin
BuildArch: noarch
ExclusiveArch: aarch64
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Freescale i.MX Firmware files used for boot
%prep
%build
sh %SOURCE0 --auto-accept
%install
%define ddr_dir %{_builddir}/%{name}-%{version}-%{abbrev}/firmware/ddr/synopsys
for f in lpddr4_dmem_1d_v202201.bin lpddr4_dmem_2d_v202201.bin lpddr4_imem_1d_v202201.bin lpddr4_imem_2d_v202201.bin; do
install -D -m 0644 %{ddr_dir}/$f %{buildroot}%{_datadir}/%{name}/$f
done
%files
%defattr(-,root,root)
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/lpddr4*bin
%changelog