blob: b5c89fafc59456c8a7c5f69ace8d0bbbad2a347f [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001SUMMARY = "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 bison-native"
18
19SRC_URI = "https://acpica.org/sites/acpica/files/acpica-unix2-${PV}.tar.gz \
20 file://rename-yy_scan_string-manually.patch \
21 file://manipulate-fds-instead-of-FILE.patch \
22 "
23SRC_URI[md5sum] = "31691e2eb82b2064f78536a3423c18d6"
24SRC_URI[sha256sum] = "5d8fc9d9db9e04830d40bec9add04b21c05d466e0187d354815006fdd823cf15"
25UPSTREAM_CHECK_URI = "https://acpica.org/downloads"
26
27S = "${WORKDIR}/acpica-unix2-${PV}"
28
29inherit update-alternatives
30
31ALTERNATIVE_PRIORITY = "100"
32ALTERNATIVE_${PN} = "acpixtract"
33
34EXTRA_OEMAKE = "CC='${CC}' 'OPT_CFLAGS=-Wall'"
35
36do_install() {
37 install -D -p -m0755 generate/unix/bin*/iasl ${D}${bindir}/iasl
38 install -D -p -m0755 generate/unix/bin*/acpibin ${D}${bindir}/acpibin
39 install -D -p -m0755 generate/unix/bin*/acpiexec ${D}${bindir}/acpiexec
40 install -D -p -m0755 generate/unix/bin*/acpihelp ${D}${bindir}/acpihelp
41 install -D -p -m0755 generate/unix/bin*/acpinames ${D}${bindir}/acpinames
42 install -D -p -m0755 generate/unix/bin*/acpisrc ${D}${bindir}/acpisrc
43 install -D -p -m0755 generate/unix/bin*/acpixtract ${D}${bindir}/acpixtract
44}
45
46# iasl*.bb is a subset of this recipe, so RREPLACE it
47PROVIDES = "iasl"
48RPROVIDES_${PN} += "iasl"
49RREPLACES_${PN} += "iasl"
50RCONFLICTS_${PN} += "iasl"
51
52BBCLASSEXTEND = "native"