blob: 35ae5f777d44fd2d4494903eae70f63a4dc0781c [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SECTION = "console/utils"
2SUMMARY = "Utilities for User-Mode-Linux"
Andrew Geissler9aee5002022-03-30 16:27:02 +00003LICENSE = "GPL-2.0-only"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05004DEPENDS = "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 \
Andrew Geissler87f5cff2022-09-30 13:13:31 -050010 file://0001-Add-missing-standard-headers-for-str-and-exit-APIs.patch \
Brad Bishop7f28bc52017-12-03 23:42:40 -050011 "
Patrick Williamsb48b7b42016-08-17 15:04:38 -050012SRC_URI[md5sum] = "2c1ccd9efacbfb39e42d482b89b2550a"
13SRC_URI[sha256sum] = "4f179b1db021ef15ac7e9b2eed57c525db127a754c574f591c367460cded9f41"
14
15PR = "r1"
16
17S = "${WORKDIR}/tools"
18
Andrew Geisslerd688a012020-09-18 13:36:00 -050019inherit update-alternatives
20
Patrick Williamsb48b7b42016-08-17 15:04:38 -050021do_compile() {
Andrew Geisslere34f8962021-04-15 15:53:51 -050022 oe_runmake LIB_DIR=${libdir}/uml
Patrick Williamsb48b7b42016-08-17 15:04:38 -050023}
24
25do_install() {
Andrew Geissler9aee5002022-03-30 16:27:02 +000026 oe_runmake install DESTDIR=${D} LIB_DIR=${libdir}/uml
Patrick Williamsb48b7b42016-08-17 15:04:38 -050027}
28
Patrick Williams213cb262021-08-07 19:21:33 -050029FILES:${PN} += "${libdir}/uml"
Andrew Geisslerd688a012020-09-18 13:36:00 -050030
Patrick Williams213cb262021-08-07 19:21:33 -050031ALTERNATIVE:${PN} = "tunctl"
Andrew Geisslerd688a012020-09-18 13:36:00 -050032ALTERNATIVE_LINK_NAME[tunctl] = "${bindir}/tunctl"