1
0
mirror of https://github.com/DoctorWkt/unix-jun72.git synced 2026-02-03 15:23:35 +00:00
Files
DoctorWkt.unix-jun72/tools/assemv2
warren.toomey b5a8011b93 Made core patches and optional patches. Modified tools/rebuild to deal with
these. Modified patches/core/v2_as.patch so that we no longer need sys1.s,
and changed tools/assemv2 to no longer create sys1.s.
2008-05-07 02:44:19 +00:00

39 lines
921 B
Bash
Executable File

#!/bin/sh
#
# assemble the sources
#
if [ ! -d tools ]
then echo 'No tools/ directory, are you running this in the correct dir?'
exit 1
fi
if [ ! -f tools/pdp11 ]
then echo 'You need to compile Simh with the ke11 patch, and place the'
echo 'resulting pdp11 executable into the tools/ directory.'
exit 1
fi
if [ ! -f tools/apout/apout ]
then echo 'You need to go into tools/apout/ and do a make to compile apout'
exit 1
fi
if [ ! -d build ]
then mkdir build
fi
APOUT=../tools/apout/apout
APOUT_ROOT=../fs/root
export APOUT_ROOT
# build sources from pages and generate patched sources in "build"
# if "cold" is passed in, the "cold" option will be patched on.
tools/rebuild "$@"
# assemble the kernel from patched sources and generate symbols
# and build a simh loadable file.
cd build
# assemble it all
$APOUT $APOUT_ROOT/bin/as u?.s
$APOUT $APOUT_ROOT/bin/nm a.out |sort > a.out.syms
../tools/ml