Updates for build service.
This commit is contained in:
parent
076397652d
commit
5d24b88783
1 changed files with 21 additions and 5 deletions
|
@ -25,9 +25,10 @@ function buildIIgs() {
|
||||||
TARGET=${JOEY}/sdks/IIgs/ORCA/out/${PROJECT}
|
TARGET=${JOEY}/sdks/IIgs/ORCA/out/${PROJECT}
|
||||||
GSTARGET=31:/out/${PROJECT}
|
GSTARGET=31:/out/${PROJECT}
|
||||||
CADIUS=${JOEY}/sdks/IIgs/cadius/cadius
|
CADIUS=${JOEY}/sdks/IIgs/cadius/cadius
|
||||||
VOL=Import
|
VOL=${PROJECT}
|
||||||
WORK=/tmp/IIgs
|
WORK=/tmp/IIgs
|
||||||
IMPORT=${WORK}/import.po
|
IMPORT=${WORK}/import.po
|
||||||
|
DEBUG=.
|
||||||
|
|
||||||
# Clean up target and working directories
|
# Clean up target and working directories
|
||||||
if [ -d ${TARGET} ]; then
|
if [ -d ${TARGET} ]; then
|
||||||
|
@ -40,6 +41,13 @@ function buildIIgs() {
|
||||||
fi
|
fi
|
||||||
mkdir -p ${WORK}
|
mkdir -p ${WORK}
|
||||||
|
|
||||||
|
# Where to put debugging information?
|
||||||
|
if [[ ! -z ${RESULTS} ]]; then
|
||||||
|
mkdir ${RESULTS}/IIgs
|
||||||
|
DEBUG=${RESULTS}/IIgs
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
#***TODO*** Add image and music conversion.
|
#***TODO*** Add image and music conversion.
|
||||||
# Automatically copy converted images, stencils, and audio so they
|
# Automatically copy converted images, stencils, and audio so they
|
||||||
# no longer need to be specified in the build script.
|
# no longer need to be specified in the build script.
|
||||||
|
@ -78,11 +86,20 @@ function buildIIgs() {
|
||||||
OFILES="${GSTARGET}/jIIgsc ${GSTARGET}/joey ${GSTARGET}/jIIgsasm ${OFILES}"
|
OFILES="${GSTARGET}/jIIgsc ${GSTARGET}/joey ${GSTARGET}/jIIgsasm ${OFILES}"
|
||||||
|
|
||||||
# Link our program and create a map file
|
# Link our program and create a map file
|
||||||
iix -DKeepType=S16 link +L ${OFILES} keep=${GSTARGET}/${PROJECT}#b3db03 > ${PROJECT}.map
|
iix -DKeepType=S16 link +L ${OFILES} keep=${GSTARGET}/${PROJECT}#b3db03 > ${DEBUG}/${PROJECT}.map
|
||||||
|
|
||||||
# Create a disassembly and linker input listing
|
# Create a disassembly and linker input listing
|
||||||
iix dumpobj +D ${GSTARGET}/${PROJECT}#b3db03 &> ${PROJECT}.dis || true
|
iix dumpobj +D ${GSTARGET}/${PROJECT}#b3db03 &> ${DEBUG}/${PROJECT}.dis || true
|
||||||
echo ${OFILES} > ${PROJECT}.lnk
|
echo ${OFILES} > ${DEBUG}/${PROJECT}.lnk
|
||||||
|
|
||||||
|
# Clean up SYM files
|
||||||
|
CFILES=($(ls -1 *.c))
|
||||||
|
for F in "${CFILES[@]}"; do
|
||||||
|
O=${F%.*}.sym
|
||||||
|
if [[ -e ${O} ]]; then
|
||||||
|
rm ${O}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
echo "Creating disk image..."
|
echo "Creating disk image..."
|
||||||
|
|
||||||
|
@ -115,7 +132,6 @@ function buildIIgs() {
|
||||||
mkdir -p ${JOEY}/builds/${PROJECT}/IIgs/
|
mkdir -p ${JOEY}/builds/${PROJECT}/IIgs/
|
||||||
cp ${IMPORT} ${JOEY}/builds/${PROJECT}/IIgs/${PROJECT}.po
|
cp ${IMPORT} ${JOEY}/builds/${PROJECT}/IIgs/${PROJECT}.po
|
||||||
else
|
else
|
||||||
mkdir ${RESULTS}/IIgs
|
|
||||||
cp ${IMPORT} ${RESULTS}/IIgs/${PROJECT}.po
|
cp ${IMPORT} ${RESULTS}/IIgs/${PROJECT}.po
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue