blob: 62e83c477bafb352867d57e2eefe7a968aebb736 [file] [log] [blame]
Patrick Williamse69d2352017-02-23 20:56:04 -06001SUMMARY = "Intel ASL compiler/decompiler"
2DESCRIPTION = "This is a cross development C compiler, assembler and linker environment for the production of 8086 executables (Optionally MSDOS COM)"
3HOMEPAGE = "http://www.acpica.org/"
4LICENSE = "Intel-ACPI"
5LIC_FILES_CHKSUM = "file://source/compiler/aslcompiler.h;beginline=7;endline=114;md5=09f82edcd148ab4c8aa554bc3e9d0676"
6SECTION = "console/tools"
7
8DEPENDS = "bison-native flex-native"
9
10SRC_URI = "https://www.acpica.org/sites/acpica/files/acpica-unix-${PV}.tar.gz \
11 file://iasl.1 \
12 file://Make-CC-definition-conditional.patch \
13"
14
15SRC_URI[md5sum] = "be677fc358de9dadc036e1ea678a101b"
16SRC_URI[sha256sum] = "6b681732624de1eb58b2bcf1c7ef0744ba14ed35fcaa534d4421574782fbb848"
17
18S = "${WORKDIR}/acpica-unix-${PV}/"
19
20BBCLASSEXTEND = "native"
21CFLAGS += "-D_LINUX -DACPI_ASL_COMPILER -I../include -I../compiler"
22
23COMPATIBLE_HOST = "(x86_64.*|i.86.*)-linux"
24
25# By setting NOOPT we suppress forcing -O2 and setting _FORTIFY_SOURCE=2. Let the
26# optimization and security cflags set them.
27#
28do_compile() {
29 oe_runmake iasl NOOPT=TRUE NOFORTIFY=TRUE
30}
31
32do_install() {
33 install -d ${D}${bindir} ${D}${mandir}/man1
34 install -m 0755 ${S}/generate/unix/bin/iasl ${D}${bindir}
35 install -m 0644 ${WORKDIR}/iasl.1 ${D}${mandir}/man1
36}