kernel-snapshot: kernel hooks support, misc changes.

This commit is contained in:
Juan RP 2011-07-10 00:46:36 +02:00
parent 1d71597b8b
commit 53549729d8
3 changed files with 4 additions and 32 deletions

View File

@ -1,14 +0,0 @@
#
# This script builds the required initramfs.
#
_KVER="3.0.0-rc6"
case "${ACTION}" in
post)
if [ ! -f var/lib/initramfs-tools/${_KVER} ]; then
update-initramfs -c -t -k ${_KVER}
else
update-initramfs -u -t -k ${_KVER}
fi
;;
esac

View File

@ -1,10 +0,0 @@
#
# This script removes the initramfs.
#
_KVER="3.0.0-rc6"
case "${ACTION}" in
post)
update-initramfs -d -t -k ${_KVER}
;;
esac

View File

@ -3,11 +3,11 @@
. ${XBPS_SRCPKGDIR}/kernel/template
# Reset some stuff.
unset revision triggers build_depends run_depends
unset revision
# Override required vars.
pkgname=kernel-snapshot
#revision=1
revision=1
_kernel_headers_revision=${revision}
_kernel_snapshot=yes
_kernel_ver=3.0
@ -31,9 +31,5 @@ if [ -n "$revision" ]; then
_kernver="${_kernver}_${revision}"
fi
Add_dependency run linux-firmware
Add_dependency run initramfs-tools
Add_dependency build xz
Add_dependency build coreutils
Add_dependency build perl ">=0"
Add_dependency full module-init-tools
# Kernel hooks support.
kernel_hooks_version="${_kernver}"