initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
From af6bffb5b8b71e99e0f9bbbd2cf1fbd695a643c2 Mon Sep 17 00:00:00 2001
|
||||
From: Samuel Martin <s.martin49@gmail.com>
|
||||
Date: Sat, 8 Dec 2012 13:32:40 +0100
|
||||
Subject: [PATCH 1/2] wmdemo: fix linking by adding the missing -lbluetooth to
|
||||
LDLIBS
|
||||
|
||||
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
|
||||
---
|
||||
wmdemo/Makefile.in | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/wmdemo/Makefile.in b/wmdemo/Makefile.in
|
||||
index 56aed58..1eccc02 100644
|
||||
--- a/wmdemo/Makefile.in
|
||||
+++ b/wmdemo/Makefile.in
|
||||
@@ -8,7 +8,7 @@ SOURCES = wmdemo.c
|
||||
|
||||
CFLAGS += -I@top_builddir@/libcwiid
|
||||
LDFLAGS += -L@top_builddir@/libcwiid
|
||||
-LDLIBS += -lcwiid
|
||||
+LDLIBS += -lcwiid -lbluetooth
|
||||
INST_DIR = @bindir@
|
||||
|
||||
include $(COMMON)/include/app.mak
|
||||
--
|
||||
1.8.5.2
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
From dbb578450974db5decc24560da4aeaed838849a1 Mon Sep 17 00:00:00 2001
|
||||
From: Samuel Martin <s.martin49@gmail.com>
|
||||
Date: Thu, 2 Jan 2014 14:03:07 +0100
|
||||
Subject: [PATCH 2/2] configure: make wmgui build optional
|
||||
|
||||
So, make gtk-2 and glib2 dependencies optional (only needed by wmgui)
|
||||
|
||||
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
|
||||
---
|
||||
Makefile.in | 2 +-
|
||||
configure.ac | 17 +++++++++++++----
|
||||
2 files changed, 14 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/Makefile.in b/Makefile.in
|
||||
index 6d3ac98..3d2fb45 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -3,7 +3,7 @@
|
||||
include @top_builddir@/defs.mak
|
||||
|
||||
LIB_DIRS = libcwiid
|
||||
-BIN_DIRS = wmgui wminput lswm
|
||||
+BIN_DIRS = @WMGUI@ wminput lswm
|
||||
DOC_DIRS = man doc
|
||||
ifdef PYTHON
|
||||
BIND_DIRS = python
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 82ca3e1..d146cb6 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -15,6 +15,11 @@ if test "$YACC" != "bison -y"; then
|
||||
AC_MSG_ERROR([bison not found])
|
||||
fi
|
||||
|
||||
+AC_ARG_ENABLE(
|
||||
+ [wmgui],
|
||||
+ [AS_HELP_STRING([--disable-wmgui],[Do not build wmgui binary (also drop the gtk-2/glib2 dependency)])],
|
||||
+ [ENABLE_WMGUI="$enableval"],[ENABLE_WMGUI=yes])
|
||||
+
|
||||
AC_ARG_WITH(
|
||||
[python],
|
||||
[AS_HELP_STRING([--without-python],[compile without python support])],
|
||||
@@ -98,10 +103,14 @@ else
|
||||
fi
|
||||
AC_SUBST(LDCONFIG)
|
||||
|
||||
-pkg_modules="gtk+-2.0 >= 2.0.0 gthread-2.0"
|
||||
-PKG_CHECK_MODULES([GTK], [$pkg_modules])
|
||||
-AC_SUBST(GTK_CFLAGS)
|
||||
-AC_SUBST(GTK_LIBS)
|
||||
+AS_IF(
|
||||
+ [test "x$ENABLE_WMGUI" = xyes],
|
||||
+ [pkg_modules="gtk+-2.0 >= 2.0.0 gthread-2.0" ;
|
||||
+ PKG_CHECK_MODULES([GTK], [$pkg_modules])
|
||||
+ AC_SUBST(GTK_CFLAGS)
|
||||
+ AC_SUBST(GTK_LIBS)
|
||||
+ AC_SUBST(WMGUI, wmgui)]
|
||||
+)
|
||||
|
||||
AC_OUTPUT(
|
||||
[Makefile]
|
||||
--
|
||||
1.8.5.2
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
config BR2_PACKAGE_CWIID
|
||||
bool "cwiid"
|
||||
depends on !BR2_STATIC_LIBS # bluez5_utils
|
||||
depends on BR2_USE_WCHAR # bluez5_utils -> libglib2
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # bluez5_utils -> dbus, alsa-lib, libglib2
|
||||
depends on BR2_USE_MMU # bluez5_utils -> dbus, libglib2
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 # bluez5_utils
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # bluez5_utils
|
||||
select BR2_PACKAGE_BLUEZ5_UTILS
|
||||
select BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_HID # runtime
|
||||
help
|
||||
A collection of Linux tools written in C for interfacing to
|
||||
the Nintendo Wiimote.
|
||||
|
||||
https://github.com/abstrakraft/cwiid
|
||||
|
||||
if BR2_PACKAGE_CWIID
|
||||
config BR2_PACKAGE_CWIID_WMGUI
|
||||
bool "wmgui"
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libgtk2 -> pango -> harfbuzz
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # libgtk2 -> pango -> harfbuzz
|
||||
depends on BR2_PACKAGE_XORG7 # libgtk2
|
||||
depends on BR2_USE_WCHAR # libgtk2 -> libglib2
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libgtk2 -> libglib2
|
||||
depends on BR2_USE_MMU # libgtk2 -> libglib2
|
||||
depends on BR2_INSTALL_LIBSTDCPP # libgtk2 -> pango
|
||||
select BR2_PACKAGE_LIBGLIB2
|
||||
select BR2_PACKAGE_LIBGTK2
|
||||
endif
|
||||
|
||||
comment "cwiid needs a toolchain w/ dynamic lib, threads, wchar, headers >= 3.4"
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR || \
|
||||
!BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
|
||||
depends on !BR2_USE_MMU
|
||||
@@ -0,0 +1,4 @@
|
||||
# Locally calculated
|
||||
sha256 3adf3bf018721dee3c47e12ba4dd71810a239918dce925aa4079cb2a98bca5fe cwiid-fadf11e89b579bcc0336a0692ac15c93785f3f82.tar.gz
|
||||
# License files, locally calculated
|
||||
sha256 231f7edcc7352d7734a96eef0b8030f77982678c516876fcb81e25b32d68564c COPYING
|
||||
@@ -0,0 +1,29 @@
|
||||
################################################################################
|
||||
#
|
||||
# cwiid
|
||||
#
|
||||
################################################################################
|
||||
|
||||
CWIID_VERSION = fadf11e89b579bcc0336a0692ac15c93785f3f82
|
||||
CWIID_SITE = $(call github,abstrakraft,cwiid,$(CWIID_VERSION))
|
||||
CWIID_LICENSE = GPL-2.0+
|
||||
CWIID_LICENSE_FILES = COPYING
|
||||
|
||||
CWIID_AUTORECONF = YES
|
||||
CWIID_INSTALL_STAGING = YES
|
||||
|
||||
CWIID_DEPENDENCIES = host-pkgconf host-bison host-flex bluez5_utils
|
||||
|
||||
# Disable python support. This disables the 2 following things:
|
||||
# - wminput Python plugin support
|
||||
# - cwiid Python module
|
||||
CWIID_CONF_OPTS = --without-python --disable-ldconfig
|
||||
|
||||
ifeq ($(BR2_PACKAGE_CWIID_WMGUI),y)
|
||||
CWIID_DEPENDENCIES += libgtk2 libglib2
|
||||
CWIID_CONF_OPTS += --enable-wmgui
|
||||
else
|
||||
CWIID_CONF_OPTS += --disable-wmgui
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user