ARM: include the mach- headers on arm arches if they are available

This commit is contained in:
Dennis Gilmore 2012-06-28 14:08:30 -05:00
parent 694fdf18e6
commit e35f3f6061
1 changed files with 9 additions and 0 deletions

View File

@ -1748,6 +1748,12 @@ BuildKernel() {
if [ -d arch/%{asmarch}/include ]; then
cp -a --parents arch/%{asmarch}/include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
fi
# include the machine specific headers for ARM variants, if available.
%ifarch %{arm}
if [ -d arch/%{asmarch}/mach-${Flavour}/include ]; then
cp -a --parents arch/%{asmarch}/mach-${Flavour}/include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/
fi
%endif
cp -a include $RPM_BUILD_ROOT/lib/modules/$KernelVer/build/include
# Make sure the Makefile and version.h have a matching timestamp so that
@ -2388,6 +2394,9 @@ fi
# '-' | |
# '-'
%changelog
* Thu Jun 28 2012 Dennis Gilmore <dennis@ausil.us>
- include the mach- headers on arm arches if they are available
* Thu Jun 28 2012 Justin M. Forbes <jforbes@redhat.com>
- Team driver update