2010-10-05 20:34:05 +02:00
|
|
|
# Copyright 1999-2010 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
EAPI="2"
|
|
|
|
|
|
|
|
inherit eutils linux-mod
|
|
|
|
|
2010-10-08 19:10:44 +02:00
|
|
|
DESCRIPTION="Amodule that simulates the /proc/buffalo interface"
|
|
|
|
HOMEPAGE="http://tyche.pu-toyama.ac.jp/~a-urasim/lsxhl/kernel-memo.html"
|
2010-10-05 20:34:05 +02:00
|
|
|
SRC_URI="http://tyche.pu-toyama.ac.jp/~a-urasim/lsxhl/data/sim_buffalo.tgz -> ${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~arm"
|
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
DEPEND=""
|
|
|
|
|
|
|
|
RDEPEND="virtual/linux-sources"
|
|
|
|
|
|
|
|
S=${WORKDIR}/sim_buffalo
|
|
|
|
|
2010-10-05 22:01:23 +02:00
|
|
|
pkg_setup() {
|
|
|
|
MODULE_NAMES="sim_buffalo(misc:${S}:${S}/kernel)"
|
|
|
|
BUILD_TARGETS="kernel-mod"
|
|
|
|
BUILD_PARAMS="KSRC=${KERNEL_DIR}"
|
2010-10-05 20:34:05 +02:00
|
|
|
|
2010-10-05 22:01:23 +02:00
|
|
|
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
|
2010-10-05 20:34:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
linux-mod_src_compile
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
linux-mod_src_install
|
|
|
|
generate_modulesd
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
linux-mod_pkg_postinst
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postrm() {
|
|
|
|
linux-mod_pkg_postrm
|
|
|
|
}
|