Fix 'build' symlink creation (for kernel-devel package)

This commit is contained in:
Marek Marczykowski 2011-04-17 00:46:07 +02:00
parent b5c869e976
commit 9ce84ab899

View File

@ -217,6 +217,8 @@ find %buildroot/lib/modules/%kernelrelease -name "*.ko" -type f >modnames
# Move the devel headers out of the root file system
mkdir -p %buildroot/usr/src/kernels
mv %buildroot/lib/modules/%kernelrelease/build/* %buildroot/%src_install_dir
mv %buildroot/lib/modules/%kernelrelease/build/.config %buildroot/%src_install_dir
rmdir %buildroot/lib/modules/%kernelrelease/build
ln -sf $src_install_dir %buildroot/lib/modules/%kernelrelease/build