Commit 8688fe9f authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Merge branch 'feature_buster' into 'master'

Feature buster

See merge request !59
parents a92497dc 2f902f85
@@-- The following tags are available in this template:
@@--
@@-- @_Name_@ : Protected block name
@@-- @_Language_@ : Implementation language
@@-- @_Calling_Threads_@ : List of calling threads
@@-- @_Node name_@ : Node name
@@-- @_Protected_PIs_@ : Protected Provided interfaces (from pi.tmplt)
@@-- @_Unprotected_PIs_@ : Unprotected Provided interfaces (from pi.tmplt)
@@-- @_Required_@ : Required interfaces (from ri.tmplt)
@@-- @_Property_Names_@ : Required interfaces (from ri.tmplt)
@@-- @_Property_Values_@ : Required interfaces (from ri.tmplt)
@@IF@@ @_LOWER:Language_@ = simulink or @_LOWER:Language_@ = c
@@TABLE@@
@@IF@@ @_LOWER:Property_Names_@ = taste_iv_properties::fpga_configurations and @_LOWER:Property_Values_@ /= ""
"@_STRIP:Unprotected_PIs_@_bambu.c",
@@END_IF@@
@@END_TABLE@@
@@END_IF@@
@@-- Specify the file name for a protected block
@@-- @_Block_Name_@ is available.
@@-- Don't specify anything if you don't want the file to be created
@@-- The following tags are available in this template:
@@--
@@-- @_Node_Name_@ : Name of the node as defined in the Deployment View
@@-- The content of this file is generated from node.tmplt
@@-- If there is no string defined here, no file will be generated per node,
@@-- (that's an option if the intent is to generate only one file per system)
@@-- Specify the file name for a partition
@@-- @_Partition_Name_@ is available.
@@-- Don't specify anything if you don't want the file to be created
@_LOWER:Partition_Name_@_zynq_rtems.gpr
@@-- Specify the file name for the complete system (including nodes)
@@-- (no template tag)
@@-- Specify the file name for a thread
@@-- @_Thread_Name_@ is available.
@@-- Don't specify anything if you don't want the file to be created
@@-- The following tags are available in this template:
@@--
@@-- @_Node_Name_@ : Name of the node from deployment view
@@-- @_Partition_Names_@ : Tag listing the partitions in this node
@@-- @_Partitions_@ : List of rendered code for partitions
@@-- @_CPU_Name_@, _Platform_@, _Classifier_@, _Ada_Runtime_@ : Info about CPU
@@-- The following tags are available in this template:
@@--
@@-- @_Name_@ : Partition name (usually the name of the binary)
@@-- @_Threads_@ : Code generated for the threads
@@-- @_Thread_Names_@ : Tag: list of thread names
@@-- @_Node_Name_@ : Name of the node containing this partition
@@-- @_Blocks_@ : Code generated for protected functions
@@-- @_Block_Names@ : Vector Tag: list of block (user functions) names
@@-- @_Block_Languages_@ : |_ Corresponding implementation language
@@-- @_Coverage_@ : True if user requested code coverage enable
@@-- @_Package_Name_@ : AADL Package name for the target (e.g. ocarina_porocessors_x86)
@@-- @_CPU_Name_@ : CPU Name (e.g. x86_linux)
@@-- @_CPU_Platform_@ : AADL CPU_Platform (e.g. PLATFORM_NATIVE)
@@-- @_CPU_Classifier_@ : AADL CPU Classifier (e.g. ocarina_processors_x86::x86.linux)
@@-- @_CPU_Family_@ : e.g. gr740 or x86
@@-- @_CPU_Instance_@ : e.g. rtems51_posix or linux
@@-- @_VP_Name_@ : Virtual processor name on which the partition is bounded
@@-- @_VP_Platform_@ : Virtual processor platform (e.g. PLATFORM_AIR)
@@-- @_VP_Classifier_@ : Virtual processor classifier
@@-- @_Ada_Runtime_@ : Set if CPU_Platform = PLATFORM_GNAT_RUNTIME
@@-- @_Bound_Functions_@ : List of user functions from Interface view
@@-- @_Thread_Src_Name_@ : Vector tag : connection thread name (source)
@@-- @_Thread_Dst_Name_@ : Vector tag : connection thread name (dest)
@@-- @_Thread_Src_Port_@ : Vector tag : connection port name (source)
@@-- @_Thread_Dst_Port_@ : Vector tag : connection port name (dest)
@@-- @_In_Port_Names_@ : Vector tag: input ports of the partition
@@-- @_In_Port_Thread_Name_@ : |_ corresponding thread inside the partition
@@-- @_In_Port_Type_Name_@ : |_ corresponding parameter type name (optional)
@@-- @_Out_Port_Names_@ : Vector tag: output ports of the partition
@@-- @_Out_Port_Thread_Name_@ : |_ corresponding thread inside the partition
@@-- @_Out_Port_Type_Name_@ : |_ corresponding parameter type name (optional)
-- Node name : @_Name_@
-- Execution platform : @_CPU_Platform_@ @_CPU_Name_@ @_CPU_Platform_@ @_CPU_Classifier_@ @_Package_Name_@ @_CPU_Family_@ @_CPU_Instance_@
@@IF@@ @_VP_Name_@ = "" and (@_In_Port_Names'Length_@ > 0 or @_Out_Port_Names'Length_@ > 0)
@@SET@@ Distributed_System = TRUE
@@END_IF@@
@@-- Not all systems use Ada so we must not always include Ada dataview folder
@@TABLE@@
@@IF@@ @_LOWER:Block_Languages_@ = sdl or @_LOWER:Block_Languages_@ = ada
@@SET@@ Need_Ada = TRUE
@@END_IF@@
@@END_TABLE@@
project @_CAPITALIZE:Name_@_Zynq_RTEMS is
type Build_Type is ("Debug", "Release");
Build : Build_Type := external ("CFG", "Debug");
-- for Create_Missing_Dirs use "True"; (not supported in Debian 9, use -p instead)
for Object_Dir use "obj_rtems_with_ada";
for Exec_Dir use "../../binaries";
@@IF@@ @_Need_Ada_@ = TRUE
for Languages use ("Ada", "C", "C++");
@@ELSE@@
for Languages use ("C", "C++");
@@END_IF@@
for Main use ("main.c");
package Compiler is
Common_C_Switches :=
("-Wall",
"-Wextra",
"-mthumb",
"-march=armv7-a",
"-mfpu=neon",
"-mfloat-abi=hard",
"-mtune=cortex-a9",
"-g",
"-fdiagnostics-show-option",
"-ffunction-sections",
"-fdata-sections",
"-Wcast-align",
"-Wswitch",
"-Wmissing-prototypes",
"-Wimplicit-function-declaration",
@@IF@@ @_Distributed_System_@
"-D__PO_HI_USE_TRANSPORT",
@@END_IF@@
"-Wstrict-prototypes",
"-Wnested-externs",
"-Wl,-gc-sections");
case Build is
when "Release" =>
for Default_Switches ("C") use Common_C_Switches & ("-O2", "-DNDEBUG")
& external_as_list("USER_CFLAGS", "");
when "Debug" =>
for Default_Switches ("C") use Common_C_Switches & ("-D__PO_HI_USE_VCD=1")
& external_as_list("USER_CFLAGS", "");
end case;
end Compiler;
package Linker is
for Default_Switches ("C") use
external_as_list("USER_LDFLAGS", "");
end Linker;
package Builder is
for Executable_Suffix use ".exe";
for Executable ("main.c") use "@_Name_@_leon3_rtems";
end Builder;
-- following to be updated with all relevant source dirs
for Source_Dirs use
("@_LOWER:Name_@",
"/opt/rtems-5.1-2020.04.29/arm-rtems5/xilinx_zynq_zc706/lib/include",
@@IF@@ @_Distributed_System_@
"../deploymentview_final/polyorb-hi-c/include/drivers/configuration",
"../DriversConfig",
@@END_IF@@
"../deploymentview_final/polyorb-hi-c/src",
"../deploymentview_final/polyorb-hi-c/include",
"../../dataview/C",
@@TABLE@@
@@IF@@ @_LOWER:Block_Languages_@ = sdl
"../../@_LOWER:Block_Names_@/SDL/code",
"../../@_LOWER:Block_Names_@/SDL/wrappers",
@@ELSE@@
"../../@_LOWER:Block_Names_@/@_Block_Languages_@/src",
"../../@_LOWER:Block_Names_@/@_Block_Languages_@/wrappers",
@@END_IF@@
@@END_TABLE@@
"../deploymentview_final/@_LOWER:Name_@")
& external_as_list("EXTERNAL_SOURCE_PATH", ":")
& external_as_list("@_UPPER:Name_@_EXTERNAL_SOURCE_PATH", ":")
& external_as_list("ADA_INCLUDE_PATH", ":");
-- These files are not needed to use POHIC: don' t compile them
for Excluded_Source_Files use
(
@_Blocks_@
"config.c",
"config_leon4_n2x.c",
"config_leon3_drvmgr.c",
"grspw_api.c",
"grspw_pkt_lib.c",
@@IF@@ not @_Distributed_System_@ and @_Thread_Src_Port'Length_@ = 0
"po_hi_gqueue.c",
"po_hi_semaphore.c",
"po_hi_transport.c",
@@END_IF@@
@@IF@@ not @_Distributed_System_@
"po_hi_marshallers.c",
"marshallers.c",
"po_hi_driver_leon_eth.c",
"po_hi_driver_leon_serial.c",
"po_hi_driver_rtems_drvmgr_ethernet.c",
"po_hi_driver_rtems_drvmgr_serial.c",
"po_hi_driver_serial_common.c",
"po_hi_driver_drvmgr_common.c",
@@END_IF@@
"po_hi_driver_rtems_drvmgr_spacewire.c", -- misses an include
"po_hi_driver_exarm.c",
"po_hi_driver_exarm_ni_6071e_analog.c",
"po_hi_driver_exarm_ni_6071e_digital.c",
"po_hi_driver_keyboard.c",
"po_hi_driver_linux_serial.c",
"po_hi_driver_rasta_1553_brmlib.c",
"po_hi_driver_rasta_1553.c",
"po_hi_driver_rasta_common.c",
"po_hi_driver_rasta_serial.c",
"po_hi_driver_rasta_spacewire.c",
"po_hi_driver_rtems_ne2000.c",
"po_hi_driver_sockets.c",
"po_hi_driver_stardundee.c",
"po_hi_driver_usbbrick_spacewire.c",
"po_hi_driver_xc4v_fpga.c",
"po_hi_giop.c",
"po_hi_gprof_rtems_leon.c",
"po_hi_lua.c",
-- "po_hi_monitor.c",
"po_hi_simulink.c",
"po_hi_storage.c",
"spwrouter_custom_config.c",
"star_dundee_api.c",
"trace_manager.c",
"um_threads.c",
"cheddar_schedule.cc",
"remote_configuration.cc");
end @_CAPITALIZE:Name_@_Zynq_RTEMS;
@@-- The following tags are available in this template:
@@--
@@-- @_Name_@ : The name of the interface
@@-- @_Direction_@ : "PI" or "RI"
@@-- @_Kind_@ : The RCM Kind
@@-- @_Parent_Function_@ : The name of the function
@@-- @_Param_Names_@ : List of parameter names
@@-- @_Param_Types_@ : |_ Corresponding parameter types
@@-- @_Param_Directions_@ : |_ Corresponding direction
@_Name_@
@@-- The following tags are available in this template:
@@--
@@-- @_Name_@ : The name of the interface
@@-- @_Direction_@ : "PI" or "RI"
@@-- @_Kind_@ : The RCM Kind
@@-- @_Parent_Function_@ : The name of the function
@@-- @_Param_Names_@ : List of parameter names
@@-- @_Param_Types_@ : |_ Corresponding parameter types
@@-- @_Param_Directions_@ : |_ Corresponding direction
@@-- The following tags are available in this template:
@@--
@@-- @_Nodes_@ : Code generated for the nodes
@@-- @_Node_Names_@ : Vector Tag of node names
@@-- @_Node_CPU_@ : |_ Corresponding CPU name (eg x86_linux)
@@-- @_Node_CPU_Classifier_@ : |_ CPU Classifier (ocarina...::x86_linux)
@@-- @_Partition_Names_@ : Vector Tag of partition names
@@-- @_Partition_Node_@ : |_ Corresponding node name
@@-- @_Partition_CPU_@ : |_ Corresponding CPU name
@@-- @_Threads_@ : Code generated for the threads
@@-- @_Thread_Names_@ : List of all threads in the complete system
@@-- @_Target_Packages_@ : List of all target package names in the complete system
@@-- And all the system configuration obtained from the command line:
@@-- Interface_View, Deployment_View, Data_View, Binary_Path, Check_Data_View,
@@-- Output_Dir, Skeletons, Glue, Use_POHIC, Timer_Resolution, Debug_Flag,
@@-- No_Stdlib_Flag, Timer_Resolution, Other_Files (list of aadl files)
@@-- The following tags are available in this template:
@@--
@@-- @_Thread_Name_@ : Thread name
@@-- @_Entry_Port_Name_@ : Name of the PI
@@-- @_RCM_@ : One of "CYCLIC_OPERATION", "SPORADIC_OPERATION"
@@-- @_Pro_Block_Name_@ : Name of the protected function
@@-- @_Node_Name_@ : Name of the deployment node
@@-- @_Remote_Threads_@ : Vector tag: output remote thread list
@@-- @_RI_Port_Name_@ : |_ Corresponding local RI name
@@-- @_Remote_PIs_@ : |_ Associated PI Name
@@-- @_Remote_PI_Sorts_@ : |_ Optional param type of the remote thread
@@-- @_Remote_PI_Modules_@ : |_ Asn1 module of the optional param type
@@-- Tags related to the PI that is at the origin of the thread creation:
@@-- @_Name_@, @_Kind_@, @_Parent_Function_@ : shoud be useless here
@@-- @_Param_Names_@, _Types_@, _ASN1_Modules, _Encodings_@, _Directions_@ : param vector tag
@@-- @_Period_@, @_WCET_@, @_Queue_Size_@ : relevant here
@@-- @_IF_Property_Names_@, _Values_@ : user properties (vector tag)
@@--
@@-- Matrix of output ports: Remote thread/corresponding remote PI @_Name_@
@@-- The following boolean tags are available to decide if the file
@@-- shall be generated or not:
@@-- Filename_Is_Present
@@-- Skeletons
@@-- Glue
@@-- Use_POHIC
@@-- Debug
@@-- No_Stdlib
@_Use_POHIC_@
Generate a gpr configuration file for RTEMS with Ada support (POHIC)
@@-- The following tags are available in this template:
@@--
@@-- @_Name_@ : Protected block name
@@-- @_Language_@ : Implementation language
@@-- @_Calling_Threads_@ : List of calling threads
@@-- @_Node name_@ : Node name
@@-- @_Protected_PIs_@ : Protected Provided interfaces (from pi.tmplt)
@@-- @_Unprotected_PIs_@ : Unprotected Provided interfaces (from pi.tmplt)
@@-- @_Required_@ : Required interfaces (from ri.tmplt)
@@-- Specify the file name for a protected block
@@-- @_Block_Name_@ is available.
@@-- Don't specify anything if you don't want the file to be created
@@-- The following tags are available in this template:
@@--
@@-- @_Node_Name_@ : Name of the node as defined in the Deployment View
@@-- The content of this file is generated from node.tmplt
@@-- If there is no string defined here, no file will be generated per node,
@@-- (that's an option if the intent is to generate only one file per system)
@@-- Specify the file name for a partition
@@-- @_Partition_Name_@ is available.
@@-- Don't specify anything if you don't want the file to be created
zynq_rtems_qemu.cgpr
@@-- Specify the file name for the complete system (including nodes)
@@-- (no template tag)
@@-- Specify the file name for a thread
@@-- @_Thread_Name_@ is available.
@@-- Don't specify anything if you don't want the file to be created
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