blob: 0bcdcf673fef9ce70d582f94f61a6079c9cc5ffd [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001# Copyright (C) 2012 Khem Raj <raj.khem@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms)
3
4SUMMARY = "Tools for managing Linux kernel modules"
5DESCRIPTION = "kmod is a set of tools to handle common tasks with Linux kernel modules like \
6 insert, remove, list, check properties, resolve dependencies and aliases."
7HOMEPAGE = "http://packages.profusion.mobi/kmod/"
8LICENSE = "GPL-2.0+ & LGPL-2.1+"
9LICENSE_libkmod = "LGPL-2.1+"
10SECTION = "base"
11
12DEPENDS += "pkgconfig-native"
13
14LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \
15 file://libkmod/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \
16 "
17inherit autotools gtk-doc
18
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050019SRCREV = "42f32b8ae45ad8e3a1da29c9b20af9b5e2e9e676"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050020# Lookout for PV bump too when SRCREV is changed
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050021PV = "22+git${SRCPV}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050022
23SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git \
24 file://depmod-search.conf \
25 file://avoid_parallel_tests.patch \
26 file://fix-O_CLOEXEC.patch \
27 "
28
29S = "${WORKDIR}/git"
30
31EXTRA_AUTORECONF += "--install --symlink"
32EXTRA_OECONF +=" --enable-tools --disable-manpages --with-zlib"
33
34PACKAGECONFIG[debug] = "--enable-debug,--disable-debug"
35PACKAGECONFIG[logging] = " --enable-logging,--disable-logging"
36
37do_configure_prepend () {
38 gtkdocize --docdir ${S}/libkmod/docs || touch ${S}/libkmod/docs/gtk-doc.make
39}
40
41do_configure_append () {
42 sed -i 's#}libtool#}${TARGET_SYS}-libtool#' ${B}/doltlibtool
43}