sys-kernel/sim_buffalo: add check for correct configured kernel

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/genlink@2476 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one
2010-10-05 20:01:23 +00:00
parent 11dc6f041c
commit cfb4a35921
3 changed files with 13 additions and 9 deletions

View File

@@ -19,16 +19,17 @@ DEPEND=""
RDEPEND="virtual/linux-sources"
RESTRICT="mirror"
S=${WORKDIR}/sim_buffalo
MODULE_NAMES="sim_buffalo(misc:${S}:${S}/kernel)"
BUILD_TARGETS="kernel-mod"
BUILD_PARAMS="KSRC=${KERNEL_DIR}"
pkg_setup() {
MODULE_NAMES="sim_buffalo(misc:${S}:${S}/kernel)"
BUILD_TARGETS="kernel-mod"
BUILD_PARAMS="KSRC=${KERNEL_DIR}"
src_unpack() {
unpack ${A}
if ! linux_chkconfig_present GPIO_SYSFS; then
ewarn "You don't have GPIO_SYSFS support enabled in the kernel."
ewarn "The /proc/buffalo simulator wont work."
fi
}
src_compile() {