logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git
commit: b89685c32730730ac3dd04033d7eaf2307fda830
parent 5770e9b04cfcddeb228520bd9961953a225639af
Author: Michael Forney <mforney@mforney.org>
Date:   Mon, 24 Feb 2020 13:13:01 -0800

Add libgpiod 1.5

Diffstat:

M.gitmodules3+++
Mpkg/gen.lua1+
Apkg/libgpiod/config.h33+++++++++++++++++++++++++++++++++
Apkg/libgpiod/gen.lua20++++++++++++++++++++
Apkg/libgpiod/src1+
Apkg/libgpiod/ver1+
6 files changed, 59 insertions(+), 0 deletions(-)

diff --git a/.gitmodules b/.gitmodules @@ -117,6 +117,9 @@ path = pkg/libfido2/src url = https://github.com/Yubico/libfido2.git ignore = all +[submodule "pkg/libgpiod/src"] + path = pkg/libgpiod/src + url = https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git [submodule "pkg/libinput/src"] path = pkg/libinput/src url = https://github.com/oasislinux/libinput diff --git a/pkg/gen.lua b/pkg/gen.lua @@ -43,6 +43,7 @@ subgen 'libevdev' subgen 'libevent' subgen 'libffi' subgen 'libfido2' +subgen 'libgpiod' subgen 'libinput' subgen 'libjpeg-turbo' subgen 'libliftoff' diff --git a/pkg/libgpiod/config.h b/pkg/libgpiod/config.h @@ -0,0 +1,33 @@ +#define GPIOD_VERSION_STR "1.5" +/* #undef HAVE_CATCH2_CATCH_HPP */ +/* #undef HAVE_CXX11 */ +#define HAVE_DIRENT_H 1 +#define HAVE_DLFCN_H 1 +#define HAVE_GETOPT_H 1 +#define HAVE_INTTYPES_H 1 +#define HAVE_LINUX_GPIO_H 1 +#define HAVE_LINUX_VERSION_H 1 +#define HAVE_MALLOC 1 +#define HAVE_MEMORY_H 1 +#define HAVE_STDINT_H 1 +#define HAVE_STDLIB_H 1 +#define HAVE_STRINGS_H 1 +#define HAVE_STRING_H 1 +#define HAVE_SYS_POLL_H 1 +#define HAVE_SYS_SIGNALFD_H 1 +#define HAVE_SYS_STAT_H 1 +#define HAVE_SYS_SYSMACROS_H 1 +#define HAVE_SYS_TYPES_H 1 +#define HAVE_UNISTD_H 1 +#define LT_OBJDIR ".libs/" +#define PACKAGE "libgpiod" +#define PACKAGE_BUGREPORT "" +#define PACKAGE_NAME "libgpiod" +#define PACKAGE_STRING "libgpiod 1.5" +#define PACKAGE_TARNAME "libgpiod" +#define PACKAGE_URL "" +#define PACKAGE_VERSION "1.5" +#define STDC_HEADERS 1 +#define VERSION "1.5" +#define _GNU_SOURCE /**/ +/* #undef malloc */ diff --git a/pkg/libgpiod/gen.lua b/pkg/libgpiod/gen.lua @@ -0,0 +1,20 @@ +cflags{ + '-std=c99', '-Wall', '-Wextra', '-Wpedantic', + '-I $srcdir/include', + '-I $builddir/pkg/linux-headers/include', + '-include $dir/config.h', +} + +pkg.deps = { + 'pkg/linux-headers/headers', +} + +lib('libgpiod.a', 'lib/(core.c ctxless.c helpers.c iter.c misc.c)') + +cc('tools/tools-common.c') +for _, tool in ipairs{'gpiodetect', 'gpioinfo', 'gpioget', 'gpioset', 'gpiomon', 'gpiofind'} do + exe(tool, {'tools/'..tool..'.c', 'tools/tools-common.c.o', 'libgpiod.a'}) + file('bin/'..tool, '755', '$outdir/'..tool) +end + +fetch 'git' diff --git a/pkg/libgpiod/src b/pkg/libgpiod/src @@ -0,0 +1 @@ +Subproject commit 17797fbf273dff0ff958dd1542f177b36ff22114 diff --git a/pkg/libgpiod/ver b/pkg/libgpiod/ver @@ -0,0 +1 @@ +1.5 r0