Commit 09097b16 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Merge branch 'feature-generic-linux_runtime' into 'feature_buster'

Generic linux runtime

See merge request !4
parents 4095871d 38278bc2
...@@ -48,7 +48,8 @@ property set Deployment is ...@@ -48,7 +48,8 @@ property set Deployment is
AIR_IOP, -- AIR IOP partition AIR_IOP, -- AIR IOP partition
ZYNQZC706_RTEMS, -- Zynq support, for CoRA-MBAD ZYNQZC706_RTEMS, -- Zynq support, for CoRA-MBAD
ZYNQ_RTEMS_QEMU, -- Zynq support, for CoRA-MBAD, for QEMU ZYNQ_RTEMS_QEMU, -- Zynq support, for CoRA-MBAD, for QEMU
MSP430_FREERTOS -- MSP430 board with FreeRTOS MSP430_FREERTOS, -- MSP430 board with FreeRTOS
GENERIC_LINUX -- Linux generic
); );
-- Supported platforms -- Supported platforms
......
...@@ -338,6 +338,7 @@ package body Ocarina.Backends.Properties is ...@@ -338,6 +338,7 @@ package body Ocarina.Backends.Properties is
Platform_ZynqZC706_RTEMS_Name : Name_Id; Platform_ZynqZC706_RTEMS_Name : Name_Id;
Platform_Zynq_RTEMS_QEMU_Name : Name_Id; Platform_Zynq_RTEMS_QEMU_Name : Name_Id;
Platform_MSP430_FREERTOS_Name : Name_Id; Platform_MSP430_FREERTOS_Name : Name_Id;
Platform_GENERIC_LINUX_Name : Name_Id;
Platform_AIR_IOP_Name : Name_Id; Platform_AIR_IOP_Name : Name_Id;
Transport_BSD_Sockets_Name : Name_Id; Transport_BSD_Sockets_Name : Name_Id;
...@@ -2550,6 +2551,8 @@ package body Ocarina.Backends.Properties is ...@@ -2550,6 +2551,8 @@ package body Ocarina.Backends.Properties is
return Platform_Zynq_QEMU; return Platform_Zynq_QEMU;
elsif P_Name = Platform_MSP430_FREERTOS_Name then elsif P_Name = Platform_MSP430_FREERTOS_Name then
return Platform_MSP430_FREERTOS; return Platform_MSP430_FREERTOS;
elsif P_Name = Platform_GENERIC_LINUX_Name then
return Platform_GENERIC_LINUX;
elsif P_Name = Platform_AIR_IOP_Name then elsif P_Name = Platform_AIR_IOP_Name then
return Platform_AIR_IOP; return Platform_AIR_IOP;
else else
...@@ -3122,6 +3125,7 @@ package body Ocarina.Backends.Properties is ...@@ -3122,6 +3125,7 @@ package body Ocarina.Backends.Properties is
Platform_ZynqZC706_RTEMS_Name := Get_String_Name ("zynqzc706_rtems"); Platform_ZynqZC706_RTEMS_Name := Get_String_Name ("zynqzc706_rtems");
Platform_Zynq_RTEMS_QEMU_Name := Get_String_Name ("zynq_rtems_qemu"); Platform_Zynq_RTEMS_QEMU_Name := Get_String_Name ("zynq_rtems_qemu");
Platform_MSP430_FREERTOS_Name := Get_String_Name ("msp430_freertos"); Platform_MSP430_FREERTOS_Name := Get_String_Name ("msp430_freertos");
Platform_GENERIC_LINUX_Name := Get_String_Name ("generic_linux");
Platform_AIR_IOP_Name := Get_String_Name ("air_iop"); Platform_AIR_IOP_Name := Get_String_Name ("air_iop");
Transport_BSD_Sockets_Name := Get_String_Name ("bsd_sockets"); Transport_BSD_Sockets_Name := Get_String_Name ("bsd_sockets");
......
...@@ -572,6 +572,7 @@ package Ocarina.Backends.Properties is ...@@ -572,6 +572,7 @@ package Ocarina.Backends.Properties is
Platform_Zynq_QEMU, Platform_Zynq_QEMU,
Platform_RPI, -- For RPi xcompilation. Platform_RPI, -- For RPi xcompilation.
Platform_MSP430_FREERTOS, Platform_MSP430_FREERTOS,
Platform_GENERIC_LINUX,
Platform_AIR_IOP, Platform_AIR_IOP,
Platform_None); -- Unspecified Platform_None); -- Unspecified
......
...@@ -175,6 +175,7 @@ package body Ocarina.Backends.PO_HI_Ada is ...@@ -175,6 +175,7 @@ package body Ocarina.Backends.PO_HI_Ada is
Platform_LINUX32 | Platform_LINUX32 |
Platform_LINUX64 | Platform_LINUX64 |
Platform_WIN32 | Platform_WIN32 |
Platform_GENERIC_LINUX |
Platform_None => Platform_None =>
Change_If_Empty (String_Ptr (Target_Prefix), ""); Change_If_Empty (String_Ptr (Target_Prefix), "");
Target := new String'("NATIVE"); Target := new String'("NATIVE");
......
...@@ -2411,6 +2411,7 @@ package body Ocarina.Backends.PO_HI_C.Deployment is ...@@ -2411,6 +2411,7 @@ package body Ocarina.Backends.PO_HI_C.Deployment is
Platform_None | Platform_None |
Platform_RPI | Platform_RPI |
Platform_MSP430_FREERTOS | Platform_MSP430_FREERTOS |
Platform_GENERIC_LINUX |
Platform_LINUX32_XENOMAI_NATIVE | Platform_LINUX32_XENOMAI_NATIVE |
Platform_Native_Compcert | Platform_Native_Compcert |
Platform_LINUX32_XENOMAI_POSIX | Platform_LINUX32_XENOMAI_POSIX |
......
...@@ -253,6 +253,9 @@ package body Ocarina.Backends.PO_HI_C is ...@@ -253,6 +253,9 @@ package body Ocarina.Backends.PO_HI_C is
when Platform_MSP430_FREERTOS => when Platform_MSP430_FREERTOS =>
Write_Str ("msp430_freertos"); Write_Str ("msp430_freertos");
when Platform_GENERIC_LINUX =>
Write_Str ("generic_linux");
when others => when others =>
Display_Error Display_Error
("Unsupported platform " & Execution_Platform'Img, ("Unsupported platform " & Execution_Platform'Img,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment