File imx-atf.spec of Package imx-atf

#
# spec file for package imx-atf
#
# 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/
#

Name:           imx-atf
Version:        28affcae
Release:        0
Summary:        NXP i.MX93 Arm Trusted Firmware-A
License:        BSD-3-Clause
Group:          System/Boot
URL:            https://github.com/nxp-imx/imx-atf
Source0:        imx-atf-%{version}.tar.xz
BuildArch:      noarch
ExclusiveArch:  aarch64
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Trusted Firmware-A (TF-A) is a reference implementation of secure world
software for Arm A-Profile architectures (Armv8-A and Armv7-A), including
an Exception Level 3 (EL3) Secure Monitor.

%prep
%setup -q

%build
make PLAT=imx93 IMX_BOOT_UART_BASE= DEBUG=0 bl31
make clean BUILD_BASE=build-optee
make BUILD_BASE=build-optee PLAT=imx93 IMX_BOOT_UART_BASE= DEBUG=0 SPD=opteed bl31

%install
export NO_BRP_STRIP_DEBUG=true
export NO_DEBUGINFO_STRIP_DEBUG=true

install -D -m 0644 build/imx93/release/bl31.bin %{buildroot}%{_datadir}/%{name}/bl31-imx93.bin
install -D -m 0644 build-optee/imx93/release/bl31.bin %{buildroot}%{_datadir}/%{name}/bl31-imx93-optee.bin

%files
%defattr(-,root,root)
%license license.rst
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*.bin

%changelog
openSUSE Build Service is sponsored by