kernel: compress modules with xz, add another mutable file.
This commit is contained in:
parent
795f9182c2
commit
92c9605ebb
1 changed files with 9 additions and 3 deletions
|
@ -3,7 +3,6 @@
|
|||
pkgname=kernel
|
||||
_kmajorver=3.3
|
||||
version=${_kmajorver}.7
|
||||
build_requires=16
|
||||
nostrip=yes
|
||||
noverifyrdeps=yes
|
||||
preserve=yes
|
||||
|
@ -21,7 +20,7 @@ long_desc="
|
|||
distfiles="http://www.kernel.org/pub/linux//kernel/v3.x/linux-${version}.tar.xz"
|
||||
checksum=7a93d6c032826b1cad40fdf339596f1d86abd1d5d30b78c9eed5e5136a1f82ab
|
||||
|
||||
revision=1
|
||||
revision=2
|
||||
if [ -n "${revision}" ]; then
|
||||
_kernver="${version}_${revision}"
|
||||
else
|
||||
|
@ -35,7 +34,8 @@ mutable_files="
|
|||
/lib/modules/${_kernver}/modules.symbols
|
||||
/lib/modules/${_kernver}/modules.symbols.bin
|
||||
/lib/modules/${_kernver}/modules.alias
|
||||
/lib/modules/${_kernver}/modules.alias.bin"
|
||||
/lib/modules/${_kernver}/modules.alias.bin
|
||||
/lib/modules/${_kernver}/modules.devname"
|
||||
|
||||
do_configure() {
|
||||
# If there's a file called <arch>-dotconfig, use it to
|
||||
|
@ -206,4 +206,10 @@ do_install() {
|
|||
ia64 m* p* s* um v850 xtensa; do
|
||||
rm -rf ${hdrdest}/arch/${arch}
|
||||
done
|
||||
|
||||
# Compress all modules with xz to save a few MBs.
|
||||
msg_normal "$pkgver: compressing kernel modules with xz, please wait...\n"
|
||||
find ${DESTDIR} -name '*.ko' -exec xz -9 {} \;
|
||||
# ... and run depmod again.
|
||||
depmod -b ${DESTDIR} ${_kernver}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue