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
973287e4
Commit
973287e4
authored
Nov 25, 2010
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pwre configure script for arm_linux
parent
405cb332
Changes
16
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
1375 additions
and
67 deletions
+1375
-67
java/exe/jpwr_rt_gdh/src/jpwr_rt_hist.cpp
java/exe/jpwr_rt_gdh/src/jpwr_rt_hist.cpp
+31
-2
profibus/lib/rt/src/rt_pn_gsdml_data.cpp
profibus/lib/rt/src/rt_pn_gsdml_data.cpp
+1
-1
src/exp/com/src/os_linux/hw_arm/makefile
src/exp/com/src/os_linux/hw_arm/makefile
+97
-0
src/exp/com/src/os_linux/hw_arm/rt_webmon.sh
src/exp/com/src/os_linux/hw_arm/rt_webmon.sh
+24
-0
src/exp/com/src/os_linux/hw_arm/rt_webmonmh.sh
src/exp/com/src/os_linux/hw_arm/rt_webmonmh.sh
+24
-0
src/exp/com/src/os_linux/hw_arm/wb_rtt_comppicture.sh
src/exp/com/src/os_linux/hw_arm/wb_rtt_comppicture.sh
+69
-0
src/lib/dtt/src/os_templ/hw_templ/makefile
src/lib/dtt/src/os_templ/hw_templ/makefile
+3
-3
src/lib/rt/src/rt_rtt_edit.c
src/lib/rt/src/rt_rtt_edit.c
+8
-2
src/tools/bld/src/os_linux/hw_arm/variables.mk
src/tools/bld/src/os_linux/hw_arm/variables.mk
+231
-0
src/tools/pwre/src/os_freebsd/pwre_configure.sh
src/tools/pwre/src/os_freebsd/pwre_configure.sh
+1
-1
src/tools/pwre/src/os_linux/hw_arm/import_dbs.sh
src/tools/pwre/src/os_linux/hw_arm/import_dbs.sh
+33
-0
src/tools/pwre/src/os_linux/hw_arm/import_files.mk
src/tools/pwre/src/os_linux/hw_arm/import_files.mk
+238
-0
src/tools/pwre/src/os_linux/pwre_configure.sh
src/tools/pwre/src/os_linux/pwre_configure.sh
+107
-58
src/tools/pwre/src/os_macos/pwre_configure.sh
src/tools/pwre/src/os_macos/pwre_configure.sh
+1
-0
wb/exp/com/src/os_linux/hw_arm/makefile
wb/exp/com/src/os_linux/hw_arm/makefile
+78
-0
wb/exp/com/src/os_linux/hw_arm/wb_gcg.sh
wb/exp/com/src/os_linux/hw_arm/wb_gcg.sh
+429
-0
No files found.
java/exe/jpwr_rt_gdh/src/jpwr_rt_hist.cpp
View file @
973287e4
...
...
@@ -20,25 +20,35 @@
using
namespace
std
;
#include <deque>
#include <string>
#include <string.h>
#include <stdio.h>
#include "jpwr_rt_hist.h"
#ifdef PWRE_CONF_LIBDB_CXX
#include <db.h>
#endif
extern
"C"
{
#include "pwr.h"
#include "rt_mh.h"
#include "rt_mh_util.h"
#include "rt_mh_net.h"
#ifdef PWRE_CONF_LIBDB_CXX
#include "rt_elog.h"
#else
typedef
struct
{}
sEvent
;
#endif
#include "rt_gdh.h"
#include "co_cdh.h"
#include "co_dcli.h"
#include "co_time.h"
#include "co_cdh_msg.h"
#include "rt_gdh_msg.h"
#ifdef PWRE_CONF_LIBDB_CXX
static
void
gdh_ConvertUTFstring
(
char
*
out
,
char
*
in
);
#endif
}
jobject
convertAckToMhrEvent
(
mh_sAck
*
MsgP
);
jobject
convertReturnToMhrEvent
(
mh_sReturn
*
MsgP
);
...
...
@@ -107,6 +117,7 @@ JNIEXPORT void JNICALL Java_jpwr_rt_Hist_initHistIDs
JNIEXPORT
jobjectArray
JNICALL
Java_jpwr_rt_Hist_getHistList
(
JNIEnv
*
env
,
jclass
obj
,
jstring
jstartTime
,
jstring
jstopTime
,
jboolean
jtypeAlarm
,
jboolean
jtypeInfo
,
jboolean
jtypeReturn
,
jboolean
jtypeAck
,
jboolean
jprioA
,
jboolean
jprioB
,
jboolean
jprioC
,
jboolean
jprioD
,
jstring
jname
,
jstring
jtext
)
{
#ifdef PWRE_CONF_LIBDB_CXX
const
char
*
str
;
char
*
cstr_minTime
;
char
*
cstr_maxTime
;
...
...
@@ -303,8 +314,13 @@ err:
env
->
ReleaseStringUTFChars
(
jname
,
cstr_eventName
);
env
->
ReleaseStringUTFChars
(
jtext
,
cstr_eventText
);
return
jobjectArr
;
#else
return
0
;
#endif
}
#ifdef PWRE_CONF_LIBDB_CXX
int
check_conditions
(
sEvent
*
evp
,
HistQuery
*
query
)
{
pwr_tTime
minTime
;
...
...
@@ -505,10 +521,11 @@ int compareStr(char *ev, char *usr)
}
return
sts
;
}
#endif
jobject
convertAlarmOrInfoToMhrEvent
(
mh_sMessage
*
MsgP
)
{
#ifdef PWRE_CONF_LIBDB_CXX
JNIEnv
*
env
;
jclass
PwrtObjid_id
;
jmethodID
PwrtObjid_cid
;
...
...
@@ -591,11 +608,15 @@ jobject convertAlarmOrInfoToMhrEvent( mh_sMessage *MsgP)
}
return
return_obj
;
#else
return
0
;
#endif
}
jobject
convertReturnToMhrEvent
(
mh_sReturn
*
MsgP
)
{
#ifdef PWRE_CONF_LIBDB_CXX
JNIEnv
*
env
;
jclass
PwrtObjid_id
;
jmethodID
PwrtObjid_cid
;
...
...
@@ -684,10 +705,14 @@ jobject convertReturnToMhrEvent( mh_sReturn *MsgP)
}
return
return_obj
;
#else
return
0
;
#endif
}
jobject
convertAckToMhrEvent
(
mh_sAck
*
MsgP
)
{
#ifdef PWRE_CONF_LIBDB_CXX
JNIEnv
*
env
;
jclass
PwrtObjid_id
;
jmethodID
PwrtObjid_cid
;
...
...
@@ -777,8 +802,12 @@ jobject convertAckToMhrEvent( mh_sAck *MsgP)
}
return
return_obj
;
#else
return
0
;
#endif
}
#ifdef PWRE_CONF_LIBDB_CXX
static
void
gdh_ConvertUTFstring
(
char
*
out
,
char
*
in
)
{
char
*
s
,
*
t
;
...
...
@@ -829,6 +858,6 @@ static void gdh_ConvertUTFstring( char *out, char *in)
}
*
t
=
0
;
}
#endif
profibus/lib/rt/src/rt_pn_gsdml_data.cpp
View file @
973287e4
...
...
@@ -19,7 +19,7 @@
/* cow_pn_gsdml_data.cpp -- Profinet configurator data file */
#include "glow_std.h"
//
#include "glow_std.h"
#include <vector>
#include <iostream>
...
...
src/exp/com/src/os_linux/hw_arm/makefile
0 → 100644
View file @
973287e4
include
$(pwre_dir_symbols)
ifndef
variables_mk
-include
$(pwre_sroot)/tools/bld/src/$(os_name)/$(hw_name)/variables.mk
endif
ifndef
variables_mk
include
$(pwre_sroot)/tools/bld/src/$(os_name)/variables.mk
endif
ifndef
rules_mk
-include
$(pwre_sroot)/tools/bld/src/$(os_name)/$(hw_name)/rules.mk
endif
ifndef
rules_mk
include
$(pwre_sroot)/tools/bld/src/$(os_name)/rules.mk
endif
vpath %.sh $(hw_source)
:
$(os_source):$(co_source)
vpath %.pwr_com $(hw_source)
:
$(os_source):$(co_source)
vpath %.awk $(hw_source)
:
$(os_source):$(co_source)
source_dirs
=
$(hw_source)
$(os_source)
$(co_source)
sh_sources
:=
$(
sort
\
$(
foreach
file,
\
$(
foreach
dir
,
\
$(source_dirs)
,
\
$(
wildcard
$(dir)
/
*
.sh
)
\
)
,
$(
notdir
$(file)
)
\
)
\
)
pwr_com_sources
:=
$(
sort
\
$(
foreach
file,
\
$(
foreach
dir
,
\
$(source_dirs)
,
\
$(
wildcard
$(dir)
/
*
.pwr_com
)
\
)
,
$(
notdir
$(file)
)
\
)
\
)
awk_sources
:=
$(
sort
\
$(
foreach
file,
\
$(
foreach
dir
,
\
$(source_dirs)
,
\
$(
wildcard
$(dir)
/
*
.awk
)
\
)
,
$(
notdir
$(file)
)
\
)
\
)
export_sh
:=
$(
patsubst
%.sh,
$(exe_dir)
/%.sh,
$(sh_sources)
)
clean_sh
:=
$(
patsubst
%.sh, clean_%.sh,
$(sh_sources)
)
export_pwr_com
:=
$(
patsubst
%.pwr_com,
$(exe_dir)
/%.pwr_com,
$(pwr_com_sources)
)
clean_pwr_com
:=
$(
patsubst
%.pwr_com, clean_%.pwr_com,
$(pwr_com_sources)
)
export_awk
:=
$(
patsubst
%.awk,
$(exe_dir)
/%.awk,
$(awk_sources)
)
clean_awk
:=
$(
patsubst
%.awk, clean_%.awk,
$(awk_sources)
)
.PHONY
:
all init copy lib exe clean realclean
\
$(clean_sh)
all
:
init copy
init
:
copy
:
$(export_sh) $(export_pwr_com) $(export_awk)
lib
:
exe
:
clean
:
realclean
:
clean $(clean_sh) $(clean_pwr_com) $(clean_awk)
$(export_sh)
:
$(exe_dir)/%.sh : %.sh
@
echo
"Exporting
$<
..."
@
$(cp)
$(cpflags)
$(source)
$(target)
$(export_pwr_com)
:
$(exe_dir)/%.pwr_com : %.pwr_com
@
echo
"Exporting
$<
..."
@
$(cp)
$(cpflags)
$(source)
$(target)
$(export_awk)
:
$(exe_dir)/%.awk : %.awk
@
echo
"Exporting
$<
..."
@
$(cp)
$(cpflags)
$(source)
$(target)
$(clean_sh)
:
clean_%.sh : %.sh
@
rm
$(exe_dir)
/
$*
.sh
$(clean_pwr_com)
:
clean_%.pwr_com : %.pwr_com
@
rm
$(exe_dir)
/
$*
.pwr_com
$(clean_awk)
:
clean_%.awk : %.awk
@
rm
$(exe_dir)
/
$*
.awk
src/exp/com/src/os_linux/hw_arm/rt_webmon.sh
0 → 100755
View file @
973287e4
#!/bin/bash
#
# Proview $Id: rt_webmon.sh,v 1.5 2007-10-30 07:48:50 claes Exp $
# Copyright (C) 2005 SSAB Oxelsund AB.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with the program, if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#
export
LD_LIBRARY_PATH
=
$pwr_exe
export
CLASSPATH
=
$pwr_lib
/pwr_rt.jar:
$pwr_lib
/pwr_jop.jar
java jpwr.rt.GdhServer
#$jdk_home/java -Djava.library.path=$jdk/lib/i386/client:$jdk/lib/i386:$jdk/../lib/i386:$pwr_exe jpwr.rt.GdhServer
\ No newline at end of file
src/exp/com/src/os_linux/hw_arm/rt_webmonmh.sh
0 → 100755
View file @
973287e4
#!/bin/bash
#
# Proview $Id: rt_webmonmh.sh,v 1.4 2007-10-30 07:48:50 claes Exp $
# Copyright (C) 2005 SSAB Oxelsund AB.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with the program, if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#
export
LD_LIBRARY_PATH
=
$pwr_exe
export
CLASSPATH
=
$pwr_lib
/pwr_rt.jar:
$pwr_lib
/pwr_jop.jar
java jpwr.rt.MhServer
#$jdk_home/java -Djava.library.path=$jdk/lib/i386/client:$jdk/lib/i386:$jdk/../lib/i386:$pwr_exe jpwr.rt.MhServer
src/exp/com/src/os_linux/hw_arm/wb_rtt_comppicture.sh
0 → 100755
View file @
973287e4
#!/bin/bash
#
# Proview $Id: wb_rtt_comppicture.sh,v 1.2 2005-09-01 14:57:49 claes Exp $
# Copyright (C) 2005 SSAB Oxelsund AB.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with the program, if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#
# Compile a rtt picture
#
# set -o xtrace
name
=
$1
pgmname
=
$2
is_rttsys
=
$3
opsys
=
$4
# echo $name $pgmname $is_rttsys $opsys
if
[
$opsys
=
"512"
]
then
# echo "Opsys is linux"
if
[
$is_rttsys
=
"0"
]
then
ar_name_pict
=
${
pwrp_lib
}
/ra_rtt_
${
pgmname
}
_pict.a
cc
=
arm-linux-gnueabi-gcc-4.3
cinc
=
"-I
$pwr_inc
-I
$pwrp_rttbld
"
cflags
=
"-DOS_LINUX -DOS=linux -DHW_ARM=1 -DPOSIX_SOURCE -DWall"
${
cc
}
-c
-o
$pwrp_obj
/
${
name
}
.o
$pwrp_rttbld
/
${
name
}
.c
${
cinc
}
${
cflags
}
ar rc
${
ar_name_pict
}
$pwrp_obj
/
${
name
}
.o
else
# echo "Is rttsys"
ar_name_pict
=
${
pwr_lib
}
/libpwr_dtt.a
bld_dir
=
$pwre_broot
/
$pwre_os
/
$pwre_hw
/bld/lib/dtt
# echo $ar_name $ar_name_pict
cc
=
arm-linux-gnueabi-gcc-4.3
cinc
=
"-I
$pwr_inc
-I
${
bld_dir
}
"
cflags
=
"-DOS_LINUX -DOS=linux -DHW_ARM=1 -DPOSIX_SOURCE -DWall"
${
cc
}
-c
-o
${
bld_dir
}
/
${
name
}
.o
\
${
bld_dir
}
/
${
name
}
.c
${
cinc
}
${
cflags
}
ar rc
${
ar_name_pict
}
${
bld_dir
}
/
${
name
}
.o
fi
else
echo
"Opsys (
$opsys
) is not linux, not yet supported"
# if [ $is_rttsys = "0" ]
# then
# echo "Not rttsys"
# else
# echo "Is rttsys"
# fi
fi
src/lib/dtt/src/os_templ/hw_templ/makefile
View file @
973287e4
...
...
@@ -165,7 +165,7 @@ $(export_lib) : $(objects)
@
echo
"Building archive
$(
notdir
$(export_lib)
)
"
@
$(rm)
$(export_lib)
@
$(ar)
-cr
$(export_lib)
$(objects)
$(obj_dir)/%.o
:
%.c
ifeq
($(nodep),)
@
$(log_c_d)
...
...
@@ -181,11 +181,11 @@ endif
$(export_lib)(%.o)
:
%.dtt
@
echo
"Generate
$(sname)
"
@
$(
pwr_exe)
/wb_rtt rttsys generate/id
=
$(sname
)
@
$(
wb_rtt)
rttsys generate/id
=
$(sname)
$(pwre_conf_dtt_platform
)
$(bld_dir)/%.c
:
%.dtt_m
@
echo
"Generate menu"
@
$(
pwr_exe)
/wb_rtt rttsys generate/menu
@
$(
wb_rtt)
rttsys generate/menu
$(pwre_conf_dtt_platform)
-include
$(source_dependencies)
...
...
src/lib/rt/src/rt_rtt_edit.c
View file @
973287e4
...
...
@@ -849,6 +849,8 @@ static int save_func( edit_ctx ctx,
opsys
=
pwr_mOpSys_X86_LINUX
;
else
if
(
cdh_NoCaseStrncmp
(
arg1_str
,
"X86_64_LINUX"
,
strlen
(
arg1_str
))
==
0
)
opsys
=
pwr_mOpSys_X86_64_LINUX
;
else
if
(
cdh_NoCaseStrncmp
(
arg1_str
,
"ARM_LINUX"
,
strlen
(
arg1_str
))
==
0
)
opsys
=
pwr_mOpSys_ARM_LINUX
;
else
if
(
cdh_NoCaseStrncmp
(
arg1_str
,
"X86_64_MACOS"
,
strlen
(
arg1_str
))
==
0
)
opsys
=
pwr_mOpSys_X86_64_MACOS
;
else
if
(
cdh_NoCaseStrncmp
(
arg1_str
,
"X86_64_FREEBSD"
,
strlen
(
arg1_str
))
==
0
)
...
...
@@ -909,7 +911,9 @@ static int save_func( edit_ctx ctx,
opsys
=
pwr_mOpSys_X86_LINUX
;
else
if
(
cdh_NoCaseStrncmp
(
arg1_str
,
"X86_64_LINUX"
,
strlen
(
arg1_str
))
==
0
)
opsys
=
pwr_mOpSys_X86_64_LINUX
;
else
if
(
cdh_NoCaseStrncmp
(
arg1_str
,
"X86_64_MACOS"
,
strlen
(
arg1_str
))
==
0
)
else
if
(
cdh_NoCaseStrncmp
(
arg1_str
,
"ARM_LINUX"
,
strlen
(
arg1_str
))
==
0
)
opsys
=
pwr_mOpSys_ARM_LINUX
;
else
if
(
cdh_NoCaseStrncmp
(
arg1_str
,
"ARM_MACOS"
,
strlen
(
arg1_str
))
==
0
)
opsys
=
pwr_mOpSys_X86_64_MACOS
;
else
if
(
cdh_NoCaseStrncmp
(
arg1_str
,
"X86_64_FREEBSD"
,
strlen
(
arg1_str
))
==
0
)
opsys
=
pwr_mOpSys_X86_64_FREEBSD
;
...
...
@@ -7785,7 +7789,9 @@ int dtt_start( char *programname)
if
(
strcmp
(
rtt_hw
,
"x86"
)
==
0
)
dtt_current_opsys
=
pwr_mOpSys_X86_LINUX
;
else
if
(
strcmp
(
rtt_hw
,
"x86_64"
)
==
0
)
dtt_current_opsys
=
pwr_mOpSys_X86_LINUX
;
dtt_current_opsys
=
pwr_mOpSys_X86_64_LINUX
;
else
if
(
strcmp
(
rtt_hw
,
"arm"
)
==
0
)
dtt_current_opsys
=
pwr_mOpSys_ARM_LINUX
;
else
dtt_current_opsys
=
pwr_mOpSys_PPC_LINUX
;
#elif defined OS_MACOS
...
...
src/tools/bld/src/os_linux/hw_arm/variables.mk
0 → 100644
View file @
973287e4
# variables.mk -- variables common to all makefiles
#
# PROVIEW/R
# Copyright (C) 1996 by Comator Process AB.
#
# <Description>
#
ifndef
variables_mk
variables_mk
:=
1
release_root
:=
$(pwre_broot)
/
$(os_name)
/
$(hw_name)
module_root
:=
$(release_root)
/
$(pwre_bmodule)
export_type
:=
$(export_type)
exe_dir
:=
$(module_root)
/exe
lib_dir
:=
$(module_root)
/lib
obj_dir
:=
$(module_root)
/obj
cnf_dir
:=
$(module_root)
/cnf
db_dir
:=
$(module_root)
/db
inc_dir
:=
$(module_root)
/inc
lis_dir
:=
$(module_root)
/lis
kit_dir
:=
$(module_root)
/kit
src_dir
:=
$(module_root)
/src
load_dir
:=
$(module_root)
/load
doc_dir
:=
$(release_root)
/exp/doc
elib_dir
:=
$(release_root)
/exp/lib
einc_dir
:=
$(release_root)
/exp/inc
eobj_dir
:=
$(release_root)
/exp/obj
eexe_dir
:=
$(release_root)
/exp/exe
bld_dir
:=
$(release_root)
/bld/
$(type_name)
/
$(comp_name)
tmp_dir
:=
$(release_root)
/tmp
c_ext
:=
.c
d_ext
:=
.d
d_ld_ext
:=
.d_ld
h_ext
:=
.h
lib_ext
:=
.a
obj_ext
:=
.o
map_ext
:=
.map
# Full names of source directories
fhw_source
:=
$(pwre_sroot)
/
$(type_name)
/
$(comp_name)
/src/
$(os_name)
/
$(hw_name)
fos_source
:=
$(pwre_sroot)
/
$(type_name)
/
$(comp_name)
/src/
$(os_name)
fco_source
:=
$(pwre_sroot)
/
$(type_name)
/
$(comp_name)
/src
# Relative names of source directories
hw_source
:=
.
os_source
:=
../
co_source
:=
../../
ifndef
pwre_lang
lang_dir
:=
$(exe_dir)
lang_bld_dir
:=
$(bld_dir)
else
ifeq
($(pwre_lang),en_us)
lang
:=
en
endif
ifeq
($(pwre_lang),sv_se)
lang
:=
sw
pwr_lang
:=
1
endif
lang_hw_source
:=
$(pwre_sroot)
/
$(type_name)
/
$(comp_name)
/
$(pwre_lang)
/
$(os_name)
/
$(hw_name)
lang_os_source
:=
$(pwre_sroot)
/
$(type_name)
/
$(comp_name)
/
$(pwre_lang)
/
$(os_name)
lang_co_source
:=
$(pwre_sroot)
/
$(type_name)
/
$(comp_name)
/
$(pwre_lang)
lang_dir
:=
$(exe_dir)
/
$(pwre_lang)
lang_bld_dir
:=
$(bld_dir)
/
$(pwre_lang)
endif
source
=
$<
sname
=
$(
notdir
$(
basename
$<
))
ssuff
=
$(
suffix
$<
)
sdir
=
$(
dir
$<
)
/
target
=
$@
tname
=
$(
notdir
$(
basename
$@
))
tsuff
=
$(
suffix
$@
)
tdir
=
$(
dir
$@
)
/
libobj
=
$(bld_dir)
/
$*$(obj_ext)
cobj
=
-c
-o
$(target)
clibobj
=
-c
-o
$(libobj)
rt_msg_objs
:=
$(obj_dir)
/pwr_msg_co.o
$(obj_dir)
/pwr_msg_rt.o
rs_msg_objs
:=
$(obj_dir)
/pwr_msg_rs.o
wb_msg_objs
:=
$(obj_dir)
/pwr_msg_wb.o
$(obj_dir)
/pwr_msg_ge.o
$(obj_dir)
/pwr_msg_flow.o
rt_msg_eobjs
:=
$(eobj_dir)
/pwr_msg_co.o
$(eobj_dir)
/pwr_msg_rt.o
rs_msg_eobjs
:=
$(eobj_dir)
/pwr_msg_rs.o
wb_msg_eobjs
:=
$(eobj_dir)
/pwr_msg_wb.o
$(eobj_dir)
/pwr_msg_ge.o
$(eobj_dir)
/pwr_msg_flow.o
# Configuration
#ifeq ($(pwre_conf_mysql),1)
# cmysql := -DPWRE_CONF_MYSQL=1
# linkmysql := -L/usr/lib/mysql -lmysqlclient
#else
# cmysql :=
# linkmysql :=
#endif
#ifeq ($(pwre_conf_gtk),1)
# cgtk := -DPWRE_CONF_GTK=1
# linkgtk := `pkg-config --libs gtk+-2.0`
#else
# cgtk :=
# linkgtk :=
#endif
log_done
=
#csetos := -DOS_LINUX=1 -DOS=linux -D_LINUX -DHW_ARM=1 -DHW=ARM
#cinc := -I$(inc_dir) -I$(einc_dir) -I$(hw_source) -I$(os_source) -I$(co_source) -I$(jdk)/include -I$(jdk)/include/linux
csetos
:=
$(pwre_conf_cc_define)
cinc
:=
-I
$(inc_dir)
-I
$(einc_dir)
-I
$(hw_source)
-I
$(os_source)
-I
$(co_source)
$(pwre_conf_incdir)
$(pwre_conf_incdirgtk)
rm
:=
rm
cp
:=
cp
cpflags
:=
arflags
:=
r
obj
:=
-c
-o
$(target)
ifdef
pwre_ar
ar
:=
$(pwre_ar)
else
ar
:=
ar
endif
ifdef
pwre_cc
cc
:=
$(pwre_cc)
ld
:=
$(pwre_cc)
else
cc
:=
gcc
ld
:=
gcc
endif
ifdef
pwre_cxx
cxx
:=
$(pwre_cxx)
ldxx
:=
$(pwre_cxx)
else
cxx
:=
g++
ldxx
:=
g++
endif
lex
:=
flex
ifdef
pwre_host_exe
tools_msg2cmsg
:=
$(pwre_host_exe)
/tools_msg2cmsg
tools_cmsg2c
:=
$(pwre_host_exe)
/tools_cmsg2c
tools_pdrgen
:=
$(pwre_host_exe)
/tools_pdrgen
wb_rtt
:=
$(pwre_host_exe)
/wb_rtt
co_convert
:=
$(pwre_host_exe)
/co_convert
co_merge
:=
$(pwre_host_exe)
/co_merge
else
tools_msg2cmsg
:=
$(eexe_dir)
/tools_msg2cmsg
tools_cmsg2c
:=
$(eexe_dir)
/tools_cmsg2c
tools_pdrgen
:=
$(eexe_dir)
/tools_pdrgen
wb_rtt
:=
$(eexe_dir)
/wb_rtt
co_convert
:=
$(eexe_dir)
/co_convert
co_merge
:=
$(eexe_dir)
/co_merge
endif
javac
:=
javac
#docbook-related, added by jonas_h 2006-04-nn
#xsltproc := xsltproc
#fop := fop
#above is a symlink from /usr/local/bin/fop -> /usr/local/fop-0.92beta/fop
#xsltproc_args := --xinclude
#chunk_args_en_us = --stringparam root.filename $(basename $(notdir $(target))) --stringparam base.dir $(doc_dir)/en_us/
#chunk_args_sv_se = --stringparam root.filename $(basename $(notdir $(target))) --stringparam base.dir $(doc_dir)/sv_se/
#pwr_stylesheetdir = $(pwre_sroot)/doc/man/src
#docbook_stylesheetdir = /usr/local/share/xml/docbook/stylesheet/snapshot
#html_xsl = $(pwr_stylesheetdir)/pwrxsl-html.xsl
#chunk_xsl = $(pwr_stylesheetdir)/pwrxsl-chunk.xsl
#fo_xsl = $(pwr_stylesheetdir)/pwrxsl-fo.xsl
#end of
#list = $(to-vms $(lis_dir)/$(sname)$(lis_ext))
map
=
$(bld_dir)
/
$(tname)$(map_ext)
mkdir
:=
mkdir
# Set to /buildversion for frozen dbs versions
wblflags
:=
ifeq
($(pwre_btype),rls)
cflags
:=
-c
-O3
-D_GNU_SOURCE
-DPWR_NDEBUG
-D_REENTRANT
-fPIC
cxxflags
:=
$(cflags)
linkflags
:=
-O3
-L
/usr/local/lib
-L
$(lib_dir)
-lm
-lrt
elinkflags
:=
-O3
-L
/usr/local/lib
-L
$(lib_dir)
-L
$(elib_dir)
-lm
-lrt
explinkflags
:=
-g
-L
/usr/local/lib
-L
$(elib_dir)
-lm
-lrt
clis
=
/lis
=
$(list)
dolist
=
/lis
=
$(list)
domap
=
-Xlinker
-Map
-Xlinker
$(map)
else
cflags
:=
-c
-g
-Wall
-D_GNU_SOURCE
-D_REENTRANT
-fPIC
cxxflags
:=
$(cflags)
-Wno-deprecated
mmflags
:=
-Wno-deprecated
linkflags
:=
-g
-L
/usr/local/lib
-L
$(lib_dir)
-lm
-lrt
elinkflags
:=
-g
-L
/usr/local/lib
-L
$(lib_dir)
-L
$(elib_dir)
-lm
-lrt
explinkflags
:=
-g
-L
/usr/local/lib
-L
$(elib_dir)
-lm
-lrt
dolist
=
/lis
=
$(list)
clis
:=
domap
=
-Xlinker
-Map
-Xlinker
$(map)
endif
log_h_h
=
echo
"Exporting
$<
"
log_x_h
=
echo
"Exporting
$<
to
$(
notdir
$@
)
"
log_l_obj
=
echo
"Compiling
$<
"
log_l_lib
=
echo
"Compiling
$(
notdir
$(
basename
$@
))
(
$<
)"
#log_c_d = echo "Updating dependencies $<"
log_c_obj
=
echo
"Compiling
$<
"
log_c_lib
=
echo
"Compiling
$(
notdir
$(
basename
$@
))
(
$<
)"
log_x_lib
=
echo
"Compiling
$(
notdir
$(
basename
$@
))
(
$<
)"
log_obj_lib
=
echo
"Archiving lasse
$(
notdir
$(
basename
$@
))
(
$(
notdir
$<
)
)"
log_hlp_hlb
=
echo
"Exporting
$(
notdir
$(
basename
$@
))
(
$<
)"
log_sc_lib
=
echo
"Compiling
$(
notdir
$(
basename
$@
))
(
$<
)"
log_sc_obj
=
echo
"Compiling
$<
"
log_uil_uid
=
echo
"Compiling
$<
"
log_g_m1
=
echo
"Exporting
$<
"
log_cld_lib
=
echo
"Compiling
$(
notdir
$(
basename
$@
))
(
$<
)"
log_link_exe
=
echo
"Linking
$@
"
log_wb_load_wb_vers
=
echo
"Exporting
$<
"
log_xbm_xbm
=
echo
"Exporting
$<
"
log_frm_frm
=
echo
"Exporting
$<
"
log_graph_graph
=
echo
"Exporting
$<
"
log_msg_h
=
echo
"Compiling
$<
"
log_java_class
=
echo
"Compiling
$<
"
endif
src/tools/pwre/src/os_freebsd/pwre_configure.sh
View file @
973287e4
...
...
@@ -278,7 +278,7 @@ rm $pwre_croot/src/exe/rt_prio/src/.${pwre_os}/.${pwre_hw}/makefile
rm
$pwre_croot
/remote/exe/rs_remote_alcm/src/.
${
pwre_os
}
/.
${
pwre_hw
}
/makefile
#rm $pwre_croot/profibus/lib/rt/src/.${pwre_os}/.${pwre_hw}/makefile
echo
"export
PKG_CONFIG_PATH=/sw/fink/pkgconfig
"
>>
$cfile
echo
"export
wb_rtt=
\$
pwr_exe/wb_rtt
"
>>
$cfile
echo
"export pwre_conf_cc_define=
\"
$conf_cc_define
\"
"
>>
$cfile
echo
"export pwre_conf_libpwrco=
\"
-lpwr_co
\"
"
>>
$cfile
...
...
src/tools/pwre/src/os_linux/hw_arm/import_dbs.sh
0 → 100755
View file @
973287e4
#!/bin/bash
#
# Import loadfile
# Arg1 import base root
# Arg2 target base root
#
tst
=
`
eval echo
$1
|
grep
:
`
if
[
-z
$tst
]
;
then
# Local import root, use cp
copy
=
"cp"
else
# Remote import root, use scp
copy
=
"scp"
fi
$copy
$1
/exp/load/
*
.dbs
$2
/exp/load/
cp
-p
$2
/exp/load/pwrs.dbs
$2
/rt/load/
cp
-p
$2
/exp/load/pwrb.dbs
$2
/rt/load/
cp
-p
$2
/exp/load/rt.dbs
$2
/rt/load/
cp
-p
$2
/exp/load/basecomponent.dbs
$2
/bcomp/load/
cp
-p
$2
/exp/load/nmps.dbs
$2
/nmps/load/
cp
-p
$2
/exp/load/opc.dbs
$2
/opc/load/
cp
-p
$2
/exp/load/profibus.dbs
$2
/profibus/load/
cp
-p
$2
/exp/load/otherio.dbs
$2
/otherio/load/
cp
-p
$2
/exp/load/remote.dbs
$2
/remote/load/
cp
-p
$2
/exp/load/tlog.dbs
$2
/tlog/load/
cp
-p
$2
/exp/load/abb.dbs
$2
/abb/load/
cp
-p
$2
/exp/load/inor.dbs
$2
/inor/load/
cp
-p
$2
/exp/load/klocknermoeller.dbs
$2
/klocknermoeller/load/
cp
-p
$2
/exp/load/othermanufacturer.dbs
$2
/othermanu/load/
cp
-p
$2
/exp/load/siemens.dbs
$2
/siemens/load/
cp
-p
$2
/exp/load/ssabox.dbs
$2
/ssabox/load/
cp
-p
$2
/exp/load/telemecanique.dbs
$2
/telemecanique/load/
src/tools/pwre/src/os_linux/hw_arm/import_files.mk
0 → 100644
View file @
973287e4
import_top
:
import_files
source
=
$<
target
=
$@
rt_modules
=
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/load/pwrs.dbs
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/load/pwrb.dbs
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/load/rt.dbs
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/load/basecomponent.dbs
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/load/nmps.dbs
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/load/opc.dbs
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/load/profibus.dbs
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/load/otherio.dbs
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/load/remote.dbs
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/load/tlog.dbs
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/load/abb.dbs
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/load/inor.dbs
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/load/klocknermoeller.dbs
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/load/othermanufacturer.dbs
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/load/siemens.dbs
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/load/ssabox.dbs
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/load/telemecanique.dbs
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/rt/inc/pwr_systemclasses.h
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/rt/inc/pwr_systemclasses.hpp
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/rt/inc/pwr_baseclasses.h
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/rt/inc/pwr_baseclasses.hpp
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/bcomp/inc/pwr_basecomponentclasses.h
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/bcomp/inc/pwr_basecomponentclasses.hpp
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/nmps/inc/pwr_nmpsclasses.h
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/nmps/inc/pwr_nmpsclasses.hpp
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/opc/inc/pwr_opcclasses.h
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/opc/inc/pwr_opcclasses.hpp
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/profibus/inc/pwr_profibusclasses.h
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/profibus/inc/pwr_profibusclasses.hpp
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/otherio/inc/pwr_otherioclasses.h
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/otherio/inc/pwr_otherioclasses.hpp
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/remote/inc/pwr_remoteclasses.h
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/remote/inc/pwr_remoteclasses.hpp
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/abb/inc/pwr_abbclasses.h
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/abb/inc/pwr_abbclasses.hpp
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/inor/inc/pwr_inorclasses.h
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/inor/inc/pwr_inorclasses.hpp
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/klocknermoeller/inc/pwr_klocknermoellerclasses.h
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/klocknermoeller/inc/pwr_klocknermoellerclasses.hpp
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/othermanu/inc/pwr_othermanufacturerclasses.h
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/othermanu/inc/pwr_othermanufacturerclasses.hpp
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/siemens/inc/pwr_siemensclasses.h
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/siemens/inc/pwr_siemensclasses.hpp
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/ssabox/inc/pwr_ssaboxclasses.h
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/ssabox/inc/pwr_ssaboxclasses.hpp
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/telemecanique/inc/pwr_telemecaniqueclasses.h
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/telemecanique/inc/pwr_telemecaniqueclasses.hpp
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/exe/wb_gcg.sh
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/inc/wb_ldh.h
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/inc/wb_vext.h
op_modules
=
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/inc/wb_wnav_selformat.h
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/inc/wb_nav.h
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/inc/wb_pal.h
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/inc/wb_palfile.h
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/inc/wb_wccm.h
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/inc/wb_log.h
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/inc/wb_trv.h
op_gtk_modules
=
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/inc/wb_nav_gtk.h
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/inc/wb_log_gtk.h
op_motif_modules
=
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/inc/wb_nav_motif.h
java_modules
=
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/lib/pwr_rt.jar
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/lib/pwr_jop.jar
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/lib/pwr_jopc.jar
\
$(pwre_broot)
/
$(pwre_os)
/
$(pwre_hw)
/exp/lib/pwr_rt_client.jar
import_files
:
$(rt_modules) $(op_modules) $(java_modules) $(op_gtk_modules)
@
echo
""
.PHONY
:
rt
.PHONY
:
op
.PHONY
:
java
_gtk
:
rt
:
$(rt_modules)
rt_gtk
:
rt_motif
:
op
:
$(op_modules)
op_gtk
:
$(op_gtk_modules)
op_motif
:
$(op_motif_modules)
java
:
$(java_modules)
java_gtk
:
java_motif
:
.SUFFIXES
:
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/exp/load/%.dbs
:
$(pwre_vmsinc)/exp/load/%.dbs
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/rt/inc/%.h
:
$(pwre_vmsinc)/exp/inc/%.h
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/rt/inc/%.hpp
:
$(pwre_vmsinc)/exp/inc/%.hpp
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/bcomp/inc/%.h
:
$(pwre_vmsinc)/exp/inc/%.h
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/bcomp/inc/%.hpp
:
$(pwre_vmsinc)/exp/inc/%.hpp
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/nmps/inc/%.h
:
$(pwre_vmsinc)/exp/inc/%.h
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/nmps/inc/%.hpp
:
$(pwre_vmsinc)/exp/inc/%.hpp
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/opc/inc/%.h
:
$(pwre_vmsinc)/exp/inc/%.h
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/opc/inc/%.hpp
:
$(pwre_vmsinc)/exp/inc/%.hpp
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/profibus/inc/%.h
:
$(pwre_vmsinc)/exp/inc/%.h
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/profibus/inc/%.hpp
:
$(pwre_vmsinc)/exp/inc/%.hpp
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/otherio/inc/%.h
:
$(pwre_vmsinc)/exp/inc/%.h
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/otherio/inc/%.hpp
:
$(pwre_vmsinc)/exp/inc/%.hpp
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/remote/inc/%.h
:
$(pwre_vmsinc)/exp/inc/%.h
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/remote/inc/%.hpp
:
$(pwre_vmsinc)/exp/inc/%.hpp
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/abb/inc/%.h
:
$(pwre_vmsinc)/exp/inc/%.h
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/abb/inc/%.hpp
:
$(pwre_vmsinc)/exp/inc/%.hpp
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/inor/inc/%.h
:
$(pwre_vmsinc)/exp/inc/%.h
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/inor/inc/%.hpp
:
$(pwre_vmsinc)/exp/inc/%.hpp
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/klocknermoeller/inc/%.h
:
$(pwre_vmsinc)/exp/inc/%.h
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/klocknermoeller/inc/%.hpp
:
$(pwre_vmsinc)/exp/inc/%.hpp
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/othermanu/inc/%.h
:
$(pwre_vmsinc)/exp/inc/%.h
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/othermanu/inc/%.hpp
:
$(pwre_vmsinc)/exp/inc/%.hpp
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/siemens/inc/%.h
:
$(pwre_vmsinc)/exp/inc/%.h
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/siemens/inc/%.hpp
:
$(pwre_vmsinc)/exp/inc/%.hpp
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/ssabox/inc/%.h
:
$(pwre_vmsinc)/exp/inc/%.h
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/ssabox/inc/%.hpp
:
$(pwre_vmsinc)/exp/inc/%.hpp
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/telemecanique/inc/%.h
:
$(pwre_vmsinc)/exp/inc/%.h
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/telemecanique/inc/%.hpp
:
$(pwre_vmsinc)/exp/inc/%.hpp
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/exp/exe/wb_gcg.sh
:
$(pwre_croot)/wb/exp/com/src/os_linux/hw_arm/wb_gcg.sh
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/exp/inc/wb_%_motif.h
:
$(pwre_croot)/wb/lib/wb/motif/wb_%_motif.h
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/exp/inc/wb_%_gtk.h
:
$(pwre_croot)/wb/lib/wb/gtk/wb_%_gtk.h
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/exp/inc/wb_%.h
:
$(pwre_croot)/wb/lib/wb/src/wb_%.h
@
echo
Import
${target}
@
cp
$(source)
$(target)
$(pwre_broot)/$(pwre_os)/$(pwre_hw)/exp/lib/%.jar
:
$(pwre_vmsinc)/exp/lib/%.jar
@
echo
Import
${target}
@
cp
$(source)
$(target)
src/tools/pwre/src/os_linux/pwre_configure.sh
View file @
973287e4
This diff is collapsed.
Click to expand it.
src/tools/pwre/src/os_macos/pwre_configure.sh
View file @
973287e4
...
...
@@ -276,6 +276,7 @@ rm $pwre_croot/src/exe/rt_prio/src/.${pwre_os}/.${pwre_hw}/makefile
rm
$pwre_croot
/remote/exe/rs_remote_alcm/src/.
${
pwre_os
}
/.
${
pwre_hw
}
/makefile
#rm $pwre_croot/profibus/lib/rt/src/.${pwre_os}/.${pwre_hw}/makefile
echo
"export wb_rtt=
\$
pwr_exe/wb_rtt"
>>
$cfile
echo
"export PKG_CONFIG_PATH=/sw/fink/pkgconfig"
>>
$cfile
echo
"export pwre_conf_cc_define=
\"
$conf_cc_define
\"
"
>>
$cfile
...
...
wb/exp/com/src/os_linux/hw_arm/makefile
0 → 100644
View file @
973287e4
include
$(pwre_dir_symbols)
ifndef
variables_mk
-include
$(pwre_kroot)/tools/bld/src/$(os_name)/$(hw_name)/variables.mk
endif
ifndef
variables_mk
include
$(pwre_kroot)/tools/bld/src/$(os_name)/variables.mk
endif
ifndef
rules_mk
-include
$(pwre_kroot)/tools/bld/src/$(os_name)/$(hw_name)/rules.mk
endif
ifndef
rules_mk
include
$(pwre_kroot)/tools/bld/src/$(os_name)/rules.mk
endif
vpath %.sh $(hw_source)
:
$(os_source):$(co_source)
vpath %.pwr_com $(hw_source)
:
$(os_source):$(co_source)
source_dirs
=
$(hw_source)
$(os_source)
$(co_source)
sh_sources
:=
$(
sort
\
$(
foreach
file,
\
$(
foreach
dir
,
\
$(source_dirs)
,
\
$(
wildcard
$(dir)
/
*
.sh
)
\
)
,
$(
notdir
$(file)
)
\
)
\
)
pwr_com_sources
:=
$(
sort
\
$(
foreach
file,
\
$(
foreach
dir
,
\
$(source_dirs)
,
\
$(
wildcard
$(dir)
/
*
.pwr_com
)
\
)
,
$(
notdir
$(file)
)
\
)
\
)
export_sh
:=
$(
patsubst
%.sh,
$(exe_dir)
/%.sh,
$(sh_sources)
)
clean_sh
:=
$(
patsubst
%.sh, clean_%.sh,
$(sh_sources)
)
export_pwr_com
:=
$(
patsubst
%.pwr_com,
$(exe_dir)
/%.pwr_com,
$(pwr_com_sources)
)
clean_pwr_com
:=
$(
patsubst
%.pwr_com, clean_%.pwr_com,
$(pwr_com_sources)
)
.PHONY
:
all init copy lib exe clean realclean
\
$(clean_sh)
all
:
init copy
init
:
copy
:
$(export_sh) $(export_pwr_com)
lib
:
exe
:
clean
:
realclean
:
clean $(clean_sh) $(clean_pwr_com)
$(export_sh)
:
$(exe_dir)/%.sh : %.sh
@
echo
"Exporting
$<
..."
@
$(cp)
$(cpflags)
$(source)
$(target)
$(export_pwr_com)
:
$(exe_dir)/%.pwr_com : %.pwr_com
@
echo
"Exporting
$<
..."
@
$(cp)
$(cpflags)
$(source)
$(target)
$(clean_sh)
:
clean_%.sh : %.sh
@
rm
$(exe_dir)
/
$*
.sh
$(clean_pwr_com)
:
clean_%.pwr_com : %.pwr_com
@
rm
$(exe_dir)
/
$*
.pwr_com
wb/exp/com/src/os_linux/hw_arm/wb_gcg.sh
0 → 100755
View file @
973287e4
#!/bin/bash
#
# Proview $Id: wb_gcg.sh,v 1.7 2008-06-02 14:58:42 claes Exp $
# Copyright (C) 2005 SSAB Oxelsund AB.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with the program, if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# wb_gcg.sh -- compile and link PLC code
#
# This compiles a file generated by wb_gcg
# and inserts it in the plc library
# It is called from the wb_gcg.c module.
#
let
gcg__success
=
0
let
gcg__compileerrors
=
1
let
gcg__linkerrors
=
2
let
gcg__archiveerror
=
3
let
gcg__rsherror
=
4
#
# MyRsh returns the return status from the compile command, not from rsh
# It only works on remote unix systems, not VMS...
#
MyRsh
()
{
hostname
=
lflag
=
nflag
=
user
=
case
$1
in
-l
)
;;
*
)
hostname
=
$1
shift
esac
case
$1
in
-l
)
lflag
=
-l
user
=
$2
shift
2
esac
case
$1
in
-n
)
nflag
=
-n
shift
esac
case
$hostname
in
''
)
hostname
=
$1
shift
esac
case
$#
in
0
)
exec
/usr/ucb/rlogin
$lflag
${
user
+
"
$user
"
}
"
$hostname
"
esac
AWK
=
'
NR > 1 {
print prev;
prev = $0;
prev1 = $1;
prev2 = $2;
}
NR == 1 {
prev = $0;
prev1 = $1;
prev2 = $2;
}
END {
if (prev1 ~ /[0-9]*[0-9]0/)
exit(prev1 / 10);
if (prev1 == "0")
exit(prev2);
print prev;
exit(1);
}
'
exec
3>&1
if
rsh
"
$hostname
"
$lflag
${
user
+
"
$user
"
}
$nflag
\
"(
${
*-
:
}
); sh -c '"
'echo "$0 $1" >&2'
\'
' $?0 "$status"'
\
2>&1
>
&3 3>&- |
awk
"
$AWK
"
>
&2 3>&-
then
gcg_status
=
0
else
gcg_status
=
1
fi
}
CompileProcess
()
{
if
$cc_cmd
-o
$pwrp_obj
/
${
FileName
}
.o
$pwrp_gc
/
${
FileName
}
.gc
then
echo
"-- Plc process compiled for
$OsStr
$say_debug
$ObjectName
"
gcg_status
=
$gcg__success
else
echo
"** Plc process compiled with errors
$OsStr
$ObjectName
"
gcg_status
=
$gcg__compileerrors
fi
if
[
$Debug
-eq
0
]
;
then
rm
$pwrp_gc
/
${
FileName
}
.gc
fi
}
CompileProgram
()
{
if
$cc_cmd
-o
$pwrp_obj
/plc_m
${
FileName
}
.o
$pwrp_gc
/plc_m
${
FileName
}
.gc
then
echo
"-- Plc plcpgm compiled for
$OsStr
$say_debug
$ObjectName
"
gcg_status
=
$gcg__success
else
echo
"** Plc plcpgm compiled with errors
$OsStr
$ObjectName
"
gcg_status
=
$gcg__compileerrors
fi
if
[
$Debug
-eq
0
]
;
then
rm
$pwrp_gc
/plc_m
${
FileName
}
.gc
fi
}
CompileWindow
()
{
if
$cc_cmd
-o
$pwrp_obj
/plc_m
${
FileName
}
.o
$pwrp_gc
/plc_m
${
FileName
}
.gc
then
echo
"-- Plc window compiled for
$OsStr
$say_debug
$ObjectName
"
gcg_status
=
$gcg__success
else
echo
"** Plc window compiled with errors for
$OsStr
$ObjectName
"
gcg_status
=
$gcg__compileerrors
fi
if
[
$Debug
-eq
0
]
;
then
rm
$pwrp_gc
/plc_m
${
FileName
}
.gc
rm
$pwrp_gc
/plc_dec
${
FileName
}
.gc
rm
$pwrp_gc
/plc_r1r
${
FileName
}
.gc
rm
$pwrp_gc
/plc_r2r
${
FileName
}
.gc
rm
$pwrp_gc
/plc_ref
${
FileName
}
.gc
rm
$pwrp_gc
/plc_cod
${
FileName
}
.gc
fi
}
CompileRtNode
()
{
#link option file exists and is not empty
if
[
-s
$pwrp_exe
/
$FileName
.opt
]
;
then
ld_opt_tmp
=
"
`
cat
$pwrp_exe
/
$FileName
.opt
`
"
ld_opt
=
"
`
eval echo
$ld_opt_tmp
`
"
else
ld_opt
=
"
`
eval echo
$pwrobj
/rt_io_user.o
-lpwr_rt
-lpwr_usbio_dummy
`
"
fi
if
$ldxx
$link_debug
-L
/lib/thread
-L
$pwrp_lib
-L
$pwrp_cmn
/arm_linux/lib
-L
$pwrlib
\
-o
$pwrp_exe
/
$OutFile
\
$pwrobj
/rt_plc_process.o
\
$pwrp_obj
/
${
FileName
}
.o
\
$Libs
\
$ld_opt
\
$pwrobj
/pwr_msg_rt.o
$pwrobj
/pwr_msg_co.o
\
-lrt
-lpwr_remote
-lpwr_nmps
-lpwr_rt
-lpwr_co
-lrpcsvc
-lpwr_msg_dummy
-lpthread
-lm
then
echo
"-- Plc program linked for
$OsStr
$say_linkdebug
node
$FileName
"
gcg_status
=
$gcg__success
else
echo
"** Plc program link errors for
$OsStr
node
$FileName
"
gcg_status
=
$gcg__linkerrors
fi
if
[
-n
"
$pwrp_exe_target
"
]
;
then
cp
$pwrp_exe
/
$OutFile
$pwrp_exe_target
echo
"-- Plc copied to
$pwrp_exe_target
"
fi
}
CompileLibrary
()
{
echo
"-- Building archive for volume:
$VolumeId
"
cd
$pwrp_obj
if
$ar
-rc
$pwrp_lib
/
$PlcLib
`
ls
plc_m
${
VolumeId
}*
.o
`
then
echo
"-- Archive built for volume:
$VolumeId
"
gcg_status
=
$gcg__success
else
echo
"** Error builing archive for volume:
$VolumeId
"
gcg_status
=
$gcg__archiveerror
fi
}
OsMaskToOpSys
()
{
let
BitM
=
$1
let
Idx
=
0
let
Val
=
1
while
[
$Val
-lt
$BitM
]
;
do
let
Val
=
$Val
*
2
let
Idx
=
$Idx
+1
done
let
OpSys
=
Idx+1
}
#
#
#
# Main
#
#
#
# Arguments
#
let
Debug
=
"
$1
"
# 1 if debug, 0 i nodebug
let
FileType
=
"
$2
"
# the type of file: rtnode,
# plc or window module
FileName
=
"
$3
"
# the name of the file to be compiled,
VolumeId
=
"
$3
"
# VolumeId for objects to be inserted
let
OsMask
=
"
$4
"
# pwr_mOpSys
OutFile
=
"
$5
"
# the name of the generated file
PlcLib
=
"
$5
"
# library for filetype Program and Windoow
Libs
=
"
$6
"
# link libraries
ObjectName
=
"
$6
"
# name of object
SystemName
=
"
$7
"
# name of system
ProjectRoot
=
"
$8
"
# project root
OsMaskToOpSys
$OsMask
# Convert Bitmask to index
#
# Local symbols
#
let
OpSys__Low
=
0
let
OpSys_CustomBuild
=
1
let
OpSys_VAX_VMS
=
2
let
OpSys_AXP_VMS
=
3
let
OpSys_PPC_LYNX
=
4
let
OpSys_X86_LYNX
=
5
let
OpSys_PPC_LINUX
=
6
let
OpSys_X86_LINUX
=
7
let
OpSys_X86_64_LINUX
=
8
let
OpSys_ARM_LINUX
=
9
let
OpSys__High
=
10
vOpSys
=
"custombuild,vax_vms,axp_vms,ppc_lynx,x86_lynx,ppc_linux,x86_linux,x86_64_linux,arm_linux"
let
FileType__Low
=
-1
let
FileType_Process
=
0
let
FileType_Program
=
1
let
FileType_Window
=
2
let
FileType_RtNode
=
3
let
FileType_Library
=
4
let
FileType__High
=
5
vFileType
=
"Process,Program,Window,RtNode,Library"
if
[
-z
"
$pwre_cc
"
]
;
then
cc
=
gcc
else
cc
=
$pwre_cc
fi
if
[
-z
"
$pwre_cxx
"
]
;
then
cxx
=
g++
ldxx
=
g++
else
cxx
=
$pwre_cxx
ldxx
=
$pwre_cxx
fi
if
[
-z
"
$pwre_ar
"
]
;
then
ar
=
ar
else
ar
=
$pwre_ar
fi
pwrinc
=
$pwrb_root
/os_linux/hw_arm/exp/inc
pwrobj
=
$pwrb_root
/os_linux/hw_arm/exp/obj
pwrlib
=
$pwrb_root
/os_linux/hw_arm/exp/lib
local_setup
=
"pwr_gcg_setup.sh"
if
[
-e
${
local_setup
}
]
;
then
# echo "-- Local setup file used"
source
${
local_setup
}
${
ProjectRoot
}
${
SystemName
}
fi
if
[
$Debug
-eq
1
]
;
then
cc_debug
=
"-g"
link_debug
=
"-g"
say_debug
=
"with debug"
say_linkdebug
=
"with debug"
else
cc_debug
=
"-O3"
say_debug
=
"optimized -O3"
say_linkdebug
=
""
fi
#
# Check OpSys
#
# Current opsys
machine
=
`
eval uname
-m
`
if
[
$machine
=
"x86_64"
]
;
then
CurrentOpSys
=
$OpSys_X86_64_LINUX
else
CurrentOpSys
=
$OpSys_X86_LINUX
fi
#
# Check FileType
#
if
[
$FileType
-le
$FileType__Low
]
||
[
$FileType
-ge
$FileType__High
]
;
then
echo
"Unknown file type:
$FileType
"
exit
-1
fi
OsStr
=
"
`
echo
$vOpSys
|
cut
-f
$OpSys
-d
,
`
"
let
FileTypeIdx
=
$FileType
+1
if
[
$OpSys
-eq
$OpSys_PPC_LINUX
]
;
then
pwrp_gc
=
"
$pwrp_tmp
"
# Suppress all warnings, -x
cc_cmd
=
"
$cc
-c -x c -w
$cc_debug
-D_REENTRANT -DOS_LINUX -I
$pwrinc
-I
$pwrp_inc
-I
$pwrp_tmp
$PWR_EXT_INC
"
FileTypeStr
=
"
`
echo
$vFileType
|
cut
-f
$FileTypeIdx
-d
,
`
"
# Execute build command
Compile
$FileTypeStr
exit
$gcg_status
elif
[
$OpSys
-eq
$OpSys_X86_LINUX
]
;
then
pwrp_gc
=
"
$pwrp_tmp
"
# Suppress all warnings, -x
if
[
$CurrentOpSys
-eq
$OpSys
]
;
then
cc_cmd
=
"
$cc
-c -x c -w
$cc_debug
-D_REENTRANT -DOS_LINUX -I
$pwrinc
-I
$pwrp_inc
-I
$pwrp_tmp
$PWR_EXT_INC
"
FileTypeStr
=
"
`
echo
$vFileType
|
cut
-f
$FileTypeIdx
-d
,
`
"
# Execute build command
Compile
$FileTypeStr
exit
$gcg_status
elif
[
$CurrentOpSys
-eq
$OpSys_X86_64_LINUX
]
;
then
echo
"-- Not built for x86_linux"
fi
elif
[
$OpSys
-eq
$OpSys_X86_64_LINUX
]
;
then
pwrp_gc
=
"
$pwrp_tmp
"
# Suppress all warnings, -x
if
[
$CurrentOpSys
-eq
$OpSys
]
;
then
cc_cmd
=
"
$cc
-c -x c -w
$cc_debug
-D_REENTRANT -DOS_LINUX -I
$pwrinc
-I
$pwrp_inc
-I
$pwrp_tmp
$PWR_EXT_INC
"
FileTypeStr
=
"
`
echo
$vFileType
|
cut
-f
$FileTypeIdx
-d
,
`
"
# Execute build command
Compile
$FileTypeStr
exit
$gcg_status
elif
[
$CurrentOpSys
-eq
$OpSys_X86_LINUX
]
;
then
echo
"-- Not built for x86_64_linux"
fi
elif
[
$OpSys
-eq
$OpSys_ARM_LINUX
]
;
then
pwrp_gc
=
"
$pwrp_tmp
"
echo
"-- Cross compilation ARM_LINUX"
# Suppress all warnings, -x
cc_cmd
=
"
$cc
-c -x c -w
$cc_debug
-D_REENTRANT -DOS_LINUX -I
$pwrinc
-I
$pwrp_inc
-I
$pwrp_tmp
$PWR_EXT_INC
"
FileTypeStr
=
"
`
echo
$vFileType
|
cut
-f
$FileTypeIdx
-d
,
`
"
# Execute build command
Compile
$FileTypeStr
exit
$gcg_status
elif
[
$OpSys
-eq
$OpSys_AXP_VMS
]
;
then
rsh
$pwr_build_host_axp_vms
@pwr_exe:wb_gcg
\"
$1
\"
\"
$2
\"
\"
$3
\"
\"
$4
\"
\"
$5
\"
\"
$6
\"
\"
$7
\"
\"
$pwrp_root
\"
exit
$?
elif
[
$OpSys
-eq
$OpSys_VAX_VMS
]
;
then
rsh
$pwr_build_host_vax_vms
@pwr_exe:wb_gcg
\"
$1
\"
\"
$2
\"
\"
$3
\"
\"
$4
\"
\"
$5
\"
\"
$6
\"
\"
$7
\"
\"
$pwrp_root
\"
exit
$?
elif
[
$OpSys
-eq
$OpSys_X86_LYNX
]
;
then
MyRsh
$pwr_build_host_x86_lynx
'$pwr_exe/wb_gcg.sh'
\"
$1
\"
\"
$2
\"
\"
$3
\"
\"
$4
\"
\"
$5
\"
\"
$6
\"
\"
$7
\"
\"
$pwrp_root
\"
exit
$gcg_status
elif
[
$OpSys
-eq
$OpSys_CustomBuild
]
;
then
if
[
-e
$pwrp_exe
/custom_build.sh
]
;
then
$pwrp_exe
/custom_build.sh
"
$1
"
"
$2
"
"
$3
"
"
$4
"
"
$5
"
"
$6
"
"
$7
"
"
$pwrp_root
"
exit
$gcg_status
else
echo
"Create
\$
pwrp_exe/custom_build.sh to build this volume"
exit
$gcg_status
fi
else
echo
"Unknown operating system:
$OpSys
"
exit
-1
fi
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