Summary: Das U-Boot - Tizen bootloader
Group: System/Kernel
License: GPL-2.0+
-ExclusiveArch: %{arm}
+ExclusiveArch: %{arm} aarch64
URL: https://review.tizen.org/git/?p=kernel/u-boot.git
Source0: %{name}-%{version}.tar.bz2
Source1001: u_boot.manifest
%global use_mmc_storage 1
%endif
+%ifarch aarch64
+%define tool tools-only
+%else
+%define tool tools
+%endif
+
%prep
%setup -q -n %{name}-%{version}
make $CONFIG
# Build tools
-make %{?_smp_mflags} HOSTCC="gcc $RPM_OPT_FLAGS" HOSTSTRIP=/bin/true tools
+make %{?_smp_mflags} HOSTCC="gcc $RPM_OPT_FLAGS" HOSTSTRIP=/bin/true %{tool}
%if 1%{?use_mmc_storage}
make HOSTCC="gcc $RPM_OPT_FLAGS" CONFIG_ENV_IS_IN_MMC=y env
make HOSTCC="gcc $RPM_OPT_FLAGS" env
%endif
+%ifarch %{arm}
# Build u-boot
export PATH="$PATH:tools:tools/dtc/"
make %{?_smp_mflags} EXTRAVERSION=`echo %{vcs} | sed 's/.*u-boot.*#\(.\{9\}\).*/-g\1-TIZEN.org/'`
tr '\0' '\n' < copy_env_common.o > default_envs.txt
mkenvimage -s 16384 -o params.bin default_envs.txt
rm copy_env_common.o default_envs.txt
+%endif
%install
rm -rf %{buildroot}
( cd %{buildroot}%{_bindir}; ln -sf fw_printenv fw_setenv )
# u-boot installation
+%ifarch %{arm}
mkdir -p %{buildroot}/var/tmp/u-boot
install -d %{buildroot}/var/tmp/u-boot
install -m 755 u-boot.bin %{buildroot}/var/tmp/u-boot
install -m 755 u-boot-mmc.bin %{buildroot}/var/tmp/u-boot
install -m 755 params.bin %{buildroot}/var/tmp/u-boot
+%endif
%clean
+%ifarch %{arm}
%files
%manifest u_boot.manifest
%defattr(-,root,root,-)
/var/tmp/u-boot
+%endif
%files -n u-boot-tools
%manifest u_boot.manifest