blob: 54bc1b21f16d9dcf923e8001e87d288415bb27c6 [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 \
Patrick Williamse760df82023-05-26 11:10:49 -050011 file://0001-cow.c-Replace-stat64-with-stat.patch \
12 file://0001-makefiles-Append-to-CFLAGS-instead-of-re-assign.patch \
Brad Bishop7f28bc52017-12-03 23:42:40 -050013 "
Patrick Williamsb48b7b42016-08-17 15:04:38 -050014SRC_URI[md5sum] = "2c1ccd9efacbfb39e42d482b89b2550a"
15SRC_URI[sha256sum] = "4f179b1db021ef15ac7e9b2eed57c525db127a754c574f591c367460cded9f41"
16
17PR = "r1"
18
19S = "${WORKDIR}/tools"
20
Andrew Geisslerd688a012020-09-18 13:36:00 -050021inherit update-alternatives
22
Patrick Williamsb48b7b42016-08-17 15:04:38 -050023do_compile() {
Andrew Geisslere34f8962021-04-15 15:53:51 -050024 oe_runmake LIB_DIR=${libdir}/uml
Patrick Williamsb48b7b42016-08-17 15:04:38 -050025}
26
27do_install() {
Andrew Geissler9aee5002022-03-30 16:27:02 +000028 oe_runmake install DESTDIR=${D} LIB_DIR=${libdir}/uml
Patrick Williamsb48b7b42016-08-17 15:04:38 -050029}
30
Patrick Williams213cb262021-08-07 19:21:33 -050031FILES:${PN} += "${libdir}/uml"
Andrew Geisslerd688a012020-09-18 13:36:00 -050032
Patrick Williams213cb262021-08-07 19:21:33 -050033ALTERNATIVE:${PN} = "tunctl"
Andrew Geisslerd688a012020-09-18 13:36:00 -050034ALTERNATIVE_LINK_NAME[tunctl] = "${bindir}/tunctl"