Created
May 8, 2017 01:10
-
-
Save alexpatel/c6fd75894517f14d3553242107a3b945 to your computer and use it in GitHub Desktop.
Build a set of ASST4 OS/161 kernels
This file contains hidden or 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
#!/usr/bin/env bash | |
# Build a set of ASST4 OS/161 kernels | |
BUILD_ROOT="$(pwd)/build" | |
for DIR in repos/a4/*; do | |
pushd $DIR | |
# download code | |
git fetch --all | |
git pull origin master | |
git checkout asst4-submit | |
REPO="$(basename `git rev-parse --show-toplevel`)" | |
# configure | |
./configure --ostree=${BUILD_ROOT}/${REPO} | |
bmake | |
bmake install | |
# build kernel | |
pushd kern/conf | |
./config ASST4 | |
pushd ../compile/ASST4 | |
bmake depend | |
bmake | |
bmake install | |
popd | |
popd | |
popd | |
# install sys161 configuration | |
cp sys161.conf build/$REPO | |
# create disks with SFS | |
pushd build/$REPO | |
rm LHD*.img | |
disk161 create LHD1.img 10M | |
hostbin/host-mksfs LHD1.img vol | |
sys161 kernel 'DOMOUNT; WAIT; DOUNMOUNT; q' | |
popd | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment