generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
37
package/libcec/0001-cecloader-h-fix-null-return.patch
Normal file
37
package/libcec/0001-cecloader-h-fix-null-return.patch
Normal file
@ -0,0 +1,37 @@
|
||||
From 452b2049b2ee3e73968c603e5524b2d349ac0c3e Mon Sep 17 00:00:00 2001
|
||||
From: psykose <alice@ayaya.dev>
|
||||
Date: Sat, 9 Apr 2022 17:59:11 +0000
|
||||
Subject: [PATCH] cecloader.h: fix null return
|
||||
|
||||
returning NULL is invalid for a return type of bool when NULL is defined
|
||||
as `nullptr` instead of 0L
|
||||
|
||||
[Retrieved from:
|
||||
https://github.com/Pulse-Eight/libcec/pull/599/commits/452b2049b2ee3e73968c603e5524b2d349ac0c3e]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
include/cecloader.h | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/include/cecloader.h b/include/cecloader.h
|
||||
index be76468f..550f598e 100644
|
||||
--- a/include/cecloader.h
|
||||
+++ b/include/cecloader.h
|
||||
@@ -172,7 +172,7 @@ bool LibCecBootloader(const char *strLib = NULL)
|
||||
if (!g_libCEC)
|
||||
{
|
||||
std::cout << dlerror() << std::endl;
|
||||
- return NULL;
|
||||
+ return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ bool LibCecBootloader(const char *strLib = NULL)
|
||||
if (!LibCecBootloader)
|
||||
{
|
||||
std::cout << "cannot find CECStartBootloader" << std::endl;
|
||||
- return NULL;
|
||||
+ return false;
|
||||
}
|
||||
|
||||
bool bReturn = LibCecBootloader();
|
||||
19
package/libcec/Config.in
Normal file
19
package/libcec/Config.in
Normal file
@ -0,0 +1,19 @@
|
||||
config BR2_PACKAGE_LIBCEC
|
||||
bool "libcec"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_USE_WCHAR
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # C++11
|
||||
select BR2_PACKAGE_LIBPLATFORM
|
||||
help
|
||||
libcec allows you in combination with the right hardware to
|
||||
control your home theater devices with your TV remote
|
||||
control utilizing existing HDMI cabling.
|
||||
|
||||
http://libcec.pulse-eight.com
|
||||
|
||||
comment "libcec needs a toolchain w/ C++, wchar, threads, dynamic library, gcc >= 4.7"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_USE_WCHAR || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 || \
|
||||
BR2_STATIC_LIBS
|
||||
3
package/libcec/libcec.hash
Normal file
3
package/libcec/libcec.hash
Normal file
@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 090696d7a4fb772d7acebbb06f91ab92e025531c7c91824046b9e4e71ecb3377 libcec-6.0.2.tar.gz
|
||||
sha256 0137261d24ce001fc5237aacddd267533e0f150ac23cf21acffea599f7358f7a COPYING
|
||||
46
package/libcec/libcec.mk
Normal file
46
package/libcec/libcec.mk
Normal file
@ -0,0 +1,46 @@
|
||||
################################################################################
|
||||
#
|
||||
# libcec
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBCEC_VERSION = 6.0.2
|
||||
LIBCEC_SITE = $(call github,Pulse-Eight,libcec,libcec-$(LIBCEC_VERSION))
|
||||
LIBCEC_LICENSE = GPL-2.0+
|
||||
LIBCEC_LICENSE_FILES = COPYING
|
||||
|
||||
LIBCEC_INSTALL_STAGING = YES
|
||||
LIBCEC_DEPENDENCIES = host-pkgconf libplatform
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LOCKDEV),y)
|
||||
LIBCEC_DEPENDENCIES += lockdev
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
||||
LIBCEC_DEPENDENCIES += udev
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
||||
LIBCEC_DEPENDENCIES += host-swig python3
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
|
||||
LIBCEC_DEPENDENCIES += rpi-userland
|
||||
LIBCEC_CONF_OPTS += \
|
||||
-DCMAKE_C_FLAGS="$(TARGET_CFLAGS) -lvcos -lvchiq_arm" \
|
||||
-DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) \
|
||||
-I$(STAGING_DIR)/usr/include/interface/vmcs_host/linux \
|
||||
-I$(STAGING_DIR)/usr/include/interface/vcos/pthreads"
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXRANDR),y)
|
||||
LIBCEC_DEPENDENCIES += xlib_libXrandr
|
||||
endif
|
||||
|
||||
# Disable information about how libCEC is compiled.
|
||||
LIBCEC_CONF_OPTS += -DHAVE_GIT_BIN="" \
|
||||
-DHAVE_WHOAMI_BIN="" \
|
||||
-DHAVE_HOSTNAME_BIN="" \
|
||||
-DHAVE_UNAME_BIN=""
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user