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 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 12 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ |
| 13 | file://libkmod/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ |
| 14 | " |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 15 | inherit autotools gtk-doc pkgconfig manpages |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 16 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 17 | SRCREV = "ef4257b59c4307b8c627d89f3c7f1feedb32582f" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 18 | # Lookout for PV bump too when SRCREV is changed |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 19 | PV = "24+git${SRCPV}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 20 | |
| 21 | SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git \ |
| 22 | file://depmod-search.conf \ |
| 23 | file://avoid_parallel_tests.patch \ |
| 24 | file://fix-O_CLOEXEC.patch \ |
| 25 | " |
| 26 | |
| 27 | S = "${WORKDIR}/git" |
| 28 | |
| 29 | EXTRA_AUTORECONF += "--install --symlink" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 30 | EXTRA_OECONF +=" --enable-tools --with-zlib" |
| 31 | |
| 32 | CACHED_CONFIGUREVARS += "ac_cv_path_DOLT_BASH='/usr/bin/env bash'" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 33 | |
| 34 | PACKAGECONFIG[debug] = "--enable-debug,--disable-debug" |
| 35 | PACKAGECONFIG[logging] = " --enable-logging,--disable-logging" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 36 | PACKAGECONFIG[manpages] = "--enable-manpages, --disable-manpages, libxslt-native xmlto-native" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 37 | |
| 38 | do_configure_prepend () { |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 39 | gtkdocize --docdir ${S}/libkmod/docs --srcdir ${S} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | do_configure_append () { |
| 43 | sed -i 's#}libtool#}${TARGET_SYS}-libtool#' ${B}/doltlibtool |
| 44 | } |