summaryrefslogtreecommitdiffstats
path: root/package/acpica
diff options
context:
space:
mode:
authorErico Nunes <nunes.erico@gmail.com>2016-07-03 12:45:35 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-07-05 10:12:42 +0200
commit0639d15d3aff49acd006c489c039df329df52b31 (patch)
tree75acb51ae2d176a10d007fb30d503cb135f5a93f /package/acpica
parent49d97993d83f92bb975110a7ff49ea75a84ee2c2 (diff)
downloadbuildroot-0639d15d3aff49acd006c489c039df329df52b31.tar.gz
buildroot-0639d15d3aff49acd006c489c039df329df52b31.zip
acpica: new package
The ACPI Component Architecture (ACPICA) project provides an operating system (OS)-independent reference implementation of the Advanced Configuration and Power Interface Specification (ACPI). It contains tools such as acpidump, iasl, acpixtract, etc. Signed-off-by: Erico Nunes <nunes.erico@gmail.com> Cc: Romain Naour <romain.naour@gmail.com> Cc: Peter Korsgaard <peter@korsgaard.com> Reviewed-by: Romain Naour <romain.naour@gmail.com> [Thomas: adjust install flags to -m755.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/acpica')
-rw-r--r--package/acpica/Config.in9
-rw-r--r--package/acpica/acpica.hash2
-rw-r--r--package/acpica/acpica.mk26
3 files changed, 37 insertions, 0 deletions
diff --git a/package/acpica/Config.in b/package/acpica/Config.in
new file mode 100644
index 0000000000..74d1f26aca
--- /dev/null
+++ b/package/acpica/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_ACPICA
+ bool "acpica"
+ help
+ The ACPI Component Architecture (ACPICA) project provides an
+ operating system (OS)-independent reference implementation
+ of the Advanced Configuration and Power Interface
+ Specification (ACPI).
+
+ https://www.acpica.org
diff --git a/package/acpica/acpica.hash b/package/acpica/acpica.hash
new file mode 100644
index 0000000000..8d5257ff26
--- /dev/null
+++ b/package/acpica/acpica.hash
@@ -0,0 +1,2 @@
+# locally computed hash
+sha256 4ac73a5887b643dcca483f0241cbb808a53326846928edad9a2f86cffcde5850 acpica-unix2-20160527.tar.gz
diff --git a/package/acpica/acpica.mk b/package/acpica/acpica.mk
new file mode 100644
index 0000000000..b8459d8759
--- /dev/null
+++ b/package/acpica/acpica.mk
@@ -0,0 +1,26 @@
+################################################################################
+#
+# acpica
+#
+################################################################################
+
+ACPICA_VERSION = 20160527
+ACPICA_SOURCE = acpica-unix2-$(ACPICA_VERSION).tar.gz
+ACPICA_SITE = https://acpica.org/sites/acpica/files
+ACPICA_LICENSE = BSD-3c or GPLv2
+ACPICA_LICENSE_FILES = source/include/acpi.h
+ACPICA_DEPENDENCIES = host-bison host-flex
+
+define ACPICA_BUILD_CMDS
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
+ HARDWARE_NAME=$(BR2_ARCH) HOST=_LINUX CC="$(TARGET_CC)" \
+ all
+endef
+
+define ACPICA_INSTALL_TARGET_CMDS
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
+ HARDWARE_NAME=$(BR2_ARCH) DESTDIR="$(TARGET_DIR)" \
+ INSTALLFLAGS=-m755 install
+endef
+
+$(eval $(generic-package))
OpenPOWER on IntegriCloud