Commit a20ff45a authored by julien.delange's avatar julien.delange

* Add the linux-specific distribution as a new platform

 * Add predefined component to handle the linux-specific distribution



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/ocarina@984 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent d4aa0f99
...@@ -37,4 +37,7 @@ end x86.rtems; ...@@ -37,4 +37,7 @@ end x86.rtems;
processor implementation x86.linux extends ocarina_processors_x86::x86.linux processor implementation x86.linux extends ocarina_processors_x86::x86.linux
end x86.linux; end x86.linux;
processor implementation x86.linuxtaste extends ocarina_processors_x86::x86.linuxtaste
end x86.linuxtaste;
end ocarina_processors; end ocarina_processors;
...@@ -19,4 +19,9 @@ properties ...@@ -19,4 +19,9 @@ properties
Deployment::Execution_Platform => X86_RTEMS; Deployment::Execution_Platform => X86_RTEMS;
end x86.rtems; end x86.rtems;
processor implementation x86.linuxtaste
properties
Deployment::Execution_Platform => X86_LINUXTASTE;
end x86.linuxtaste;
end ocarina_processors_x86; end ocarina_processors_x86;
...@@ -33,6 +33,7 @@ property set Deployment is ...@@ -33,6 +33,7 @@ property set Deployment is
ARM_DSLINUX, -- Nintendo DS (tm) (DSLinux) ARM_DSLINUX, -- Nintendo DS (tm) (DSLinux)
ARM_N770, -- Nokia N770 (tm) ARM_N770, -- Nokia N770 (tm)
X86_RTEMS, -- x86 under RTEMS X86_RTEMS, -- x86 under RTEMS
X86_LINUXTASTE,-- TASTE-specific linux distribution
MARTE_OS -- MaRTE OS MARTE_OS -- MaRTE OS
); );
-- Supported platforms -- Supported platforms
......
...@@ -1385,7 +1385,8 @@ package body Ocarina.Backends.PO_HI_C.Deployment is ...@@ -1385,7 +1385,8 @@ package body Ocarina.Backends.PO_HI_C.Deployment is
(Get_Bound_Processor (Get_Bound_Processor
(Corresponding_Instance (Q))); (Corresponding_Instance (Q)));
case Execution_Platform is case Execution_Platform is
when Platform_Native | Platform_None | Platform_X86_RTEMS => when Platform_Native | Platform_None |
Platform_X86_RTEMS | Platform_X86_LINUXTASTE =>
Append_Node_To_List Append_Node_To_List
(RE (RE_Littleendian), CTN.Values (Endiannesses)); (RE (RE_Littleendian), CTN.Values (Endiannesses));
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 2008-2010, GET-Telecom Paris. -- -- Copyright (C) 2008-2010, European Space Agency (ESA). --
-- -- -- --
-- Ocarina is free software; you can redistribute it and/or modify -- -- Ocarina is free software; you can redistribute it and/or modify --
-- it under terms of the GNU General Public License as published by the -- -- it under terms of the GNU General Public License as published by the --
...@@ -155,6 +155,9 @@ package body Ocarina.Backends.PO_HI_C is ...@@ -155,6 +155,9 @@ package body Ocarina.Backends.PO_HI_C is
when Platform_LEON_RTEMS => when Platform_LEON_RTEMS =>
Write_Str ("leon.rtems"); Write_Str ("leon.rtems");
when Platform_X86_LINUXTASTE =>
Write_Str ("x86.linuxtaste");
when Platform_X86_RTEMS => when Platform_X86_RTEMS =>
Write_Str ("x86.rtems"); Write_Str ("x86.rtems");
......
...@@ -297,6 +297,7 @@ package body Ocarina.Backends.Properties is ...@@ -297,6 +297,7 @@ package body Ocarina.Backends.Properties is
Platform_Native_Name : Name_Id; Platform_Native_Name : Name_Id;
Platform_LEON_RTEMS_Name : Name_Id; Platform_LEON_RTEMS_Name : Name_Id;
Platform_X86_LINUXTASTE_Name : Name_Id;
Platform_X86_RTEMS_Name : Name_Id; Platform_X86_RTEMS_Name : Name_Id;
Platform_LEON_GNAT_Name : Name_Id; Platform_LEON_GNAT_Name : Name_Id;
Platform_LEON_ORK_Name : Name_Id; Platform_LEON_ORK_Name : Name_Id;
...@@ -2496,6 +2497,8 @@ package body Ocarina.Backends.Properties is ...@@ -2496,6 +2497,8 @@ package body Ocarina.Backends.Properties is
return Platform_Native; return Platform_Native;
elsif P_Name = Platform_LEON_RTEMS_Name then elsif P_Name = Platform_LEON_RTEMS_Name then
return Platform_LEON_RTEMS; return Platform_LEON_RTEMS;
elsif P_Name = Platform_X86_LINUXTASTE_Name then
return Platform_X86_LINUXTASTE;
elsif P_Name = Platform_X86_RTEMS_Name then elsif P_Name = Platform_X86_RTEMS_Name then
return Platform_X86_RTEMS; return Platform_X86_RTEMS;
elsif P_Name = Platform_LEON_GNAT_Name then elsif P_Name = Platform_LEON_GNAT_Name then
...@@ -3007,6 +3010,7 @@ package body Ocarina.Backends.Properties is ...@@ -3007,6 +3010,7 @@ package body Ocarina.Backends.Properties is
Platform_Native_Name := Get_String_Name ("native"); Platform_Native_Name := Get_String_Name ("native");
Platform_X86_RTEMS_Name := Get_String_Name ("x86_rtems"); Platform_X86_RTEMS_Name := Get_String_Name ("x86_rtems");
Platform_X86_LINUXTASTE_Name := Get_String_Name ("x86_linuxtaste");
Platform_LEON_RTEMS_Name := Get_String_Name ("leon_rtems"); Platform_LEON_RTEMS_Name := Get_String_Name ("leon_rtems");
Platform_LEON_GNAT_Name := Get_String_Name ("leon_gnat"); Platform_LEON_GNAT_Name := Get_String_Name ("leon_gnat");
Platform_LEON_ORK_Name := Get_String_Name ("leon_ork"); Platform_LEON_ORK_Name := Get_String_Name ("leon_ork");
......
...@@ -558,6 +558,7 @@ package Ocarina.Backends.Properties is ...@@ -558,6 +558,7 @@ package Ocarina.Backends.Properties is
(Platform_Native, (Platform_Native,
Platform_LEON_RTEMS, Platform_LEON_RTEMS,
Platform_X86_RTEMS, Platform_X86_RTEMS,
Platform_X86_LINUXTASTE,
Platform_LEON_GNAT, Platform_LEON_GNAT,
Platform_LEON_ORK, Platform_LEON_ORK,
Platform_ERC32_ORK, Platform_ERC32_ORK,
......
Markdown is supported
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