kernel: add missing build-deps; update headers.
This commit is contained in:
parent
49cb684caf
commit
316b94db1b
1 changed files with 39 additions and 47 deletions
|
@ -4,8 +4,6 @@ pkgname=kernel
|
||||||
version=3.7.1
|
version=3.7.1
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc="linux-${version}"
|
wrksrc="linux-${version}"
|
||||||
depends="dracut linux-firmware kmod>=11_2"
|
|
||||||
makedepends="perl kmod>=11_2 openssl"
|
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="http://www.kernel.org"
|
homepage="http://www.kernel.org"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
|
@ -21,6 +19,9 @@ preserve=yes
|
||||||
subpackages="kernel-headers"
|
subpackages="kernel-headers"
|
||||||
triggers="kernel-hooks"
|
triggers="kernel-hooks"
|
||||||
|
|
||||||
|
depends="dracut linux-firmware kmod>=11_2"
|
||||||
|
makedepends="perl kmod>=11_2 openssl which elfutils"
|
||||||
|
|
||||||
_kernver="${version}_${revision}"
|
_kernver="${version}_${revision}"
|
||||||
|
|
||||||
# These files could be modified when an external module is built.
|
# These files could be modified when an external module is built.
|
||||||
|
@ -129,19 +130,27 @@ do_install() {
|
||||||
fi
|
fi
|
||||||
cp arch/x86/kernel/asm-offsets.s ${hdrdest}/arch/x86/kernel
|
cp arch/x86/kernel/asm-offsets.s ${hdrdest}/arch/x86/kernel
|
||||||
|
|
||||||
# Add headers for lirc package
|
# add headers for lirc package
|
||||||
mkdir -p ${hdrdest}/drivers/media/video
|
# pci
|
||||||
cp drivers/media/video/*.h \
|
for i in bt8xx cx88 saa7134; do
|
||||||
${hdrdest}/drivers/media/video
|
mkdir -p ${hdrdest}/drivers/media/pci/${i}
|
||||||
for i in $(find ${hdrdest}/drivers/media/video/ -mindepth 1 -type d); do
|
cp -a drivers/media/pci/${i}/*.h ${hdrdest}/drivers/media/pci/${i}
|
||||||
_dir=$(basename $i)
|
done
|
||||||
mkdir -p ${hdrdest}/drivers/media/video/${_dir}
|
# usb
|
||||||
cp -a drivers/media/video/${_dir}/*.h \
|
for i in cpia2 em28xx pwc sn9c102; do
|
||||||
${hdrdest}/drivers/media/video/${_dir}
|
mkdir -p ${hdrdest}/drivers/media/usb/${i}
|
||||||
|
cp -a drivers/media/usb/${i}/*.h ${hdrdest}/drivers/media/usb/${i}
|
||||||
|
done
|
||||||
|
# i2c
|
||||||
|
mkdir -p ${hdrdest}/drivers/media/i2c
|
||||||
|
cp drivers/media/i2c/*.h ${hdrdest}/drivers/media/i2c
|
||||||
|
for i in cx25840; do
|
||||||
|
mkdir -p ${hdrdest}/drivers/media/i2c/${i}
|
||||||
|
cp -a drivers/media/i2c/${i}/*.h ${hdrdest}/drivers/media/i2c/${i}
|
||||||
done
|
done
|
||||||
|
|
||||||
# Add docbook makefile
|
# Add docbook makefile
|
||||||
install -D -m644 Documentation/DocBook/Makefile \
|
install -Dm644 Documentation/DocBook/Makefile \
|
||||||
${hdrdest}/Documentation/DocBook/Makefile
|
${hdrdest}/Documentation/DocBook/Makefile
|
||||||
|
|
||||||
# Add md headers
|
# Add md headers
|
||||||
|
@ -156,48 +165,31 @@ do_install() {
|
||||||
mkdir -p ${hdrdest}/net/mac80211/
|
mkdir -p ${hdrdest}/net/mac80211/
|
||||||
cp net/mac80211/*.h ${hdrdest}/net/mac80211
|
cp net/mac80211/*.h ${hdrdest}/net/mac80211
|
||||||
|
|
||||||
# Add dvb headers for external modules in reference to:
|
# add dvb headers for external modules
|
||||||
# http://bugs.archlinux.org/task/9912
|
mkdir -p ${hdrdest}/drivers/media/dvb-core
|
||||||
mkdir -p ${hdrdest}/drivers/media/dvb/dvb-core
|
cp drivers/media/dvb-core/*.h ${hdrdest}/drivers/media/dvb-core/
|
||||||
cp drivers/media/dvb/dvb-core/*.h \
|
mkdir -p ${hdrdest}include/config/dvb/
|
||||||
${hdrdest}/drivers/media/dvb/dvb-core
|
cp include/config/dvb/*.h ${hdrdest}/include/config/dvb/
|
||||||
|
|
||||||
# Add dvb headers for external modules in reference to:
|
# add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
|
||||||
# http://bugs.archlinux.org/task/11194
|
mkdir -p ${hdrdest}/drivers/media/dvb-frontends
|
||||||
mkdir -p ${hdrdest}/include/config/dvb
|
cp drivers/media/dvb-frontends/lgdt330x.h \
|
||||||
cp include/config/dvb/*.h ${hdrdest}/include/config/dvb
|
${hdrdest}/drivers/media/dvb-frontends/
|
||||||
|
cp drivers/media/i2c/msp3400-driver.h ${hdrdest}/drivers/media/i2c/
|
||||||
|
|
||||||
# Add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
|
# add dvb headers
|
||||||
# in reference to:
|
mkdir -p ${hdrdest}/drivers/media/usb/dvb-usb
|
||||||
# http://bugs.archlinux.org/task/13146
|
cp drivers/media/usb/dvb-usb/*.h ${hdrdest}/drivers/media/usb/dvb-usb/
|
||||||
mkdir -p ${hdrdest}/drivers/media/dvb/frontends
|
mkdir -p ${hdrdest}/drivers/media/dvb-frontends
|
||||||
cp drivers/media/dvb/frontends/lgdt330x.h \
|
cp drivers/media/dvb-frontends/*.h ${hdrdest}/drivers/media/dvb-frontends/
|
||||||
${hdrdest}/drivers/media/dvb/frontends
|
mkdir -p ${hdrdest}/drivers/media/tuners
|
||||||
cp drivers/media/video/msp3400-driver.h \
|
cp drivers/media/tuners/*.h ${hdrdest}/drivers/media/tuners/
|
||||||
${hdrdest}/drivers/media/dvb/frontends
|
|
||||||
|
|
||||||
# Add dvb headers in reference to:
|
|
||||||
# http://bugs.archlinux.org/task/20402
|
|
||||||
mkdir -p ${hdrdest}/drivers/media/dvb/dvb-usb
|
|
||||||
cp drivers/media/dvb/dvb-usb/*.h ${hdrdest}/drivers/media/dvb/dvb-usb
|
|
||||||
mkdir -p ${hdrdest}/drivers/media/dvb/frontends
|
|
||||||
cp drivers/media/dvb/frontends/*.h ${hdrdest}/drivers/media/dvb/frontends
|
|
||||||
mkdir -p ${hdrdest}/drivers/media/common/tuners
|
|
||||||
cp drivers/media/common/tuners/*.h ${hdrdest}/drivers/media/common/tuners
|
|
||||||
|
|
||||||
# Add xfs and shmem for aufs building
|
# Add xfs and shmem for aufs building
|
||||||
mkdir -p ${hdrdest}/fs/xfs
|
mkdir -p ${hdrdest}/fs/xfs
|
||||||
mkdir -p ${hdrdest}/mm
|
mkdir -p ${hdrdest}/mm
|
||||||
cp fs/xfs/xfs_sb.h ${hdrdest}/fs/xfs/xfs_sb.h
|
cp fs/xfs/xfs_sb.h ${hdrdest}/fs/xfs/xfs_sb.h
|
||||||
|
|
||||||
# Add headers vor virtualbox in reference to:
|
|
||||||
# http://bugs.archlinux.org/task/14568
|
|
||||||
cp -a include/drm ${hdrdest}/include
|
|
||||||
|
|
||||||
# Add headers for broadcom wl in reference to:
|
|
||||||
# http://bugs.archlinux.org/task/14568
|
|
||||||
cp -a include/trace ${hdrdest}/include
|
|
||||||
|
|
||||||
# Copy in Kconfig files
|
# Copy in Kconfig files
|
||||||
for i in $(find . -name "Kconfig*"); do
|
for i in $(find . -name "Kconfig*"); do
|
||||||
mkdir -p ${hdrdest}/$(echo $i | sed 's|/Kconfig.*||')
|
mkdir -p ${hdrdest}/$(echo $i | sed 's|/Kconfig.*||')
|
||||||
|
@ -215,5 +207,5 @@ do_install() {
|
||||||
find ${DESTDIR} -name '*.ko' -exec xz -9 {} \;
|
find ${DESTDIR} -name '*.ko' -exec xz -9 {} \;
|
||||||
|
|
||||||
# ... and run depmod again.
|
# ... and run depmod again.
|
||||||
depmod -b ${DESTDIR}/usr ${_kernver}
|
depmod -b ${DESTDIR}/usr -F System.map ${_kernver}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue