mirror of
https://git.yoctoproject.org/poky
synced 2026-05-01 06:32:11 +02:00
to avoid this build error on x32: | strip: Unable to recognise the format of the input file `test-libacpi' | make: *** [test-libacpi] Error 1 | ERROR: oe_runmake failed (From OE-Core rev: 4d7882a57210c88dd9e2b8619b2bd0fa4bdbf9f8) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
30 lines
956 B
BlitzBasic
30 lines
956 B
BlitzBasic
SUMMARY = "ACPI data gathering library."
|
|
DESCRIPTION = "General purpose shared library for programs gathering ACPI data on Linux. \
|
|
Thermal zones, battery infomration, fan information and AC states are implemented."
|
|
SECTION = "base"
|
|
HOMEPAGE = "http://www.ngolde.de/libacpi.html"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=fec17f82f16630adf2dfb7d2a46f21c5"
|
|
PR = "r4"
|
|
|
|
SRC_URI = "http://www.ngolde.de/download/libacpi-${PV}.tar.gz \
|
|
file://makefile-fix.patch \
|
|
file://libacpi_fix_for_x32.patch \
|
|
file://use_correct_strip_in_cross_environment.patch"
|
|
|
|
SRC_URI[md5sum] = "05b53dd7bead66dda35fec502b91066c"
|
|
SRC_URI[sha256sum] = "13086e31d428b9c125954d48ac497b754bbbce2ef34ea29ecd903e82e25bad29"
|
|
|
|
PACKAGES += "${PN}-bin"
|
|
|
|
FILES_${PN} = "${libdir}/libacpi.so.*"
|
|
FILES_${PN}-bin = "${bindir}"
|
|
|
|
COMPATIBLE_HOST = '(x86_64|i.86).*-(linux|freebsd.*)'
|
|
|
|
CFLAGS += "-fPIC"
|
|
|
|
do_install() {
|
|
oe_runmake install DESTDIR=${D} PREFIX=${exec_prefix}
|
|
}
|