mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
lcd4linux: Switch to feckert fork
The original project is dead. feckert fork is active. Cleaned up Makefile to be more similar to others. Fixed PKG_MAINTAINER having wrong place. Added PKG_BUILD_PARALLEL for faster compilation. Added LICENSE information. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
--- a/plugin_netinfo.c
|
||||
+++ b/plugin_netinfo.c
|
||||
@@ -264,7 +264,7 @@ static void my_netmask_short(RESULT * re
|
||||
sin = get_netmask(arg1);
|
||||
if (NULL != sin) {
|
||||
logval = (long double) (get_netmask(arg1)->sin_addr.s_addr);
|
||||
- netlen = (int) rint(log2l(logval) / log2l(2.0));
|
||||
+ netlen = (int) rint(log2f(logval) / log2f(2.0));
|
||||
qprintf(value, sizeof(value), "/%d", netlen);
|
||||
} else {
|
||||
qprintf(value, sizeof(value), "/?");
|
||||
@@ -1,24 +0,0 @@
|
||||
--- a/drv_G15.c
|
||||
+++ b/drv_G15.c
|
||||
@@ -42,6 +42,7 @@
|
||||
|
||||
#include <usb.h>
|
||||
#include <fcntl.h>
|
||||
+#include <linux/version.h>
|
||||
#include <linux/input.h>
|
||||
#include <linux/uinput.h>
|
||||
|
||||
@@ -269,8 +270,13 @@ void drv_G15_initKeyHandling(char *devic
|
||||
}
|
||||
memset(&device, 0, sizeof(device));
|
||||
strncpy(device.name, "G15 Keys", UINPUT_MAX_NAME_SIZE);
|
||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
|
||||
device.id.bustype = BUS_USB;
|
||||
device.id.version = 4;
|
||||
+#else
|
||||
+ device.idbus = BUS_USB;
|
||||
+ device.idversion = 4;
|
||||
+#endif
|
||||
|
||||
ioctl(uinput_fd, UI_SET_EVBIT, EV_KEY);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -71,6 +71,8 @@ drv_generic_i2c.c \
|
||||
@@ -72,6 +72,8 @@ drv_generic_i2c.c \
|
||||
drv_generic_i2c.h \
|
||||
drv_generic_keypad.c \
|
||||
drv_generic_keypad.h \
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
#endif
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -119,6 +119,7 @@ drv_ShuttleVFD.c \
|
||||
@@ -120,6 +120,7 @@ drv_ShuttleVFD.c \
|
||||
drv_SimpleLCD.c \
|
||||
drv_T6963.c \
|
||||
drv_TeakLCM.c \
|
||||
|
||||
Reference in New Issue
Block a user