fix double dash when building a renamed kernel (e.g. linux-zen)

This commit is contained in:
Jan Alexander Steffens 2011-10-26 15:18:34 +00:00
parent 2725258c12
commit 21d06cdf91

View File

@ -124,10 +124,10 @@ package_linux() {
# gzip -9 all modules to save 100MB of space # gzip -9 all modules to save 100MB of space
find "${pkgdir}" -name '*.ko' -exec gzip -9 {} \; find "${pkgdir}" -name '*.ko' -exec gzip -9 {} \;
# make room for external modules # make room for external modules
ln -s "../extramodules-${_basekernel}-${_kernelname:-ARCH}" "${pkgdir}/lib/modules/${_kernver}/extramodules" ln -s "../extramodules-${_basekernel}${_kernelname:--ARCH}" "${pkgdir}/lib/modules/${_kernver}/extramodules"
# add real version for building modules and running depmod from post_install/upgrade # add real version for building modules and running depmod from post_install/upgrade
mkdir -p "${pkgdir}/lib/modules/extramodules-${_basekernel}-${_kernelname:-ARCH}" mkdir -p "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--ARCH}"
echo "${_kernver}" > "${pkgdir}/lib/modules/extramodules-${_basekernel}-${_kernelname:-ARCH}/version" echo "${_kernver}" > "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--ARCH}/version"
} }
package_linux-headers() { package_linux-headers() {