Add buildroot 2018-02
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
From 6267665454501512ac054202b38e4e6a72fa284b Mon Sep 17 00:00:00 2001
|
||||
From: Baruch Siach <baruch@tkos.co.il>
|
||||
Date: Fri, 8 Sep 2017 14:19:11 +0300
|
||||
Subject: [PATCH] Add missing ioctl header
|
||||
|
||||
The spidev.h header uses macros from linux/ioctl.h. Add this header
|
||||
explicitly since some libc, like musl, do not include it implicitly.
|
||||
This fixes the following build failure:
|
||||
|
||||
In file included from .../sysroot/usr/include/sys/ioctl.h:7:0,
|
||||
from hd44780-spi.c:31:
|
||||
hd44780-spi.c: In function ‘spi_transfer’:
|
||||
hd44780-spi.c:89:24: error: ‘_IOC_SIZEBITS’ undeclared (first use in this function)
|
||||
status = ioctl(p->fd, SPI_IOC_MESSAGE(1), &xfer);
|
||||
^
|
||||
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
||||
---
|
||||
Upstream status: https://github.com/lcdproc/lcdproc/pull/90
|
||||
|
||||
server/drivers/hd44780-pifacecad.c | 1 +
|
||||
server/drivers/hd44780-spi.c | 1 +
|
||||
2 files changed, 2 insertions(+)
|
||||
|
||||
diff --git a/server/drivers/hd44780-pifacecad.c b/server/drivers/hd44780-pifacecad.c
|
||||
index a73b9f9b1f82..55139124d852 100644
|
||||
--- a/server/drivers/hd44780-pifacecad.c
|
||||
+++ b/server/drivers/hd44780-pifacecad.c
|
||||
@@ -54,6 +54,7 @@
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
+#include <linux/ioctl.h>
|
||||
#include <stdint.h>
|
||||
#include <linux/spi/spidev.h>
|
||||
|
||||
diff --git a/server/drivers/hd44780-spi.c b/server/drivers/hd44780-spi.c
|
||||
index 791156f87a26..74c85fb014aa 100644
|
||||
--- a/server/drivers/hd44780-spi.c
|
||||
+++ b/server/drivers/hd44780-spi.c
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
+#include <linux/ioctl.h>
|
||||
#include <stdint.h>
|
||||
#include <linux/spi/spidev.h>
|
||||
|
||||
--
|
||||
2.14.1
|
||||
|
||||
18
buildroot/package/lcdproc/0001-LCDd.conf.patch
Normal file
18
buildroot/package/lcdproc/0001-LCDd.conf.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
Fix the default LCDd configuration file, so that the DriverPath
|
||||
is set to the correct lcdproc library install path, rather than
|
||||
the dummy/default path.
|
||||
|
||||
Signed-off-by: Simon Dawson <spdawson at gmail.com>
|
||||
---
|
||||
|
||||
--- lcdproc-0.5.3/LCDd.conf.orig 2009-06-20 14:48:34.000000000 +0100
|
||||
+++ lcdproc-0.5.3/LCDd.conf 2010-05-11 10:02:21.000000000 +0100
|
||||
@@ -34,7 +34,7 @@
|
||||
# the driver modules and will thus not be able to
|
||||
# function properly.
|
||||
# NOTE: Always place a slash as last character !
|
||||
-DriverPath=server/drivers/
|
||||
+DriverPath=/usr/lib/lcdproc/
|
||||
|
||||
# Tells the server to load the given drivers. Multiple lines can be given.
|
||||
# The name of the driver is case sensitive and determines the section
|
||||
29
buildroot/package/lcdproc/Config.in
Normal file
29
buildroot/package/lcdproc/Config.in
Normal file
@@ -0,0 +1,29 @@
|
||||
comment "lcdproc needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
|
||||
config BR2_PACKAGE_LCDPROC
|
||||
bool "lcdproc"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on !BR2_STATIC_LIBS
|
||||
select BR2_PACKAGE_FREETYPE
|
||||
select BR2_PACKAGE_NCURSES
|
||||
select BR2_PACKAGE_ZLIB
|
||||
help
|
||||
LCD display driver daemon and clients
|
||||
|
||||
http://lcdproc.org/
|
||||
|
||||
if BR2_PACKAGE_LCDPROC
|
||||
|
||||
config BR2_PACKAGE_LCDPROC_DRIVERS
|
||||
string "List of drivers to build"
|
||||
default "all"
|
||||
help
|
||||
Specify a comma-separated list of lcdproc drivers to be built
|
||||
|
||||
config BR2_PACKAGE_LCDPROC_MENUS
|
||||
bool "Menu support"
|
||||
help
|
||||
Enable support for lcdproc menus
|
||||
|
||||
endif
|
||||
3
buildroot/package/lcdproc/lcdproc.hash
Normal file
3
buildroot/package/lcdproc/lcdproc.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed:
|
||||
sha256 843007d377adc856529ed0c7c42c9a7563043f06b1b73add0372bba3a3029804 lcdproc-0.5.7.tar.gz
|
||||
sha256 d48a915496c96ff775b377d2222de3150ae5172bfb84a6ec9f9ceab962f97b83 lcdproc-0.5.9.tar.gz
|
||||
31
buildroot/package/lcdproc/lcdproc.mk
Normal file
31
buildroot/package/lcdproc/lcdproc.mk
Normal file
@@ -0,0 +1,31 @@
|
||||
################################################################################
|
||||
#
|
||||
# lcdproc
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LCDPROC_VERSION = 0.5.9
|
||||
LCDPROC_SITE = https://github.com/lcdproc/lcdproc/releases/download/v$(LCDPROC_VERSION)
|
||||
LCDPROC_LICENSE = GPL-2.0+
|
||||
LCDPROC_LICENSE_FILES = COPYING
|
||||
LCDPROC_MAKE = $(MAKE1)
|
||||
|
||||
LCDPROC_CONF_OPTS = --enable-drivers=$(BR2_PACKAGE_LCDPROC_DRIVERS)
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LCDPROC_MENUS),y)
|
||||
LCDPROC_CONF_OPTS += --enable-lcdproc-menus
|
||||
endif
|
||||
|
||||
LCDPROC_DEPENDENCIES = freetype ncurses zlib
|
||||
|
||||
LCDPROC_CONF_ENV += ac_cv_path_FT2_CONFIG=$(STAGING_DIR)/usr/bin/freetype-config
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
||||
LCDPROC_DEPENDENCIES += libpng
|
||||
LCDPROC_CONF_ENV += ac_cv_path__png_config=$(STAGING_DIR)/usr/bin/libpng-config
|
||||
LCDPROC_CONF_OPTS += --enable-libpng
|
||||
else
|
||||
LCDPROC_CONF_OPTS += --disable-libpng
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user