blob: e9aa67d56a9594af7909132f5cdd5c373e98b3d9 [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
19SRCREV = "0d833715eaa65636dda2705b89359a1e0154dc58"
20# Lookout for PV bump too when SRCREV is changed
21PV = "21+git${SRCPV}"
22
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}