cpuid: fix do_install

Fix do_install to make cpuid-doc installed correctly

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Changqing Li
2024-02-04 11:36:04 +08:00
committed by Khem Raj
parent fb98797c96
commit 8c327fadfa
2 changed files with 42 additions and 4 deletions
@@ -8,6 +8,7 @@ LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
SRC_URI = "http://www.etallen.com/${BPN}/${BP}.src.tar.gz \
file://0001-Makefile-update-the-hardcode-path-to-bindir-mandir.patch \
"
SRC_URI[sha256sum] = "b1c83045efc26076307751e0662d580277f5f9bf89cf027231a7812003c3a4e8"
@@ -15,9 +16,10 @@ COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
inherit perlnative
# The install rule from the Makefile has hardcoded paths, so we duplicate
# the actions to accommodate different paths.
do_install () {
install -D -m 0755 ${B}/cpuid ${D}/${bindir}/cpuid
install -D -m 0444 ${B}/cpuid.man.gz ${D}/${mandir}
oe_runmake DESTDIR=${D} bindir=${bindir} mandir=${mandir} install
}
RDEPENDS:${PN} = "perl"
INSANE_SKIP:${PN} += "already-stripped"