initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
From ddde652460350b962d32036981ff8ed77ed2f1ed Mon Sep 17 00:00:00 2001
|
||||
From: Armin Novak <armin.novak@thincast.com>
|
||||
Date: Wed, 16 Sep 2020 09:30:37 +0200
|
||||
Subject: [PATCH] Fix variable declaration in loop
|
||||
|
||||
[Retrieved from:
|
||||
https://github.com/FreeRDP/FreeRDP/commit/ddde652460350b962d32036981ff8ed77ed2f1ed]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
client/X11/xf_graphics.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/client/X11/xf_graphics.c b/client/X11/xf_graphics.c
|
||||
index 76fbef5bd6..bf71b563c3 100644
|
||||
--- a/client/X11/xf_graphics.c
|
||||
+++ b/client/X11/xf_graphics.c
|
||||
@@ -386,6 +386,7 @@ static BOOL xf_Pointer_New(rdpContext* context, rdpPointer* pointer)
|
||||
static void xf_Pointer_Free(rdpContext* context, rdpPointer* pointer)
|
||||
{
|
||||
#ifdef WITH_XCURSOR
|
||||
+ UINT32 i;
|
||||
xfContext* xfc = (xfContext*)context;
|
||||
xfPointer* xpointer = (xfPointer*)pointer;
|
||||
|
||||
@@ -395,7 +396,7 @@ static void xf_Pointer_Free(rdpContext* context, rdpPointer* pointer)
|
||||
free(xpointer->cursorWidths);
|
||||
free(xpointer->cursorHeights);
|
||||
|
||||
- for (int i = 0; i < xpointer->nCursors; i++)
|
||||
+ for (i = 0; i < xpointer->nCursors; i++)
|
||||
{
|
||||
XFreeCursor(xfc->display, xpointer->cursors[i]);
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
From 4f8a48d96e472e43a5f856c449f61669792ce9fa Mon Sep 17 00:00:00 2001
|
||||
From: akallabeth <akallabeth@posteo.net>
|
||||
Date: Tue, 22 Sep 2020 07:43:56 +0200
|
||||
Subject: [PATCH] Fixed variable declaration in loop
|
||||
|
||||
[Retrieved from:
|
||||
https://github.com/FreeRDP/FreeRDP/commit/4f8a48d96e472e43a5f856c449f61669792ce9fa]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
client/X11/xf_graphics.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/client/X11/xf_graphics.c b/client/X11/xf_graphics.c
|
||||
index bf71b563c3..c50726c8e4 100644
|
||||
--- a/client/X11/xf_graphics.c
|
||||
+++ b/client/X11/xf_graphics.c
|
||||
@@ -240,7 +240,7 @@ static BOOL _xf_Pointer_GetCursorForCurrentScale(rdpContext* context, const rdpP
|
||||
double xscale;
|
||||
double yscale;
|
||||
size_t size;
|
||||
- int cursorIndex = -1;
|
||||
+ int cursorIndex = -1, i;
|
||||
|
||||
if (!context || !pointer || !context->gdi)
|
||||
return FALSE;
|
||||
@@ -255,7 +255,7 @@ static BOOL _xf_Pointer_GetCursorForCurrentScale(rdpContext* context, const rdpP
|
||||
xTargetSize = pointer->width * xscale;
|
||||
yTargetSize = pointer->height * yscale;
|
||||
|
||||
- for (int i = 0; i < xpointer->nCursors; i++)
|
||||
+ for (i = 0; i < xpointer->nCursors; i++)
|
||||
{
|
||||
if (xpointer->cursorWidths[i] == xTargetSize && xpointer->cursorHeights[i] == yTargetSize)
|
||||
{
|
||||
@@ -0,0 +1,39 @@
|
||||
From 21036304f909eae9f7506f48703ba1c74724342b Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Sat, 31 Jul 2021 09:49:27 +0200
|
||||
Subject: [PATCH] winpr/include/winpr/file.h: fix build on uclibc
|
||||
|
||||
Include stdio.h to fix the following build failure with uclibc raised
|
||||
since version 2.4.0 and
|
||||
https://github.com/FreeRDP/FreeRDP/commit/eb6777ea69b022c9e43a1576a2192a1cb807b1e6:
|
||||
|
||||
In file included from /tmp/instance-0/output-1/build/freerdp-2.4.0/winpr/libwinpr/utils/lodepng/lodepng.c:30:
|
||||
/tmp/instance-0/output-1/build/freerdp-2.4.0/winpr/include/winpr/file.h:524:11: error: unknown type name 'FILE'
|
||||
WINPR_API FILE* winpr_fopen(const char* path, const char* mode);
|
||||
^~~~
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/31e770a330158035e24b7b952bec0030138482b7
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status: https://github.com/FreeRDP/FreeRDP/pull/7205]
|
||||
---
|
||||
winpr/include/winpr/file.h | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/winpr/include/winpr/file.h b/winpr/include/winpr/file.h
|
||||
index 48a29f9f5..79c9b392c 100644
|
||||
--- a/winpr/include/winpr/file.h
|
||||
+++ b/winpr/include/winpr/file.h
|
||||
@@ -30,6 +30,8 @@
|
||||
|
||||
#ifndef _WIN32
|
||||
|
||||
+#include <stdio.h>
|
||||
+
|
||||
#ifndef MAX_PATH
|
||||
#define MAX_PATH 260
|
||||
#endif
|
||||
--
|
||||
2.30.2
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
config BR2_PACKAGE_FREERDP
|
||||
bool "freerdp"
|
||||
# FreeRDP does not have a single C++ source file, however it
|
||||
# insists on having a C++ compiler. Removing that requirement
|
||||
# is a bit too much involving, so we just depend on it...
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_USE_WCHAR
|
||||
depends on !BR2_STATIC_LIBS # uses dlfcn.h
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_USE_MMU # libglib2
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
select BR2_PACKAGE_OPENSSL
|
||||
select BR2_PACKAGE_LIBOPENSSL_ENABLE_RC4 if BR2_PACKAGE_LIBOPENSSL
|
||||
select BR2_PACKAGE_ZLIB
|
||||
select BR2_PACKAGE_LIBGLIB2
|
||||
help
|
||||
FreeRDP is a free implementation of the Remote Desktop
|
||||
Protocol (RDP), released under the Apache license
|
||||
|
||||
This only installs the freerdp libraries.
|
||||
|
||||
http://www.freerdp.com/
|
||||
|
||||
Note: this also installs a key and certificate in
|
||||
/etc/freerdp/keys/ . These are publicly-known, as they
|
||||
are present in FreeRDP's source tree. It is strongly
|
||||
suggested that you overwrite them with your own set,
|
||||
either in an overlay rootfs or in a post-build script.
|
||||
|
||||
if BR2_PACKAGE_FREERDP
|
||||
|
||||
config BR2_PACKAGE_FREERDP_GSTREAMER1
|
||||
bool "gstreamer support"
|
||||
depends on BR2_PACKAGE_GSTREAMER1
|
||||
depends on BR2_PACKAGE_XORG7 # xlib-libxrandr
|
||||
# gstreamer-1.x dependencies already dependencies of FreeRDP
|
||||
select BR2_PACKAGE_GST1_PLUGINS_BASE
|
||||
select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_APP
|
||||
select BR2_PACKAGE_XLIB_LIBXRANDR
|
||||
|
||||
comment "gstreamer support needs X.Org"
|
||||
depends on !BR2_PACKAGE_XORG7
|
||||
depends on BR2_PACKAGE_GSTREAMER1
|
||||
|
||||
config BR2_PACKAGE_FREERDP_SERVER
|
||||
bool "server"
|
||||
depends on BR2_PACKAGE_XORG7
|
||||
select BR2_PACKAGE_XLIB_LIBX11
|
||||
select BR2_PACKAGE_XLIB_LIBXDAMAGE
|
||||
select BR2_PACKAGE_XLIB_LIBXEXT
|
||||
select BR2_PACKAGE_XLIB_LIBXFIXES
|
||||
|
||||
config BR2_PACKAGE_FREERDP_CLIENT_X11
|
||||
bool "X11 client"
|
||||
default y
|
||||
depends on BR2_PACKAGE_XORG7
|
||||
select BR2_PACKAGE_XLIB_LIBX11
|
||||
select BR2_PACKAGE_XLIB_LIBXEXT
|
||||
|
||||
comment "server and X11 client need X.Org"
|
||||
depends on !BR2_PACKAGE_XORG7
|
||||
|
||||
config BR2_PACKAGE_FREERDP_CLIENT_WL
|
||||
bool "wayland client"
|
||||
default y
|
||||
depends on BR2_PACKAGE_WAYLAND
|
||||
select BR2_PACKAGE_LIBXKBCOMMON
|
||||
|
||||
endif
|
||||
|
||||
comment "freerdp needs a toolchain w/ wchar, dynamic library, threads, C++"
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS \
|
||||
|| !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP
|
||||
@@ -0,0 +1,5 @@
|
||||
# From https://pub.freerdp.com/releases/freerdp-2.4.1.tar.gz.sha256
|
||||
sha256 ef75c87926643a0d0041f6556e343ac037380d4260c64885e7cdd20da0147edf freerdp-2.4.1.tar.gz
|
||||
|
||||
# Locally calculated
|
||||
sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE
|
||||
@@ -0,0 +1,267 @@
|
||||
################################################################################
|
||||
#
|
||||
# freerdp
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FREERDP_VERSION = 2.4.1
|
||||
FREERDP_SITE = https://pub.freerdp.com/releases
|
||||
FREERDP_DEPENDENCIES = libglib2 openssl zlib
|
||||
FREERDP_LICENSE = Apache-2.0
|
||||
FREERDP_LICENSE_FILES = LICENSE
|
||||
FREERDP_CPE_ID_VENDOR = freerdp
|
||||
|
||||
FREERDP_INSTALL_STAGING = YES
|
||||
|
||||
FREERDP_CONF_OPTS = -DWITH_MANPAGES=OFF -Wno-dev -DWITH_GSTREAMER_0_10=OFF
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FREERDP_GSTREAMER1),y)
|
||||
FREERDP_CONF_OPTS += -DWITH_GSTREAMER_1_0=ON
|
||||
FREERDP_DEPENDENCIES += gstreamer1 gst1-plugins-base
|
||||
else
|
||||
FREERDP_CONF_OPTS += -DWITH_GSTREAMER_1_0=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_CUPS),y)
|
||||
FREERDP_CONF_OPTS += -DWITH_CUPS=ON
|
||||
FREERDP_DEPENDENCIES += cups
|
||||
else
|
||||
FREERDP_CONF_OPTS += -DWITH_CUPS=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FFMPEG),y)
|
||||
FREERDP_CONF_OPTS += -DWITH_FFMPEG=ON
|
||||
FREERDP_DEPENDENCIES += ffmpeg
|
||||
else
|
||||
FREERDP_CONF_OPTS += -DWITH_FFMPEG=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ALSA_LIB_MIXER),y)
|
||||
FREERDP_CONF_OPTS += -DWITH_ALSA=ON
|
||||
FREERDP_DEPENDENCIES += alsa-lib
|
||||
else
|
||||
FREERDP_CONF_OPTS += -DWITH_ALSA=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBUSB),y)
|
||||
FREERDP_CONF_OPTS += -DCHANNEL_URBDRC=ON
|
||||
FREERDP_DEPENDENCIES += libusb
|
||||
else
|
||||
FREERDP_CONF_OPTS += -DCHANNEL_URBDRC=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PULSEAUDIO),y)
|
||||
FREERDP_CONF_OPTS += -DWITH_PULSE=ON
|
||||
FREERDP_DEPENDENCIES += pulseaudio
|
||||
else
|
||||
FREERDP_CONF_OPTS += -DWITH_PULSE=OFF
|
||||
endif
|
||||
|
||||
# For the systemd journal
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
||||
FREERDP_CONF_OPTS += -DWITH_LIBSYSTEMD=ON
|
||||
FREERDP_DEPENDENCIES += systemd
|
||||
else
|
||||
FREERDP_CONF_OPTS += -DWITH_LIBSYSTEMD=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_ARM_CPU_HAS_NEON),y)
|
||||
FREERDP_CONF_OPTS += -DWITH_NEON=ON
|
||||
else
|
||||
FREERDP_CONF_OPTS += -DWITH_NEON=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_X86_CPU_HAS_SSE2),y)
|
||||
FREERDP_CONF_OPTS += -DWITH_SSE2=ON
|
||||
else
|
||||
FREERDP_CONF_OPTS += -DWITH_SSE2=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_arm)$(BR2_armeb),y)
|
||||
FREERDP_CONF_OPTS += -DARM_FP_ABI=$(GCC_TARGET_FLOAT_ABI)
|
||||
endif
|
||||
|
||||
#---------------------------------------
|
||||
# Enabling server and/or client
|
||||
|
||||
# Clients and server interface must always be enabled to build the
|
||||
# corresponding libraries.
|
||||
FREERDP_CONF_OPTS += -DWITH_SERVER_INTERFACE=ON
|
||||
FREERDP_CONF_OPTS += -DWITH_CLIENT_INTERFACE=ON
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FREERDP_SERVER),y)
|
||||
FREERDP_CONF_OPTS += -DWITH_SERVER=ON
|
||||
endif
|
||||
|
||||
ifneq ($(BR2_PACKAGE_FREERDP_CLIENT_X11)$(BR2_PACKAGE_FREERDP_CLIENT_WL),)
|
||||
FREERDP_CONF_OPTS += -DWITH_CLIENT=ON
|
||||
endif
|
||||
|
||||
#---------------------------------------
|
||||
# Libraries for client and/or server
|
||||
|
||||
# The FreeRDP buildsystem uses non-orthogonal options. For example it
|
||||
# is not possible to build the server and the wayland client without
|
||||
# also building the X client. That's because the dependencies of the
|
||||
# server (the X libraries) are a superset of those of the X client.
|
||||
# So, as soon as FreeRDP is configured for the server and the wayland
|
||||
# client, it will believe it also has to build the X client, because
|
||||
# the libraries it needs are enabled.
|
||||
#
|
||||
# Furthermore, the shadow server is always built, even if there's nothing
|
||||
# it can serve (i.e. the X libs are disabled).
|
||||
#
|
||||
# So, we do not care whether we build too much; we remove, as
|
||||
# post-install hooks, whatever we do not want.
|
||||
|
||||
# If Xorg is enabled, and the server or the X client are, then libX11
|
||||
# and libXext are forcibly enabled at the Kconfig level. However, if
|
||||
# Xorg is enabled but neither the server nor the X client are, then
|
||||
# there's nothing that guarantees those two libs are enabled. So we
|
||||
# really must check for them.
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBX11)$(BR2_PACKAGE_XLIB_LIBXEXT),yy)
|
||||
FREERDP_DEPENDENCIES += xlib_libX11 xlib_libXext
|
||||
FREERDP_CONF_OPTS += -DWITH_X11=ON
|
||||
else
|
||||
FREERDP_CONF_OPTS += -DWITH_X11=OFF
|
||||
endif
|
||||
|
||||
# The following libs are either optional or mandatory only for either
|
||||
# the server or the client. A mandatory library for either one is
|
||||
# selected from Kconfig, so we can make it conditional here
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXCURSOR),y)
|
||||
FREERDP_CONF_OPTS += -DWITH_XCURSOR=ON
|
||||
FREERDP_DEPENDENCIES += xlib_libXcursor
|
||||
else
|
||||
FREERDP_CONF_OPTS += -DWITH_XCURSOR=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXDAMAGE),y)
|
||||
FREERDP_CONF_OPTS += -DWITH_XDAMAGE=ON
|
||||
FREERDP_DEPENDENCIES += xlib_libXdamage
|
||||
else
|
||||
FREERDP_CONF_OPTS += -DWITH_XDAMAGE=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXFIXES),y)
|
||||
FREERDP_CONF_OPTS += -DWITH_XFIXES=ON
|
||||
FREERDP_DEPENDENCIES += xlib_libXfixes
|
||||
else
|
||||
FREERDP_CONF_OPTS += -DWITH_XFIXES=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXI),y)
|
||||
FREERDP_CONF_OPTS += -DWITH_XI=ON
|
||||
FREERDP_DEPENDENCIES += xlib_libXi
|
||||
else
|
||||
FREERDP_CONF_OPTS += -DWITH_XI=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXINERAMA),y)
|
||||
FREERDP_CONF_OPTS += -DWITH_XINERAMA=ON
|
||||
FREERDP_DEPENDENCIES += xlib_libXinerama
|
||||
else
|
||||
FREERDP_CONF_OPTS += -DWITH_XINERAMA=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXKBFILE),y)
|
||||
FREERDP_CONF_OPTS += -DWITH_XKBFILE=ON
|
||||
FREERDP_DEPENDENCIES += xlib_libxkbfile
|
||||
else
|
||||
FREERDP_CONF_OPTS += -DWITH_XKBFILE=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXRANDR),y)
|
||||
FREERDP_CONF_OPTS += -DWITH_XRANDR=ON
|
||||
FREERDP_DEPENDENCIES += xlib_libXrandr
|
||||
else
|
||||
FREERDP_CONF_OPTS += -DWITH_XRANDR=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXRENDER),y)
|
||||
FREERDP_CONF_OPTS += -DWITH_XRENDER=ON
|
||||
FREERDP_DEPENDENCIES += xlib_libXrender
|
||||
else
|
||||
FREERDP_CONF_OPTS += -DWITH_XRENDER=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXTST),y)
|
||||
FREERDP_CONF_OPTS += -DWITH_XTEST=ON
|
||||
FREERDP_DEPENDENCIES += xlib_libXtst
|
||||
else
|
||||
FREERDP_CONF_OPTS += -DWITH_XTEST=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXV),y)
|
||||
FREERDP_CONF_OPTS += -DWITH_XV=ON
|
||||
FREERDP_DEPENDENCIES += xlib_libXv
|
||||
else
|
||||
FREERDP_CONF_OPTS += -DWITH_XV=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FREERDP_CLIENT_WL),y)
|
||||
FREERDP_DEPENDENCIES += wayland libxkbcommon
|
||||
FREERDP_CONF_OPTS += \
|
||||
-DWITH_WAYLAND=ON \
|
||||
-DWAYLAND_SCANNER=$(HOST_DIR)/bin/wayland-scanner
|
||||
else
|
||||
FREERDP_CONF_OPTS += -DWITH_WAYLAND=OFF
|
||||
endif
|
||||
|
||||
#---------------------------------------
|
||||
# Post-install hooks to cleanup and install missing stuff
|
||||
|
||||
# Shadow server is always installed, no matter what, so we manually
|
||||
# remove it if the user does not want the server.
|
||||
ifeq ($(BR2_PACKAGE_FREERDP_SERVER),)
|
||||
define FREERDP_RM_SHADOW_SERVER
|
||||
rm -f $(TARGET_DIR)/usr/bin/freerdp-shadow
|
||||
endef
|
||||
FREERDP_POST_INSTALL_TARGET_HOOKS += FREERDP_RM_SHADOW_SERVER
|
||||
endif # ! server
|
||||
|
||||
# X client is always built as soon as a client is enabled and the
|
||||
# necessary libs are enabled (e.g. because of the server), so manually
|
||||
# remove it if the user does not want it.
|
||||
ifeq ($(BR2_PACKAGE_FREERDP_CLIENT_X11),)
|
||||
define FREERDP_RM_CLIENT_X11
|
||||
rm -f $(TARGET_DIR)/usr/bin/xfreerdp
|
||||
rm -f $(TARGET_DIR)/usr/lib/libxfreerdp-client*
|
||||
endef
|
||||
FREERDP_POST_INSTALL_TARGET_HOOKS += FREERDP_RM_CLIENT_X11
|
||||
define FREERDP_RM_CLIENT_X11_LIB
|
||||
rm -f $(STAGING_DIR)/usr/lib/libxfreerdp-client*
|
||||
endef
|
||||
FREERDP_POST_INSTALL_STAGING_HOOKS += FREERDP_RM_CLIENT_X11_LIB
|
||||
endif # ! X client
|
||||
|
||||
# Wayland client is always built as soon as wayland is enabled, so
|
||||
# manually remove it if the user does not want it.
|
||||
ifeq ($(BR2_PACKAGE_FREERDP_CLIENT_WL),)
|
||||
define FREERDP_RM_CLIENT_WL
|
||||
rm -f $(TARGET_DIR)/usr/bin/wlfreerdp
|
||||
endef
|
||||
FREERDP_POST_INSTALL_TARGET_HOOKS += FREERDP_RM_CLIENT_WL
|
||||
endif
|
||||
|
||||
# Remove static libraries in unusual dir
|
||||
define FREERDP_CLEANUP
|
||||
rm -rf $(TARGET_DIR)/usr/lib/freerdp
|
||||
endef
|
||||
FREERDP_POST_INSTALL_TARGET_HOOKS += FREERDP_CLEANUP
|
||||
|
||||
# Install the server key and certificate, so that a client can connect.
|
||||
# A user can override them with its own in a post-build script, if needed.
|
||||
# We install them even if the server is not enabled, since another server
|
||||
# can be built and linked with libfreerdp (e.g. weston with the RDP
|
||||
# backend). Key and cert are installed world-readable, so non-root users
|
||||
# can start a server.
|
||||
define FREERDP_INSTALL_KEYS
|
||||
$(INSTALL) -m 0644 -D $(@D)/server/Sample/server.key \
|
||||
$(TARGET_DIR)/etc/freerdp/keys/server.key
|
||||
$(INSTALL) -m 0644 -D $(@D)/server/Sample/server.crt \
|
||||
$(TARGET_DIR)/etc/freerdp/keys/server.crt
|
||||
endef
|
||||
FREERDP_POST_INSTALL_TARGET_HOOKS += FREERDP_INSTALL_KEYS
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user