Skip to content

Commit 0a77c9c

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 <[email protected]>
1 parent b0a7245 commit 0a77c9c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: system/Middlewares/OpenAMP/virtual_driver/virt_uart.c

+7-1
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)