Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Esteban Blanc
proview
Commits
fa384bc6
Commit
fa384bc6
authored
Nov 20, 2009
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'pwre ebuild' setupfile added, to control which modules are to be built
parent
0f0ea049
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
205 additions
and
77 deletions
+205
-77
src/tools/pwre/src/os_linux/ebuild.dat
src/tools/pwre/src/os_linux/ebuild.dat
+16
-0
src/tools/pwre/src/os_linux/pwre.pl
src/tools/pwre/src/os_linux/pwre.pl
+189
-77
No files found.
src/tools/pwre/src/os_linux/ebuild.dat
0 → 100644
View file @
fa384bc6
bcomp 1
java 1
remote 1
nmps 1
sev 1
opc 1
profibus 1
otherio 1
ssabox 1
tlog 1
othermanu 1
abb 1
siemens 1
klocknermoeller 1
inor 1
telemecanique 1
\ No newline at end of file
src/tools/pwre/src/os_linux/pwre.pl
View file @
fa384bc6
...
...
@@ -232,6 +232,51 @@ sub build_kernel # args: flavour
#
sub
ebuild
#
args
:
pass
flavour
{
my
$fname
=
$ENV
{"
pwre_bin
"}
.
"
/ebuild.dat
";
open
FILE
,
$fname
or
die
$!
;
my
$build_bcomp
=
0
;
my
$build_java
=
0
;
my
$build_remote
=
0
;
my
$build_nmps
=
0
;
my
$build_sev
=
0
;
my
$build_opc
=
0
;
my
$build_profibus
=
0
;
my
$build_otherio
=
0
;
my
$build_ssabox
=
0
;
my
$build_tlog
=
0
;
my
$build_othermanu
=
0
;
my
$build_abb
=
0
;
my
$build_siemens
=
0
;
my
$build_klocknermoeller
=
0
;
my
$build_inor
=
0
;
my
$build_telemecanique
=
0
;
printf
(
"
-- Building modules
\n
");
while
(
<
FILE
>
)
{
my
@value
=
split
(
'
',
$_
);
if
(
$value
[
0
]
eq
"
bcomp
"
&&
$value
[
1
]
eq
"
1
"
)
{
$build_bcomp
=
1
;
printf
(
"
-- bcomp
\n
");}
elsif
(
$value
[
0
]
eq
"
remote
"
&&
$value
[
1
]
eq
"
1
"
)
{
$build_remote
=
1
;
printf
(
"
-- remote
\n
");}
elsif
(
$value
[
0
]
eq
"
java
"
&&
$value
[
1
]
eq
"
1
"
)
{
$build_java
=
1
;
printf
(
"
-- java
\n
");}
elsif
(
$value
[
0
]
eq
"
nmps
"
&&
$value
[
1
]
eq
"
1
"
)
{
$build_nmps
=
1
;
printf
(
"
-- nmps
\n
");}
elsif
(
$value
[
0
]
eq
"
sev
"
&&
$value
[
1
]
eq
"
1
"
)
{
$build_sev
=
1
;
printf
(
"
-- sev
\n
");}
elsif
(
$value
[
0
]
eq
"
opc
"
&&
$value
[
1
]
eq
"
1
"
)
{
$build_opc
=
1
;
printf
(
"
-- opc
\n
");}
elsif
(
$value
[
0
]
eq
"
profibus
"
&&
$value
[
1
]
eq
"
1
"
)
{
$build_profibus
=
1
;
printf
(
"
-- profibus
\n
");}
elsif
(
$value
[
0
]
eq
"
otherio
"
&&
$value
[
1
]
eq
"
1
"
)
{
$build_otherio
=
1
;
printf
(
"
-- otherio
\n
");}
elsif
(
$value
[
0
]
eq
"
ssabox
"
&&
$value
[
1
]
eq
"
1
"
)
{
$build_ssabox
=
1
;
printf
(
"
-- ssabox
\n
");}
elsif
(
$value
[
0
]
eq
"
tlog
"
&&
$value
[
1
]
eq
"
1
"
)
{
$build_tlog
=
1
;
printf
(
"
-- tlog
\n
");}
elsif
(
$value
[
0
]
eq
"
othermanu
"
&&
$value
[
1
]
eq
"
1
"
)
{
$build_othermanu
=
1
;
printf
(
"
-- othermanu
\n
");}
elsif
(
$value
[
0
]
eq
"
abb
"
&&
$value
[
1
]
eq
"
1
"
)
{
$build_abb
=
1
;
printf
(
"
-- abb
\n
");}
elsif
(
$value
[
0
]
eq
"
siemens
"
&&
$value
[
1
]
eq
"
1
"
)
{
$build_siemens
=
1
;
printf
(
"
-- siemens
\n
");}
elsif
(
$value
[
0
]
eq
"
klocknermoeller
"
&&
$value
[
1
]
eq
"
1
"
)
{
$build_klocknermoeller
=
1
;
printf
(
"
-- klocknermoeller
\n
");}
elsif
(
$value
[
0
]
eq
"
inor
"
&&
$value
[
1
]
eq
"
1
"
)
{
$build_inor
=
1
;
printf
(
"
-- inor
\n
");}
elsif
(
$value
[
0
]
eq
"
telemecanique
"
&&
$value
[
1
]
eq
"
1
"
)
{
$build_telemecanique
=
1
;
printf
(
"
-- telemecanique
\n
");}
}
printf
(
"
\n
");
close
FILE
;
my
$pass
=
$_
[
0
];
my
$flavour
=
$_
[
1
];
if
(
$_
[
1
]
eq
"
motif
")
{
...
...
@@ -276,49 +321,85 @@ sub ebuild # args: pass flavour
_build
("
exe
",
"
rt*
",
"
src
",
"
all
");
_build
("
exe
",
"
co*
",
$flavour
,
"
all
");
_build
("
exe
",
"
pwr_user
",
"
src
",
"
all
");
merge
();
_module
("
nmps
");
_build
("
lib
",
"
nmps
",
"
src
",
"
all
");
merge
();
_module
("
bcomp
");
_build
("
lib
",
"
rt
",
"
src
",
"
all
");
merge
();
_module
("
ssabox
");
_build
("
lib
",
"
rt
",
"
src
",
"
all
");
_build
("
lib
",
"
ssabox
",
"
src
",
"
all
");
merge
();
_module
("
otherio
");
_build
("
lib
",
"
rt
",
"
src
",
"
all
");
merge
();
_module
("
remote
");
_build
("
lib
",
"
remote
",
"
src
",
"
all
");
_build
("
exe
",
"
*
",
"
src
",
"
all
");
merge
();
_module
("
opc
");
_build
("
lib
",
"
opc
",
"
src
",
"
all
");
_build
("
exe
",
"
*
",
"
src
",
"
all
");
merge
();
_module
("
tlog
");
_build
("
lib
",
"
tlog
",
"
src
",
"
all
");
merge
();
_module
("
java
");
_build
("
exe
",
"
jpwr_rt_gdh
",
"
src
",
"
all
");
merge
();
_module
("
abb
");
merge
();
_module
("
siemens
");
merge
();
_module
("
othermanu
");
merge
();
_module
("
inor
");
merge
();
_module
("
klocknermoeller
");
merge
();
_module
("
telemecanique
");
merge
();
_module
("
siemens
");
merge
();
if
(
$build_nmps
==
1
)
{
merge
();
_module
("
nmps
");
_build
("
lib
",
"
nmps
",
"
src
",
"
all
");
merge
();
}
if
(
$build_bcomp
==
1
)
{
_module
("
bcomp
");
_build
("
lib
",
"
rt
",
"
src
",
"
all
");
merge
();
}
if
(
$build_ssabox
==
1
)
{
_module
("
ssabox
");
_build
("
lib
",
"
rt
",
"
src
",
"
all
");
_build
("
lib
",
"
ssabox
",
"
src
",
"
all
");
merge
();
}
if
(
$build_otherio
==
1
)
{
_module
("
otherio
");
_build
("
lib
",
"
rt
",
"
src
",
"
all
");
merge
();
}
if
(
$build_profibus
==
1
)
{
_module
("
profibus
");
_build
("
lib
",
"
rt
",
"
src
",
"
all
");
merge
();
}
if
(
$build_remote
==
1
)
{
_module
("
remote
");
_build
("
lib
",
"
remote
",
"
src
",
"
all
");
_build
("
exe
",
"
*
",
"
src
",
"
all
");
merge
();
}
if
(
$build_opc
==
1
)
{
_module
("
opc
");
_build
("
lib
",
"
opc
",
"
src
",
"
all
");
_build
("
exe
",
"
*
",
"
src
",
"
all
");
merge
();
}
if
(
$build_tlog
==
1
)
{
_module
("
tlog
");
_build
("
lib
",
"
tlog
",
"
src
",
"
all
");
merge
();
}
if
(
$build_java
==
1
)
{
_module
("
java
");
_build
("
exe
",
"
jpwr_rt_gdh
",
"
src
",
"
all
");
merge
();
}
if
(
$build_sev
==
1
)
{
_module
("
sev
");
_build
("
lib
",
"
sev
",
"
src
",
"
all
");
_build
("
exe
",
"
sev_server
",
"
src
",
"
all
");
merge
();
}
if
(
$build_abb
==
1
)
{
_module
("
abb
");
merge
();
}
if
(
$build_siemens
==
1
)
{
_module
("
siemens
");
merge
();
}
if
(
$build_othermanu
==
1
)
{
_module
("
othermanu
");
merge
();
}
if
(
$build_inor
==
1
)
{
_module
("
inor
");
merge
();
}
if
(
$build_klocknermoeller
==
1
)
{
_module
("
klocknermoeller
");
merge
();
}
if
(
$build_telemecanique
==
1
)
{
_module
("
telemecanique
");
merge
();
}
}
elsif
(
$pass
eq
"
op
"
)
{
_module
("
xtt
");
...
...
@@ -340,40 +421,71 @@ sub ebuild # args: pass flavour
_build
("
exe
",
"
co*
",
$flavour
,
"
all
");
_build
("
exe
",
"
pwr*
",
$flavour
,
"
all
");
merge
();
_module
("
bcomp
");
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
merge
();
_module
("
profibus
");
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
_build
("
lib
",
"
cow
",
"
src
",
"
init copy lib
");
_build
("
lib
",
"
cow
",
$flavour
,
"
init copy lib
");
_build
("
lib
",
"
xtt
",
"
src
",
"
init copy lib
");
_build
("
lib
",
"
xtt
",
$flavour
,
"
init copy lib
");
merge
();
_module
("
opc
");
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
merge
();
_module
("
othermanu
");
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
merge
();
_module
("
abb
");
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
merge
();
_module
("
inor
");
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
merge
();
_module
("
siemens
");
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
merge
();
_module
("
klocknermoeller
");
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
merge
();
_module
("
ssabox
");
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
merge
();
_module
("
telemecanique
");
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
merge
();
if
(
$build_bcomp
==
1
)
{
_module
("
bcomp
");
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
merge
();
}
if
(
$build_profibus
==
1
)
{
_module
("
profibus
");
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
_build
("
lib
",
"
cow
",
"
src
",
"
init copy lib
");
_build
("
lib
",
"
cow
",
$flavour
,
"
init copy lib
");
_build
("
lib
",
"
xtt
",
"
src
",
"
init copy lib
");
_build
("
lib
",
"
xtt
",
$flavour
,
"
init copy lib
");
merge
();
}
if
(
$build_opc
==
1
)
{
_module
("
opc
");
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
merge
();
}
if
(
$build_otherio
==
1
)
{
_module
("
otherio
");
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
merge
();
}
if
(
$build_sev
==
1
)
{
_module
("
sev
");
_build
("
exe
",
"
sev_xtt
",
"
src
",
"
all
");
_build
("
exe
",
"
sev_xtt
",
$flavour
,
"
all
");
merge
();
}
if
(
$build_othermanu
==
1
)
{
_module
("
othermanu
");
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
merge
();
}
if
(
$build_abb
==
1
)
{
_module
("
abb
");
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
merge
();
}
if
(
$build_inor
==
1
)
{
_module
("
inor
");
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
merge
();
}
if
(
$build_siemens
==
1
)
{
_module
("
siemens
");
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
merge
();
}
if
(
$build_klocknermoeller
==
1
)
{
_module
("
klocknermoeller
");
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
merge
();
}
if
(
$build_ssabox
==
1
)
{
_module
("
ssabox
");
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
merge
();
}
if
(
$build_telemecanique
==
1
)
{
_module
("
telemecanique
");
_build
("
mmi
",
"
*
",
"
src
",
"
copy
");
merge
();
}
method_build
(
"
rt_io_comm
",
$flavour
);
method_build
(
"
rt_xtt
",
$flavour
);
}
...
...
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