core/linux: buildarch, /usr/lib changes

This commit is contained in:
Kevin Mihelich 2012-07-16 12:44:14 -06:00
parent 7be76df38c
commit da2b3bc850

View file

@ -1,8 +1,7 @@
# Maintainer: Mike Staszel <mikestaszel@plugapps.com>
# Maintainer: Kevin Mihelich <kevin@plugapps.com>
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
noautobuild=1
plugrel=1
buildarch=2
pkgbase=linux
pkgname=('linux' 'linux-headers')
@ -78,6 +77,9 @@ build() {
# 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
@ -151,6 +153,12 @@ package_linux() {
# install cryptodev module
cd "${srcdir}/cryptodev-linux-${cryptover}"
make -C "${srcdir}/linux-${_basekernel}" INSTALL_MOD_PATH="${pkgdir}" SUBDIRS=`pwd` modules_install
# move module tree /lib -> /usr/lib
mv "$pkgdir/lib" "$pkgdir/usr"
# Now we call depmod...
depmod -b "$pkgdir" -F System.map "$_kernver"
}
package_linux-headers() {
@ -159,10 +167,10 @@ package_linux-headers() {
conflicts=('kernel26-headers')
replaces=('kernel26-headers')
mkdir -p "${pkgdir}/lib/modules/${_kernver}"
install -dm755 "${pkgdir}/usr/lib/modules/${_kernver}"
cd "${pkgdir}/lib/modules/${_kernver}"
ln -sf ../../../usr/src/linux-${_kernver} build
cd "${pkgdir}/usr/lib/modules/${_kernver}"
ln -sf ../../../src/linux-${_kernver} build
cd "${srcdir}/linux-${_basekernel}"
install -D -m644 Makefile \