blob: 3e8d87f9aa2f4878446914aaf704d793d14dc38a [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SECTION = "console/utils"
2SUMMARY = "Utilities for User-Mode-Linux"
3LICENSE = "GPL-2.0"
4DEPENDS = "zlib ncurses readline"
5LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
Brad Bishop7f28bc52017-12-03 23:42:40 -05006SRC_URI = "http://downloads.sourceforge.net/project/user-mode-linux/tools/1/uml_utilities_${PV}.tar.bz2 \
Patrick Williamsb48b7b42016-08-17 15:04:38 -05007 file://fix-ldflags.patch \
8 file://unstrip.patch \
Brad Bishop7f28bc52017-12-03 23:42:40 -05009 file://0001-include-required-system-header-files-for-fd_set-and-.patch \
10 "
Patrick Williamsb48b7b42016-08-17 15:04:38 -050011SRC_URI[md5sum] = "2c1ccd9efacbfb39e42d482b89b2550a"
12SRC_URI[sha256sum] = "4f179b1db021ef15ac7e9b2eed57c525db127a754c574f591c367460cded9f41"
13
14PR = "r1"
15
16S = "${WORKDIR}/tools"
17
Andrew Geisslerd688a012020-09-18 13:36:00 -050018inherit update-alternatives
19
Patrick Williamsb48b7b42016-08-17 15:04:38 -050020do_compile() {
Andrew Geisslere34f8962021-04-15 15:53:51 -050021 oe_runmake LIB_DIR=${libdir}/uml
Patrick Williamsb48b7b42016-08-17 15:04:38 -050022}
23
24do_install() {
25 oe_runmake install DESTDIR=${D}
26}
27
Patrick Williams213cb262021-08-07 19:21:33 -050028FILES:${PN} += "${libdir}/uml"
Andrew Geisslerd688a012020-09-18 13:36:00 -050029
Patrick Williams213cb262021-08-07 19:21:33 -050030ALTERNATIVE:${PN} = "tunctl"
Andrew Geisslerd688a012020-09-18 13:36:00 -050031ALTERNATIVE_LINK_NAME[tunctl] = "${bindir}/tunctl"