blob: 51ae77b7840cb801a1a35f07adc468af2c71cec5 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001SUMMARY = "ACPICA tools for the development and debug of ACPI tables"
2DESCRIPTION = "The ACPI Component Architecture (ACPICA) project provides an \
3OS-independent reference implementation of the Advanced Configuration and \
4Power Interface Specification (ACPI). ACPICA code contains those portions of \
5ACPI meant to be directly integrated into the host OS as a kernel-resident \
6subsystem, and a small set of tools to assist in developing and debugging \
7ACPI tables."
8
9HOMEPAGE = "http://www.acpica.org/"
10SECTION = "console/tools"
11
12LICENSE = "BSD | GPLv2"
13LIC_FILES_CHKSUM = "file://generate/unix/readme.txt;md5=204407e197c1a01154a48f6c6280c3aa"
14
15COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux"
16
17DEPENDS = "bison flex"
18
19SRC_URI = "https://acpica.org/sites/acpica/files/acpica-unix2-${PV}.tar.gz \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050020 file://rename-yy_scan_string-manually.patch \
21 file://manipulate-fds-instead-of-FILE.patch;striplevel=2 \
22 file://0001-Linux-add-support-for-X32-ABI-compilation.patch \
23 "
24SRC_URI[md5sum] = "48ef4314fb4ffdd0c96f14dcf20544e1"
25SRC_URI[sha256sum] = "b2d81e84107ac9a02be86ea43cbea7afa8fd4b4150270bc88c2d4c9fea0b8aad"
26UPSTREAM_CHECK_URI = "https://acpica.org/downloads"
27
28S = "${WORKDIR}/acpica-unix2-${PV}"
29
30inherit update-alternatives
31
32ALTERNATIVE_PRIORITY = "100"
33ALTERNATIVE_${PN} = "acpixtract"
34
35EXTRA_OEMAKE = "CC='${CC}' 'OPT_CFLAGS=-Wall'"
36
37do_install() {
38 install -D -p -m0755 generate/unix/bin*/iasl ${D}${bindir}/iasl
39 install -D -p -m0755 generate/unix/bin*/acpibin ${D}${bindir}/acpibin
40 install -D -p -m0755 generate/unix/bin*/acpiexec ${D}${bindir}/acpiexec
41 install -D -p -m0755 generate/unix/bin*/acpihelp ${D}${bindir}/acpihelp
42 install -D -p -m0755 generate/unix/bin*/acpinames ${D}${bindir}/acpinames
43 install -D -p -m0755 generate/unix/bin*/acpisrc ${D}${bindir}/acpisrc
44 install -D -p -m0755 generate/unix/bin*/acpixtract ${D}${bindir}/acpixtract
45}
46
47# iasl*.bb is a subset of this recipe, so RREPLACE it
48PROVIDES = "iasl"
49RPROVIDES_${PN} += "iasl"
50RREPLACES_${PN} += "iasl"
Brad Bishop316dfdd2018-06-25 12:45:53 -040051RCONFLICTS_${PN} += "iasl"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050052
Brad Bishopd7bf8c12018-02-25 22:55:05 -050053BBCLASSEXTEND = "native"