Move all to deprecated folder.

This commit is contained in:
2016-11-16 21:57:57 +01:00
parent 01738a7684
commit 05de7d6c04
9777 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
diff -urN joystick-20051019.orig/utils/jscal.c joystick-20051019/utils/jscal.c
--- joystick-20051019.orig/utils/jscal.c 2004-10-19 09:51:52.000000000 +0200
+++ joystick-20051019/utils/jscal.c 2009-01-18 10:48:50.000000000 +0100
@@ -141,10 +141,10 @@
c = 32767.0 / (inputs.cmin[1] - inputs.cmax[0]);
d = 32767.0 / (inputs.cmin[2] - inputs.cmax[1]);
- results[0] = rint(a);
- results[1] = rint(b);
- results[2] = rint(c*16384.0);
- results[3] = rint(d*16384.0);
+ results[0] = (int) (a + 0.5);
+ results[1] = (int) (b + 0.5);
+ results[2] = (int) (c*16384.0 + 0.5);
+ results[3] = (int) (d*16384.0 + 0.5);
return 1;
}

View File

@@ -0,0 +1,27 @@
config BR2_PACKAGE_INPUT_TOOLS
bool "input-tools"
help
Tools for the Linux kernel input layer.
http://linuxconsole.sourceforge.net/
if BR2_PACKAGE_INPUT_TOOLS
config BR2_PACKAGE_INPUT_TOOLS_INPUTATTACH
bool "inputattach"
default y
help
Inputattach is used for attaching a serial line to the input layer.
config BR2_PACKAGE_INPUT_TOOLS_JSCAL
bool "jscal"
default y
help
Joystick calibration program.
config BR2_PACKAGE_INPUT_TOOLS_JSTEST
bool "jstest"
default y
help
Joystick test program.
endif

View File

@@ -0,0 +1,4 @@
# From http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/j/joystick/joystick_20051019-12.dsc
sha256 cb60cb62093f1889a91fcef1cc36546aba406f451941e8d057f095639e6afb89 joystick_20051019.orig.tar.gz
# From http://snapshot.debian.org/archive/debian/20090630T220234Z/pool/main/j/joystick/joystick_20051019-5.dsc
sha256 01e9d14a656d594a3e261751233200f740a09c2a538ac71447c104ffe89ec10c joystick_20051019-5.diff.gz

View File

@@ -0,0 +1,44 @@
################################################################################
#
# input-tools
#
################################################################################
INPUT_TOOLS_VERSION = 20051019
INPUT_TOOLS_SOURCE = joystick_$(INPUT_TOOLS_VERSION).orig.tar.gz
INPUT_TOOLS_PATCH = joystick_$(INPUT_TOOLS_VERSION)-5.diff.gz
INPUT_TOOLS_SITE = http://snapshot.debian.org/archive/debian/20101023T043132Z/pool/main/j/joystick
INPUT_TOOLS_LICENSE = GPLv2+
INPUT_TOOLS_LICENSE_FILES = utils/Makefile
INPUT_TOOLS_TARGETS_$(BR2_PACKAGE_INPUT_TOOLS_INPUTATTACH) += inputattach
INPUT_TOOLS_TARGETS_$(BR2_PACKAGE_INPUT_TOOLS_JSCAL) += jscal
INPUT_TOOLS_TARGETS_$(BR2_PACKAGE_INPUT_TOOLS_JSTEST) += jstest
define INPUT_TOOLS_DEBIAN_PATCHES
if [ -d $(@D)/debian/patches ]; then \
$(APPLY_PATCHES) $(@D) $(@D)/debian/patches \*.patch; \
fi
endef
INPUT_TOOLS_POST_PATCH_HOOKS = INPUT_TOOLS_DEBIAN_PATCHES
# jscal needs -lm
define INPUT_TOOLS_BUILD_CMDS
for i in $(filter-out jscal,$(INPUT_TOOLS_TARGETS_y)); do \
$(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/$$i $(@D)/utils/$$i.c \
$(TARGET_LDFLAGS); \
done
for i in $(filter jscal,$(INPUT_TOOLS_TARGETS_y)); do \
$(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/$$i $(@D)/utils/$$i.c \
$(TARGET_LDFLAGS) -lm; \
done
endef
define INPUT_TOOLS_INSTALL_TARGET_CMDS
for i in $(INPUT_TOOLS_TARGETS_y); do \
$(INSTALL) -m 755 -D $(@D)/$$i $(TARGET_DIR)/usr/bin/$$i; \
done
endef
$(eval $(generic-package))