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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user