summaryrefslogtreecommitdiffstats
path: root/package/linuxconsoletools/0001-conditional-build.patch
diff options
context:
space:
mode:
authorKoen Martens <gmc@sonologic.nl>2017-06-19 18:55:06 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-06-19 21:42:54 +0200
commit9d274324de74d0b9ea58d88f1807184879a7b615 (patch)
tree05126c8c1fa9d34196cd525fa89012464519996e /package/linuxconsoletools/0001-conditional-build.patch
parent6a20a98f4b5e576b7c3dc844951b0153963b739a (diff)
downloadbuildroot-9d274324de74d0b9ea58d88f1807184879a7b615.tar.gz
buildroot-9d274324de74d0b9ea58d88f1807184879a7b615.zip
linuxconsoletools: new package
Linuxconsoletools contains the inputattach utility to attach legacy serial devices to the Linux kernel input layer and joystick utilities to calibrate and test joysticks and joypads. The buildroot package adds options to build only certain tools. website: http://sf.net/projects/linuxconsole/ Signed-off-by: Koen Martens <gmc@sonologic.nl> [Thomas: minor tweaks to Config.in and .mk file.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/linuxconsoletools/0001-conditional-build.patch')
-rw-r--r--package/linuxconsoletools/0001-conditional-build.patch58
1 files changed, 58 insertions, 0 deletions
diff --git a/package/linuxconsoletools/0001-conditional-build.patch b/package/linuxconsoletools/0001-conditional-build.patch
new file mode 100644
index 0000000000..9f462a6436
--- /dev/null
+++ b/package/linuxconsoletools/0001-conditional-build.patch
@@ -0,0 +1,58 @@
+Selectively build groups of tools (inputattach,
+joystick tools and/or force-feedback tools).
+
+Signed-off-by: Koen Martens <gmc@sonologic.nl>
+
+diff -Naur a/utils/Makefile b/utils/Makefile
+--- a/utils/Makefile 2016-04-19 23:28:36.000000000 +0200
++++ b/utils/Makefile 2017-06-19 08:54:20.152184000 +0200
+@@ -27,8 +27,26 @@
+
+ CFLAGS ?= -g -O2 -Wall
+
+-PROGRAMS = inputattach jstest jscal fftest ffmvforce ffset \
+- ffcfstress jscal-restore jscal-store evdev-joystick
++PROGRAMS =
++
++ifdef ENABLE_INPUTATTACH
++PROGRAMS += inputattach
++endif
++
++ifdef ENABLE_JOYSTICK
++PROGRAMS += jstest
++PROGRAMS += jscal
++PROGRAMS += jscal-restore
++PROGRAMS += jscal-store
++PROGRAMS += evdev-joystick
++endif
++
++ifdef ENABLE_FORCEFEEDBACK
++PROGRAMS += fftest
++PROGRAMS += ffmvforce
++PROGRAMS += ffset
++PROGRAMS += ffcfstress
++endif
+
+ PREFIX ?= /usr/local
+
+@@ -79,13 +97,20 @@
+ 80-stelladaptor-joystick.rules: 80-stelladaptor-joystick.rules.in
+ sed "s^@@PREFIX@@^$(PREFIX)^g" < $^ > $@
+
++INSTALL_DEP = compile
++ifdef ENABLE_JOYSTICK
++INSTALL_DEP += 80-stelladaptor-joystick.rules
++endif
++
+ install: compile 80-stelladaptor-joystick.rules
+ install -d $(DESTDIR)$(PREFIX)/bin
+ install $(PROGRAMS) $(DESTDIR)$(PREFIX)/bin
++ifdef ENABLE_JOYSTICK
+ install -d $(DESTDIR)$(PREFIX)/share/joystick
+ install extract filter ident $(DESTDIR)$(PREFIX)/share/joystick
+ install -d $(DESTDIR)/lib/udev/rules.d
+ install js-set-enum-leds $(DESTDIR)/lib/udev
+ install -m 644 80-stelladaptor-joystick.rules $(DESTDIR)/lib/udev/rules.d
++endif
+
+ .PHONY: compile clean distclean install
OpenPOWER on IntegriCloud