Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
kazoo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TASTE
kazoo
Commits
724ee382
Commit
724ee382
authored
Sep 02, 2019
by
Maxime Perrotin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for USER_CFLAGS, USER_LDFLAGS, EXTERNAL_SOURCE_PATH
parent
5ce2e7ed
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
7 deletions
+33
-7
templates/concurrency_view/ada_pohi_gpr/partition.tmplt
templates/concurrency_view/ada_pohi_gpr/partition.tmplt
+1
-0
templates/concurrency_view/air_gpr/partition.tmplt
templates/concurrency_view/air_gpr/partition.tmplt
+10
-2
templates/concurrency_view/c_pohi_gpr/partition.tmplt
templates/concurrency_view/c_pohi_gpr/partition.tmplt
+7
-3
templates/concurrency_view/c_pohi_rtems_with_ada_gpr/partition.tmplt
...oncurrency_view/c_pohi_rtems_with_ada_gpr/partition.tmplt
+10
-2
test/Demo_C/Makefile
test/Demo_C/Makefile
+5
-0
No files found.
templates/concurrency_view/ada_pohi_gpr/partition.tmplt
View file @
724ee382
...
...
@@ -65,6 +65,7 @@ project @_CAPITALIZE:Name_@ is
"../../@_LOWER:Block_Names_@/@_Block_Languages_@/wrappers"
,
@@
END_TABLE
@@
"../deploymentview_final/@_LOWER:Name_@"
)
&
external_as_list
(
"EXTERNAL_SOURCE_PATH"
,
":"
)
&
external_as_list
(
"ADA_INCLUDE_PATH"
,
":"
);
for
Object_Dir
use
"obj_ada"
;
...
...
templates/concurrency_view/air_gpr/partition.tmplt
View file @
724ee382
...
...
@@ -69,12 +69,19 @@ project @_CAPITALIZE:Name_@_AIR is
case
Build
is
when
"Release"
=>
for
Default_Switches
(
"C"
)
use
Common_C_Switches
&
(
"-O2"
,
"-DNDEBUG"
);
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"
);
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_@"
;
...
...
@@ -103,6 +110,7 @@ project @_CAPITALIZE:Name_@_AIR is
@@
END_IF
@@
@@
END_TABLE
@@
"../deploymentview_final/@_LOWER:Name_@"
)
&
external_as_list
(
"EXTERNAL_SOURCE_PATH"
,
":"
)
&
external_as_list
(
"ADA_INCLUDE_PATH"
,
":"
);
--
These
files
are
not
needed
to
use
POHIC
:
don
' t compile them
...
...
templates/concurrency_view/c_pohi_gpr/partition.tmplt
View file @
724ee382
...
...
@@ -63,6 +63,7 @@ project @_CAPITALIZE:Name_@ is
@@END_IF@@
@@END_TABLE@@
"../deploymentview_final/@_LOWER:Name_@")
& external_as_list("EXTERNAL_SOURCE_PATH", ":")
& external_as_list("ADA_INCLUDE_PATH", ":");
for Object_Dir use "obj";
...
...
@@ -137,7 +138,8 @@ project @_CAPITALIZE:Name_@ is
"-Wextra",
"-fdiagnostics-show-option",
"-Wcast-align",
"-Wswitch");
"-Wswitch")
& external_as_list("USER_CFLAGS", " ");
when "Debug" =>
for Default_Switches ("C") use
("-g",
...
...
@@ -149,7 +151,8 @@ project @_CAPITALIZE:Name_@ is
"-Wextra",
"-fdiagnostics-show-option",
"-Wcast-align",
"-Wswitch");
"-Wswitch")
& external_as_list("USER_CFLAGS", " ");
end case;
end Compiler;
...
...
@@ -159,7 +162,8 @@ project @_CAPITALIZE:Name_@ is
"-lrt",
"-lpthread",
"-lm",
"-Wl,-gc-sections");
"-Wl,-gc-sections")
& external_as_list("USER_LDFLAGS", " ");
end Linker;
package Builder is
...
...
templates/concurrency_view/c_pohi_rtems_with_ada_gpr/partition.tmplt
View file @
724ee382
...
...
@@ -67,12 +67,19 @@ project @_CAPITALIZE:Name_@_RTEMS_Ada is
case
Build
is
when
"Release"
=>
for
Default_Switches
(
"C"
)
use
Common_C_Switches
&
(
"-O2"
,
"-DNDEBUG"
);
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"
);
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"
;
...
...
@@ -98,6 +105,7 @@ project @_CAPITALIZE:Name_@_RTEMS_Ada is
@@
END_IF
@@
@@
END_TABLE
@@
"../deploymentview_final/@_LOWER:Name_@"
)
&
external_as_list
(
"EXTERNAL_SOURCE_PATH"
,
":"
)
&
external_as_list
(
"ADA_INCLUDE_PATH"
,
":"
);
--
These
files
are
not
needed
to
use
POHIC
:
don
' t compile them
...
...
test/Demo_C/Makefile
View file @
724ee382
KAZOO
=
../../kazoo
# Add compiler and linker flags
export
USER_CFLAGS
=
export
USER_LDFLAGS
=
# you can add folders with source code you want to compile
export
EXTERNAL_SOURCE_PATH
=
all
:
c
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment