Add buildroot 2018-02
This commit is contained in:
20
buildroot/package/libgpiod/Config.in
Normal file
20
buildroot/package/libgpiod/Config.in
Normal file
@@ -0,0 +1,20 @@
|
||||
config BR2_PACKAGE_LIBGPIOD
|
||||
bool "libgpiod"
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
|
||||
help
|
||||
This is a C library that abstracts the GPIO character
|
||||
device operations on linux.
|
||||
|
||||
https://github.com/brgl/libgpiod
|
||||
|
||||
if BR2_PACKAGE_LIBGPIOD
|
||||
|
||||
config BR2_PACKAGE_LIBGPIOD_TOOLS
|
||||
bool "install tools"
|
||||
help
|
||||
Include a set of command-line tools for managing GPIOs.
|
||||
|
||||
endif
|
||||
|
||||
comment "libgpiod needs kernel headers >= 4.8"
|
||||
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
|
||||
4
buildroot/package/libgpiod/libgpiod.hash
Normal file
4
buildroot/package/libgpiod/libgpiod.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# From https://www.kernel.org/pub/software/libs/libgpiod/sha256sums.asc
|
||||
sha256 50c7862428ca90b58672e2475aea66d33a6fc86c6bab1928c0660f3aedf44a37 libgpiod-0.3.2.tar.xz
|
||||
# Hash for license file
|
||||
sha256 ce64d5f7b49ea6d80fdb6d4cdee6839d1a94274f7493dc797c3b55b65ec8e9ed COPYING
|
||||
22
buildroot/package/libgpiod/libgpiod.mk
Normal file
22
buildroot/package/libgpiod/libgpiod.mk
Normal file
@@ -0,0 +1,22 @@
|
||||
################################################################################
|
||||
#
|
||||
# libgpiod
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBGPIOD_VERSION = 0.3.2
|
||||
LIBGPIOD_SOURCE = libgpiod-$(LIBGPIOD_VERSION).tar.xz
|
||||
LIBGPIOD_SITE = https://www.kernel.org/pub/software/libs/libgpiod
|
||||
LIBGPIOD_LICENSE = LGPL-2.1+
|
||||
LIBGPIOD_LICENSE_FILES = COPYING
|
||||
LIBGPIOD_INSTALL_STAGING = YES
|
||||
|
||||
LIBGPIOD_DEPENDENCIES = host-pkgconf
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBGPIOD_TOOLS),y)
|
||||
LIBGPIOD_CONF_OPTS += --enable-tools
|
||||
else
|
||||
LIBGPIOD_CONF_OPTS += --disable-tools
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user