clean up linux build, use kernel script for depmod

This commit is contained in:
abveritas 2012-11-18 02:08:08 +00:00
parent 0b9eb846e6
commit 34f6f2717d

View File

@ -83,15 +83,11 @@ build() {
if [ "${_kernelname}" != "" ]; then
sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
sed -i "s|CONFIG_LOCALVERSION_AUTO=.*|CONFIG_LOCALVERSION_AUTO=n|" ./.config
fi
# set extraversion to pkgrel
sed -ri "s|^(EXTRAVERSION =).*|\1 -${pkgrel}|" Makefile
# don't run depmod on 'make install'. We'll do this ourselves in packaging
sed -i '2iexit 0' scripts/depmod.sh
# get kernel version
make prepare
@ -169,11 +165,6 @@ package_linux() {
mkdir -p "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--CHAKRA}"
echo "${_kernver}" > "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--CHAKRA}/version"
# Call depmod...
depmod -b "$pkgdir" -F System.map "$_kernver"
# Move module /lib -> /usr/lib
#mv "$pkgdir/lib" "$pkgdir/usr"
}
package_linux-headers() {