To support vcgencmd in aarch64, add aarch64 build and package.
Change-Id: Ic9f69971c2451b0c21864e59d2d0a782caf6a0c6
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
BuildRequires: gcc-c++
BuildRequires: pkgconfig(libtbm)
BuildRequires: hal-api-common-devel
BuildRequires: gcc-c++
BuildRequires: pkgconfig(libtbm)
BuildRequires: hal-api-common-devel
+ExclusiveArch: %{arm} aarch64
%description
Libraries for interfacing to Raspberry Pi GPU.
%description
Libraries for interfacing to Raspberry Pi GPU.
%package utils
Group: System/Tools
Summary: System tools for the Raspberry Pi
%package utils
Group: System/Tools
Summary: System tools for the Raspberry Pi
%description devel
This package contains libraries and header files for developing applications that use Raspberry Pi GPU.
%description devel
This package contains libraries and header files for developing applications that use Raspberry Pi GPU.
%package -n vcgencmd
Group: System/Tools
%package -n vcgencmd
Group: System/Tools
+%ifarch %{arm}
+ ARM64=OFF
+%else
+ ARM64=ON
+%endif
BUILDTYPE=Release
BUILDSUBDIR=`echo $BUILDTYPE | tr '[A-Z]' '[a-z]'`;
mkdir -p build/armv7l-linux/$BUILDSUBDIR
pushd build/armv7l-linux/$BUILDSUBDIR
cmake -DCMAKE_BUILD_TYPE=Release ../../../ \
BUILDTYPE=Release
BUILDSUBDIR=`echo $BUILDTYPE | tr '[A-Z]' '[a-z]'`;
mkdir -p build/armv7l-linux/$BUILDSUBDIR
pushd build/armv7l-linux/$BUILDSUBDIR
cmake -DCMAKE_BUILD_TYPE=Release ../../../ \
- -DCMAKE_INSTALL_RPATH=%{_hal_libdir}/vc
+ -DCMAKE_INSTALL_RPATH=%{_hal_libdir}/vc \
+ -DARM64=$ARM64
make %{?_smp_mflags}
popd
make %{?_smp_mflags}
popd
mkdir -p %{buildroot}/etc/ld.so.conf.d/
cp %{_builddir}/%{name}-%{version}/packaging/libomxil-vc4.conf %{buildroot}/etc/ld.so.conf.d
mkdir -p %{buildroot}/opt/vc/lib/plugins
mkdir -p %{buildroot}/etc/ld.so.conf.d/
cp %{_builddir}/%{name}-%{version}/packaging/libomxil-vc4.conf %{buildroot}/etc/ld.so.conf.d
mkdir -p %{buildroot}/opt/vc/lib/plugins
cp -a %{_builddir}/%{name}-%{version}/vcinclude ./
cp %{_builddir}/%{name}-%{version}/host_applications/linux/libs/bcm_host/include/bcm_host.h ./
popd
cp -a %{_builddir}/%{name}-%{version}/vcinclude ./
cp %{_builddir}/%{name}-%{version}/host_applications/linux/libs/bcm_host/include/bcm_host.h ./
popd
# install and package vcgencmd to /hal with RPATH
BUILDTYPE=Release
# install and package vcgencmd to /hal with RPATH
BUILDTYPE=Release
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%manifest packaging/%{name}.manifest
%defattr(-,root,root)
%files
%manifest packaging/%{name}.manifest
%defattr(-,root,root)
/opt/vc/include/vcinclude
/opt/vc/include/*.h
/opt/vc/lib/pkgconfig/*.pc
/opt/vc/include/vcinclude
/opt/vc/include/*.h
/opt/vc/lib/pkgconfig/*.pc
%files -n vcgencmd
%manifest packaging/%{name}.manifest
%files -n vcgencmd
%manifest packaging/%{name}.manifest