Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | DESCRIPTION = "This is a small collection of power management \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 2 | test and investigation tools" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 3 | HOMEPAGE = "http://lesswatts.org/projects/acpi" |
| 4 | LICENSE = "GPLv2+" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" |
| 6 | |
| 7 | PV = "20130209+git${SRCPV}" |
| 8 | |
| 9 | SRC_URI = "git://github.com/anyc/pmtools.git \ |
| 10 | file://pmtools-switch-to-dynamic-buffer-for-huge-ACPI-table.patch \ |
| 11 | " |
| 12 | SRCREV = "3ebe0e54c54061b4c627236cbe35d820de2e1168" |
| 13 | |
| 14 | COMPATIBLE_HOST = "(i.86|x86_64).*-linux" |
| 15 | |
| 16 | S = "${WORKDIR}/git" |
| 17 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 18 | inherit update-alternatives |
| 19 | |
| 20 | ALTERNATIVE_PRIORITY = "90" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 21 | ALTERNATIVE_${PN} = "acpixtract acpidump" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 22 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 23 | do_configure[noexec] = "1" |
| 24 | do_compile() { |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 25 | oe_runmake |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | do_install() { |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 29 | install -d ${D}${bindir} ${D}${docdir} |
| 30 | install -m 755 ${S}/acpidump/acpidump ${D}${bindir} |
| 31 | install -m 755 ${S}/acpixtract/acpixtract ${D}${bindir} |
| 32 | install -m 755 ${S}/madt/madt ${D}${bindir} |
| 33 | install -m 644 ${S}/README ${D}${docdir} |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 34 | } |