summaryrefslogtreecommitdiff
path: root/repo/acpica
diff options
context:
space:
mode:
Diffstat (limited to 'repo/acpica')
-rw-r--r--repo/acpica/acpica.xibuild25
-rw-r--r--repo/acpica/disable-werror.patch13
-rw-r--r--repo/acpica/iasl.xibuild7
3 files changed, 45 insertions, 0 deletions
diff --git a/repo/acpica/acpica.xibuild b/repo/acpica/acpica.xibuild
new file mode 100644
index 0000000..dcc24ce
--- /dev/null
+++ b/repo/acpica/acpica.xibuild
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+NAME="acpica"
+DESC="ACPI Component Architecture utilities"
+
+MAKEDEPS=" flex bison"
+
+PKG_VER=20210930
+SOURCE="https://acpica.org/sites/acpica/files/acpica-unix-$PKG_VER.tar.gz"
+
+ADDITIONAL="
+disable-werror.patch
+"
+
+prepare () {
+ apply_patches
+}
+
+build() {
+ make
+}
+
+package() {
+ make install DESTDIR="$PKG_DEST"
+}
diff --git a/repo/acpica/disable-werror.patch b/repo/acpica/disable-werror.patch
new file mode 100644
index 0000000..da0c7c8
--- /dev/null
+++ b/repo/acpica/disable-werror.patch
@@ -0,0 +1,13 @@
+diff --git a/generate/unix/Makefile.config b/generate/unix/Makefile.config
+index a1f0313..8c4e8e7 100644
+--- a/generate/unix/Makefile.config
++++ b/generate/unix/Makefile.config
+@@ -194,7 +194,7 @@ CWARNINGFLAGS = \
+ -Wall\
+ -Wbad-function-cast\
+ -Wdeclaration-after-statement\
+- -Werror\
++ -Wno-pointer-to-int-cast\
+ -Wformat=2\
+ -Wmissing-declarations\
+ -Wmissing-prototypes\
diff --git a/repo/acpica/iasl.xibuild b/repo/acpica/iasl.xibuild
new file mode 100644
index 0000000..8cd90ca
--- /dev/null
+++ b/repo/acpica/iasl.xibuild
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+DESC="ACPI ASL compiler"
+
+package () {
+ add_from_main usr/bin/iasl
+}