initial buildroot for linux 5.15

This commit is contained in:
Huan.Feng
2021-12-06 14:12:13 +08:00
parent d7767d594e
commit 7b6fc358fa
12736 changed files with 508822 additions and 0 deletions
@@ -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
+40
View File
@@ -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 95d112f06393806116341d593bda002c8bc44119c1538407623268fed90d8c34 linuxconsoletools-1.7.0.tar.bz2
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
@@ -0,0 +1,41 @@
################################################################################
#
# linuxconsoletools
#
################################################################################
LINUXCONSOLETOOLS_VERSION = 1.7.0
LINUXCONSOLETOOLS_SOURCE = linuxconsoletools-$(LINUXCONSOLETOOLS_VERSION).tar.bz2
LINUXCONSOLETOOLS_SITE = https://downloads.sourceforge.net/project/linuxconsole
LINUXCONSOLETOOLS_LICENSE = GPL-2.0+
LINUXCONSOLETOOLS_LICENSE_FILES = COPYING
ifeq ($(BR2_PACKAGE_LINUXCONSOLETOOLS_INPUTATTACH),y)
LINUXCONSOLETOOLS_MAKE_OPTS += ENABLE_INPUTATTACH=1
endif
ifeq ($(BR2_PACKAGE_LINUXCONSOLETOOLS_JOYSTICK),y)
LINUXCONSOLETOOLS_MAKE_OPTS += ENABLE_JOYSTICK=1
endif
ifeq ($(BR2_PACKAGE_LINUXCONSOLETOOLS_FORCEFEEDBACK),y)
LINUXCONSOLETOOLS_MAKE_OPTS += \
ENABLE_FORCEFEEDBACK=1 \
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))