Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | # Copyright (C) 2012 Khem Raj <raj.khem@gmail.com> |
| 2 | # Released under the MIT license (see COPYING.MIT for the terms) |
| 3 | |
| 4 | SUMMARY = "Tools for managing Linux kernel modules" |
| 5 | DESCRIPTION = "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." |
| 7 | HOMEPAGE = "http://packages.profusion.mobi/kmod/" |
| 8 | LICENSE = "GPL-2.0+ & LGPL-2.1+" |
| 9 | LICENSE_libkmod = "LGPL-2.1+" |
| 10 | SECTION = "base" |
| 11 | |
| 12 | DEPENDS += "pkgconfig-native" |
| 13 | |
| 14 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ |
| 15 | file://libkmod/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ |
| 16 | " |
| 17 | inherit autotools gtk-doc |
| 18 | |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 19 | SRCREV = "114ec87c85c35a2bd3682f9f891e494127be6fb5" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 20 | # Lookout for PV bump too when SRCREV is changed |
| 21 | PV = "21+git${SRCPV}" |
| 22 | |
| 23 | SRC_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 | |
| 29 | S = "${WORKDIR}/git" |
| 30 | |
| 31 | EXTRA_AUTORECONF += "--install --symlink" |
| 32 | EXTRA_OECONF +=" --enable-tools --disable-manpages --with-zlib" |
| 33 | |
| 34 | PACKAGECONFIG[debug] = "--enable-debug,--disable-debug" |
| 35 | PACKAGECONFIG[logging] = " --enable-logging,--disable-logging" |
| 36 | |
| 37 | do_configure_prepend () { |
| 38 | gtkdocize --docdir ${S}/libkmod/docs || touch ${S}/libkmod/docs/gtk-doc.make |
| 39 | } |
| 40 | |
| 41 | do_configure_append () { |
| 42 | sed -i 's#}libtool#}${TARGET_SYS}-libtool#' ${B}/doltlibtool |
| 43 | } |