-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
3,349 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
################################################################################ | ||
# This program and the accompanying materials are | ||
# made available under the terms of the Eclipse Public License v2.0 which accompanies | ||
# this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
# Copyright Contributors to the Zowe Project. | ||
################################################################################ | ||
|
||
export _LD_SYSLIB="//'SYS1.CSSLIB'://'CEE.SCEELKEX'://'CEE.SCEELKED'://'CEE.SCEERUN'://'CEE.SCEERUN2'://'CSF.SCSFMOD0'" | ||
|
||
WORKING_DIR=$(dirname "$0") | ||
ZSS="../.." | ||
COMMON="../../deps/zowe-common-c" | ||
|
||
|
||
echo "********************************************************************************" | ||
echo "Building ZIS Dynamic Linkage Base plugin..." | ||
|
||
mkdir -p "${WORKING_DIR}/tmp-zisdyn" && cd "$_" | ||
|
||
IFS='.' read -r major minor micro < "${ZSS}/version.txt" | ||
date_stamp=$(date +%Y%m%d) | ||
echo "Version: $major.$minor.$micro" | ||
echo "Date stamp: $date_stamp" | ||
|
||
xlc -S -M -qmetal -q64 -DSUBPOOL=132 -DMETTLE=1 -DMSGPREFIX=\"ZWE\" \ | ||
-DZISDYN_MAJOR_VERSION="$major" \ | ||
-DZISDYN_MINOR_VERSION="$minor" \ | ||
-DZISDYN_REVISION="$micro" \ | ||
-DZISDYN_VERSION_DATE_STAMP="$date_stamp" \ | ||
-qreserved_reg=r12 \ | ||
-DRCVR_CPOOL_STATES \ | ||
-DHAVE_METALIO=1 \ | ||
-Wc,langlvl\(extc99\),arch\(8\),agg,exp,list\(\),so\(\),off,xref,roconst,longname,lp64 \ | ||
-I ${COMMON}/h -I ${ZSS}/h \ | ||
-I ${ZSS}/zis-aux/include -I ${ZSS}/zis-aux/src \ | ||
${ZSS}/c/zis/zisdynamic.c \ | ||
${ZSS}/c/zis/server-api.c \ | ||
${ZSS}/c/zis/client.c \ | ||
${ZSS}/c/zis/parm.c \ | ||
${ZSS}/c/zis/plugin.c \ | ||
${ZSS}/c/zis/service.c \ | ||
${ZSS}/c/zis/service.c \ | ||
${ZSS}/zis-aux/src/aux-guest.c \ | ||
${ZSS}/zis-aux/src/aux-manager.c \ | ||
${ZSS}/zis-aux/src/aux-utils.c \ | ||
${COMMON}/c/alloc.c \ | ||
${COMMON}/c/as.c \ | ||
${COMMON}/c/mtlskt.c \ | ||
${COMMON}/c/cellpool.c \ | ||
${COMMON}/c/cmutils.c \ | ||
${COMMON}/c/collections.c \ | ||
${COMMON}/c/cpool64.c \ | ||
${COMMON}/c/crossmemory.c \ | ||
${COMMON}/c/dynalloc.c \ | ||
${COMMON}/c/idcams.c \ | ||
${COMMON}/c/isgenq.c \ | ||
${COMMON}/c/le.c \ | ||
${COMMON}/c/logging.c \ | ||
${COMMON}/c/lpa.c \ | ||
${COMMON}/c/metalio.c \ | ||
${COMMON}/c/nametoken.c \ | ||
${COMMON}/c/pause-element.c \ | ||
${COMMON}/c/pc.c \ | ||
${COMMON}/c/qsam.c \ | ||
${COMMON}/c/radmin.c \ | ||
${COMMON}/c/recovery.c \ | ||
${COMMON}/c/resmgr.c \ | ||
${COMMON}/c/scheduling.c \ | ||
${COMMON}/c/shrmem64.c \ | ||
${COMMON}/c/stcbase.c \ | ||
${COMMON}/c/timeutls.c \ | ||
${COMMON}/c/utils.c \ | ||
${COMMON}/c/vsam.c \ | ||
${COMMON}/c/xlate.c \ | ||
${COMMON}/c/zos.c \ | ||
${COMMON}/c/zvt.c \ | ||
|
||
|
||
for file in \ | ||
zisdynamic \ | ||
server-api \ | ||
client \ | ||
parm \ | ||
plugin \ | ||
service \ | ||
service \ | ||
aux-guest \ | ||
aux-manager \ | ||
aux-utils \ | ||
alloc \ | ||
as \ | ||
mtlskt \ | ||
cellpool \ | ||
cmutils \ | ||
collections \ | ||
cpool64 \ | ||
crossmemory \ | ||
dynalloc \ | ||
idcams \ | ||
isgenq \ | ||
le \ | ||
logging \ | ||
lpa \ | ||
metalio \ | ||
nametoken \ | ||
pause-element \ | ||
pc \ | ||
qsam \ | ||
radmin \ | ||
recovery \ | ||
resmgr \ | ||
scheduling \ | ||
shrmem64 \ | ||
stcbase \ | ||
timeutls \ | ||
utils \ | ||
vsam \ | ||
xlate \ | ||
zos \ | ||
zvt | ||
do | ||
as -mgoff -mobject -mflag=nocont --TERM --RENT -aegimrsx=${file}.asm ${file}.s | ||
done | ||
|
||
|
||
ld -V -b ac=1 -b rent -b case=mixed -b map -b xref -b reus -e getPluginDescriptor \ | ||
-o "//'${USER}.DEV.LOADLIB(ZWESISDL)'" \ | ||
zisdynamic.o \ | ||
server-api.o \ | ||
client.o \ | ||
parm.o \ | ||
plugin.o \ | ||
service.o \ | ||
service.o \ | ||
aux-guest.o \ | ||
aux-manager.o \ | ||
aux-utils.o \ | ||
alloc.o \ | ||
as.o \ | ||
mtlskt.o \ | ||
cellpool.o \ | ||
cmutils.o \ | ||
collections.o \ | ||
cpool64.o \ | ||
crossmemory.o \ | ||
dynalloc.o \ | ||
idcams.o \ | ||
isgenq.o \ | ||
le.o \ | ||
logging.o \ | ||
lpa.o \ | ||
metalio.o \ | ||
nametoken.o \ | ||
pause-element.o \ | ||
pc.o \ | ||
qsam.o \ | ||
radmin.o \ | ||
recovery.o \ | ||
resmgr.o \ | ||
scheduling.o \ | ||
shrmem64.o \ | ||
stcbase.o \ | ||
timeutls.o \ | ||
utils.o \ | ||
vsam.o \ | ||
xlate.o \ | ||
zos.o \ | ||
zvt.o \ | ||
> ZWESISDL.link | ||
|
||
echo "Build successful" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
################################################################################ | ||
# This program and the accompanying materials are | ||
# made available under the terms of the Eclipse Public License v2.0 which accompanies | ||
# this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
# Copyright Contributors to the Zowe Project. | ||
################################################################################ | ||
|
||
ZSS=".." | ||
|
||
echo "********************************************************************************" | ||
echo "Updating ZIS Dynamic Linkage Base plugin stubs..." | ||
|
||
javac -encoding iso8859-1 ${ZSS}/tools/dynzis/org/zowe/zis/ZISStubGenerator.java | ||
java -cp ${ZSS}/tools/dynzis org.zowe.zis.ZISStubGenerator init ${ZSS}/h/zis/zisstubs.h > ${ZSS}/c/zis/stubinit.c | ||
|
||
echo "Update successful" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.