Skip to content

Commit 9c44b51

Browse files
committed
chore(openamp): allow RPMSG_SERVICE_NAME redefiniton
Since openSTLinux distribution 4.0 with Linux 5.15, RPMSG_SERVICE_NAME has been renamed from 'rpmsg-tty-channel' to 'rpmsg-tty' if older distribution is used, it is required to redefine it to 'rpmsg-tty-channel' Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 5cb0e12 commit 9c44b51

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

system/Middlewares/OpenAMP/virtual_driver/virt_uart.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@
4646
/* Private typedef -----------------------------------------------------------*/
4747
/* Private define ------------------------------------------------------------*/
4848
/* this string will be sent to remote processor */
49-
#define RPMSG_SERVICE_NAME "rpmsg-tty"
49+
/* Since openSTLinux distribution 4.0 with Linux 5.15,
50+
RPMSG_SERVICE_NAME has been renamed from 'rpmsg-tty-channel' to 'rpmsg-tty'
51+
if older distribution is used, it is required to redefine it to 'rpmsg-tty-channel'
52+
*/
53+
#ifndef RPMSG_SERVICE_NAME
54+
#define RPMSG_SERVICE_NAME "rpmsg-tty"
55+
#endif
5056

5157
/* Private macro -------------------------------------------------------------*/
5258
/* Private variables ---------------------------------------------------------*/

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy