|
|
1.1 ! root 1: # bld - make 386 kernel ! 2: # ! 3: # requires a running 386 kernel ! 4: # ! 5: ! 6: sync ! 7: ! 8: # make sure the environment is set for kernel objects ! 9: if [ -z $K386OBJ ]; then ! 10: echo "Error - K386OBJ environment variable not set!" ! 11: exit 1 ! 12: fi ! 13: ! 14: # make sure the environment is set for kernel libraries ! 15: if [ -z $K386LIB ]; then ! 16: echo "Error - K386LIB environment variable not set!" ! 17: exit 1 ! 18: fi ! 19: ! 20: CFLAGS=${CFLAGS-"-VPSTR"} ! 21: CC=${CC-"exec /bin/cc"} ! 22: ! 23: unset TARGET ! 24: ! 25: # Each drvl entry is 0x14, or 20 decimal, bytes. ! 26: ! 27: while [ $# -gt 0 ] ! 28: do ! 29: ARG=$1 ! 30: case $ARG in ! 31: ! 32: fha) CONFDIR="CONFDIR=fha_conf" ! 33: TARGET=${TARGET-/tmp/fha_kernel} ! 34: ;; ! 35: ! 36: ft) PATCH="${PATCH} ftCon=ftcon PHYS_MEM=589824" ! 37: ;; ! 38: ! 39: fva) CONFDIR="CONFDIR=fva_conf" ! 40: TARGET=${TARGET-/tmp/fva_kernel} ! 41: ;; ! 42: ! 43: sc) CFLAGS=${CFLAGS}" -DGORT" ! 44: ;; ! 45: ! 46: ticom) # piggy's Tiwanese 4 port card ! 47: PATCH="${PATCH} AL_ADDR+8=0x2b0 AL_ADDR+12=0x2b8" ! 48: ;; ! 49: ! 50: xl) PATCH="${PATCH} ftCon=ftxlcon PHYS_MEM=589824" ! 51: ;; ! 52: ! 53: -c) shift ! 54: CFLAGS="$CFLAGS $1" ! 55: ;; ! 56: ! 57: -o) shift ! 58: TARGET=$1 ! 59: ;; ! 60: ! 61: *=*) PATCH="${PATCH} ${ARG}" ! 62: ;; ! 63: ! 64: *) ! 65: echo "Usage: $0" ! 66: echo " {fha | fva | sc | ticom} {-o target} {-c cflags} {addr=value}..." ! 67: exit 1 ! 68: ;; ! 69: esac ! 70: shift ! 71: done ! 72: ! 73: make "CFLAGS=$CFLAGS" "CC=$CC" libs || exit 1 ! 74: ! 75: TARGET=${TARGET-/at386.test} ! 76: ! 77: here=$CWD ! 78: cd ../conf ! 79: make TARGET=${TARGET} ${CONFDIR} || exit 1 ! 80: cd $here ! 81: ! 82: if [ -n "${PATCH}" ]; then ! 83: set -x ! 84: /conf/patch $TARGET $PATCH || exit 1 ! 85: fi ! 86:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.