SECTION = "console/utils"
DESCRIPTION = "Utilities for User-Mode-Linux"
LICENSE = "GPL-2.0"
DEPENDS = "zlib ncurses readline"
LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
SRC_URI = "http://downloads.sourceforge.net/project/user-mode-linux/tools/1/uml_utilities_${PV}.tar.bz2  \
           file://fix-ldflags.patch \
           file://unstrip.patch \
"
SRC_URI[md5sum] = "2c1ccd9efacbfb39e42d482b89b2550a"
SRC_URI[sha256sum] = "4f179b1db021ef15ac7e9b2eed57c525db127a754c574f591c367460cded9f41"

PR = "r1"

S = "${WORKDIR}/tools"

do_compile() {
    oe_runmake
}

do_install() {
    oe_runmake install DESTDIR=${D}
}

FILES_${PN} += "${libdir}"
FILES_${PN}-dbg += "${libdir}/uml/.debug"

SECTION = "console/utils"
DESCRIPTION = "Utilities for User-Mode-Linux"
LICENSE = "GPL-2.0"
DEPENDS = "zlib ncurses readline"
LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
SRC_URI = "http://downloads.sourceforge.net/project/user-mode-linux/tools/1/uml_utilities_${PV}.tar.bz2  \
           file://fix-ldflags.patch \
           file://unstrip.patch \
"
SRC_URI[md5sum] = "2c1ccd9efacbfb39e42d482b89b2550a"
SRC_URI[sha256sum] = "4f179b1db021ef15ac7e9b2eed57c525db127a754c574f591c367460cded9f41"

PR = "r1"

S = "${WORKDIR}/tools"

do_compile() {
    oe_runmake
}

do_install() {
    oe_runmake install DESTDIR=${D}
}

FILES_${PN} += "${exec_prefix}${nonarch_base_libdir}"
FILES_${PN}-dbg += "${exec_prefix}${nonarch_base_libdir}/uml/.debug"

Fix build errors exposed with multilib
uml-utilities: Fix build errors exposed with multilib

With multilib it cant package the files that go into
the arch independend lib dir

Fixes

ERROR: QA Issue: uml-utilities: Files/directories were installed but not
shipped
  /usr/lib
  /usr/lib/uml
  /usr/lib/uml/port-helper
  /usr/lib/uml/.debug
  /usr/lib/uml/.debug/port-helper

Signed-off-by: Khem Raj <729d64b6f67515e258459a5f6d20ec88b2caf8df@gmail.com>
Signed-off-by: Martin Jansa <516df3ff67e1fa5d153800b15fb204c0a1a389dc@gmail.com>
