Files @ bf6f64173507
Branch filter:

Location: portage-overlay.git/sys-kernel/lg4l-kernel-module/lg4l-kernel-module-9999.ebuild

bf6f64173507 1.2 KiB application/vnd.gentoo.ebuild Show Annotation Show as Raw Download as Raw
chain
add net-p2p/uhub to overlay
EAPI="2"
inherit eutils git linux-mod

DESCRIPTION="Kernel module for Logitech G13, G15, G19 and G110 keyboards"
HOMEPAGE="http://www.gnome15.org/"

# official repo
#EGIT_REPO_URI="git://github.com/martynsmith/lg4l.git"
# old fork
#EGIT_REPO_URI="git://github.com/CMoH/lg4l.git"
# new fork
EGIT_REPO_URI="git://github.com/tanktarta/lg4l.git"

LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE=""

# for some reason the build fails with parallel builds
MAKEOPTS=""

DEPEND="virtual/linux-sources"
RDEPEND=""

S="${WORKDIR}"

MODULE_NAMES="hid-g13(extra) hid-g15(extra) hid-g15v2(extra) hid-g510(extra) hid-g19(extra) hid-g110(extra) hid-gfb(extra)"

pkg_setup() {
	# framebuffer
	CONFIG_CHECK="FB FB_DEFERRED_IO"
	CONFIG_CHECK="${CONFIG_CHECK} FB_SYS_FILLRECT FB_SYS_COPYAREA FB_SYS_IMAGEBLIT"
	CONFIG_CHECK="${CONFIG_CHECK} FB_SYS_FOPS FB_HECUBA FB_N411"
	# LCD backlight
	CONFIG_CHECK="${CONFIG_CHECK} BACKLIGHT_LCD_SUPPORT LCD_CLASS_DEVICE"
	CONFIG_CHECK="${CONFIG_CHECK} BACKLIGHT_CLASS_DEVICE"
	# LED support
	CONFIG_CHECK="${CONFIG_CHECK} NEW_LEDS LEDS_CLASS"

	linux-mod_pkg_setup

	BUILD_PARAMS="-C ${KV_DIR} M=${S}"
	BUILD_TARGETS=" " # let the default target build the modules
}