Copy Qubes-specific modules from %_sourcedir

When building outside of repository, ensure that all sources will be in
builddir.
This commit is contained in:
Marek Marczykowski 2013-03-19 22:38:33 +01:00
parent 3d2838b750
commit d509e647c5

View File

@ -85,7 +85,7 @@ Source205: patches.xen
Source207: patches.kernel.org Source207: patches.kernel.org
Source300: patches.qubes Source300: patches.qubes
Source301: u2mfn Source301: u2mfn
Source302: vm-initramfs-pre-udev Source302: vm-initramfs
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: x86_64 ExclusiveArch: x86_64
@ -104,6 +104,11 @@ SYMBOLS="xen-dom0 %{build_flavor}"
# Unpack all sources and patches # Unpack all sources and patches
%setup -q -c -T -a 0 %setup -q -c -T -a 0
if [ %{_sourcedir} != %{_builddir} ]; then
cp -r %{SOURCE301} %{_builddir}/
cp -r %{SOURCE302} %{_builddir}/
fi
mkdir -p %kernel_build_dir mkdir -p %kernel_build_dir
cd linux-%version cd linux-%version