mirror of
https://gitee.com/open-loongarch/buildroot-2024.08.git
synced 2026-10-28 22:17:12 +08:00
first commit: base 2024.08
Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
config BR2_PACKAGE_LINUXCONSOLETOOLS
|
||||
bool "linuxconsoletools"
|
||||
select BR2_PACKAGE_LINUXCONSOLETOOLS_INPUTATTACH if \
|
||||
!BR2_PACKAGE_LINUXCONSOLETOOLS_JOYSTICK && \
|
||||
!BR2_PACKAGE_LINUXCONSOLETOOLS_FORCEFEEDBACK
|
||||
help
|
||||
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.
|
||||
|
||||
http://sf.net/projects/linuxconsole/
|
||||
|
||||
if BR2_PACKAGE_LINUXCONSOLETOOLS
|
||||
|
||||
config BR2_PACKAGE_LINUXCONSOLETOOLS_INPUTATTACH
|
||||
bool "inputattach"
|
||||
default y
|
||||
help
|
||||
The inputattach utility attaches legacy serial devices
|
||||
to the Linux kernel input layer.
|
||||
|
||||
config BR2_PACKAGE_LINUXCONSOLETOOLS_JOYSTICK
|
||||
bool "joystick utilities"
|
||||
help
|
||||
Joystick utilities (jstest, jscal, jscal-store,
|
||||
jscal-restore, evdev-joystick).
|
||||
|
||||
config BR2_PACKAGE_LINUXCONSOLETOOLS_FORCEFEEDBACK
|
||||
bool "force-feedback utilities"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
select BR2_PACKAGE_SDL2
|
||||
help
|
||||
Build force-feedback driver utilities (fftest,
|
||||
ffmvforce, ffset, ffcfstress).
|
||||
|
||||
comment "force-feedback utilities need a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 4da29745c782b7db18f5f37c49e77bf163121dd3761e2fc7636fa0cbf35c2456 linuxconsoletools-1.8.1.tar.bz2
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
|
||||
@@ -0,0 +1,41 @@
|
||||
################################################################################
|
||||
#
|
||||
# linuxconsoletools
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LINUXCONSOLETOOLS_VERSION = 1.8.1
|
||||
LINUXCONSOLETOOLS_SOURCE = linuxconsoletools-$(LINUXCONSOLETOOLS_VERSION).tar.bz2
|
||||
LINUXCONSOLETOOLS_SITE = https://downloads.sourceforge.net/project/linuxconsole
|
||||
LINUXCONSOLETOOLS_LICENSE = GPL-2.0+
|
||||
LINUXCONSOLETOOLS_LICENSE_FILES = COPYING
|
||||
|
||||
ifneq ($(BR2_PACKAGE_LINUXCONSOLETOOLS_INPUTATTACH),y)
|
||||
LINUXCONSOLETOOLS_MAKE_OPTS += DISABLE_INPUTATTACH=1
|
||||
endif
|
||||
|
||||
ifneq ($(BR2_PACKAGE_LINUXCONSOLETOOLS_JOYSTICK),y)
|
||||
LINUXCONSOLETOOLS_MAKE_OPTS += DISABLE_JOYSTICK=1
|
||||
endif
|
||||
|
||||
ifneq ($(BR2_PACKAGE_LINUXCONSOLETOOLS_FORCEFEEDBACK),y)
|
||||
LINUXCONSOLETOOLS_MAKE_OPTS += DISABLE_FORCEFEEDBACK=1
|
||||
else
|
||||
LINUXCONSOLETOOLS_MAKE_OPTS += CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
|
||||
LINUXCONSOLETOOLS_DEPENDENCIES += sdl2 host-pkgconf
|
||||
endif
|
||||
|
||||
define LINUXCONSOLETOOLS_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
||||
$(LINUXCONSOLETOOLS_MAKE_OPTS)
|
||||
endef
|
||||
|
||||
define LINUXCONSOLETOOLS_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
||||
$(LINUXCONSOLETOOLS_MAKE_OPTS) \
|
||||
DESTDIR="$(TARGET_DIR)" \
|
||||
PREFIX=/usr \
|
||||
install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user