Fix kernel_source macro to match the directory that kernel sources are installed in

https://bugzilla.redhat.com/show_bug.cgi?id=648996
This commit is contained in:
Toshio Kuratomi 2012-10-03 17:30:10 -07:00 committed by Ville Skyttä
parent 2f654df096
commit f41a8a73aa

2
macros
View File

@ -239,7 +239,7 @@ kernel_module_package_release 1
done \ done \
fi \ fi \
echo "%%global flavors_to_build ${flavors_to_build:-%%nil}" \ echo "%%global flavors_to_build ${flavors_to_build:-%%nil}" \
echo "%%global kernel_source() /usr/src/kernels/%kverrel-\\\$([ %%%%{1} = default ] || echo "%%%%{1}-")%_target_cpu" \ echo "%%global kernel_source() /usr/src/kernels/%kverrel-\\\$([ %%%%{1} = default ] || echo "%%%%{1}.")%_target_cpu" \
if [ ! -z "%{-f*}" ] \ if [ ! -z "%{-f*}" ] \
then \ then \
filelist="%{-f*}" \ filelist="%{-f*}" \