Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/distrib/utils/sysinst



Module Name:    src
Committed By:   abs
Date:           Sat Sep 19 14:57:30 UTC 2009

Modified Files:
        src/distrib/utils/sysinst: defs.h install.c mbr.c mbr.h target.c
            upgrade.c
        src/distrib/utils/sysinst/arch/acorn26: md.c
        src/distrib/utils/sysinst/arch/acorn32: md.c
        src/distrib/utils/sysinst/arch/alpha: md.c
        src/distrib/utils/sysinst/arch/amiga: md.c
        src/distrib/utils/sysinst/arch/arc: md.c
        src/distrib/utils/sysinst/arch/atari: md.c
        src/distrib/utils/sysinst/arch/bebox: md.c
        src/distrib/utils/sysinst/arch/cats: md.c
        src/distrib/utils/sysinst/arch/cobalt: md.c
        src/distrib/utils/sysinst/arch/evbarm: md.c
        src/distrib/utils/sysinst/arch/evbmips: md.c
        src/distrib/utils/sysinst/arch/evbppc: md.c
        src/distrib/utils/sysinst/arch/ews4800mips: md.c md.h
        src/distrib/utils/sysinst/arch/hp300: md.c md.h
        src/distrib/utils/sysinst/arch/hp700: md.c
        src/distrib/utils/sysinst/arch/hpcarm: md.c
        src/distrib/utils/sysinst/arch/hpcmips: md.c
        src/distrib/utils/sysinst/arch/i386: md.c
        src/distrib/utils/sysinst/arch/landisk: md.c
        src/distrib/utils/sysinst/arch/mac68k: md.c md.h
        src/distrib/utils/sysinst/arch/macppc: md.c
        src/distrib/utils/sysinst/arch/mipsco: md.c
        src/distrib/utils/sysinst/arch/mvme68k: md.c
        src/distrib/utils/sysinst/arch/news68k: md.c
        src/distrib/utils/sysinst/arch/newsmips: md.c
        src/distrib/utils/sysinst/arch/ofppc: md.c
        src/distrib/utils/sysinst/arch/playstation2: md.c
        src/distrib/utils/sysinst/arch/pmax: md.c
        src/distrib/utils/sysinst/arch/prep: md.c
        src/distrib/utils/sysinst/arch/sandpoint: md.c
        src/distrib/utils/sysinst/arch/sgimips: md.c
        src/distrib/utils/sysinst/arch/shark: md.c
        src/distrib/utils/sysinst/arch/sparc: md.c
        src/distrib/utils/sysinst/arch/sparc64: md.c
        src/distrib/utils/sysinst/arch/vax: md.c
        src/distrib/utils/sysinst/arch/x68k: md.c
        src/distrib/utils/sysinst/arch/zaurus: md.c

Log Message:
defs.h:
- Re-order the md_*() definitions so they are in the order called
- Add some comments
- Remove obsolete md_set_no_x() definition
- Remove md_copy_filesystem()
- #if defined(DEBUG) declare backtowin(void) to avoid scattering
  externs in various md .c files

mbr.[ch]:
- Add a set_bios_geom_with_mbr_guess() which can be called by all
  the non x86 ports rather than copying the same code into arc,
  bebox, cobalt, evbmips, evbppc, hpcarm, hpcmips, landisk, ofppc,
  prep, sandpoint, and zaurus md.c

install.c:
- Remove now unnecessary call to md_copy_filesystem()

upgrade.c:
- Move move_aout_libs() here, and put under #ifdef AOUT2ELF
- Rather than having *every* md_update call wrefresh(curscr),
  wmove(stdscr, 0, 0), wclear(stdscr), and wrefresh(stdscr),
  move them here

arch/acorn26/md.c:
- Just include arch/acorn32/md.c, but add a note there warning
  about this, and while here add a note to i386/md.c that it
  is included by amd64

arch/*/md.c:
- By all means "Vive la difference", but we have 38 pairs of md.[ch],
  and they could not even agree on the order in which to list the
  md hooks, let alone formatting. Sort the md hooks to match the
  (now sane) order in def.sh, and try to normalise the formatting
- Also copy across some function level comments everywhere
- Ensure functions only used inside each md.c are defined as static
- Remove some now unused functions
- Some files had enable_rc_conf in #ifdef DEBUG. Add this to all
- bebox, evbppc and sandpoint were still playing broken games with
  copying the booted ramdisk to the target disk, the primary result
  of which was just to slow things down and ensure the target system
  lost the .profile extracted from the sets. Just kill this.
- For some ports md_update() called endwin(), and in others not.
  Take a cure from i386/amd64 and a few other more active ports,
  and update everything to match (no endwin())
- In a couple of cases correct port names in comments
- ANSIfy some lingering old style functions
- Consistently use "return 0;" rather than "return (0);"

More of the mbr code should be abstracted, along with the
get_ramsize() / set_swap() logic, but this is (more than)
enough for one day...

sysinst built for all ports but only runtime tested on amd64 & i386


To generate a diff of this commit:
cvs rdiff -u -r1.144 -r1.145 src/distrib/utils/sysinst/defs.h
cvs rdiff -u -r1.42 -r1.43 src/distrib/utils/sysinst/install.c
cvs rdiff -u -r1.80 -r1.81 src/distrib/utils/sysinst/mbr.c
cvs rdiff -u -r1.23 -r1.24 src/distrib/utils/sysinst/mbr.h
cvs rdiff -u -r1.51 -r1.52 src/distrib/utils/sysinst/target.c
cvs rdiff -u -r1.49 -r1.50 src/distrib/utils/sysinst/upgrade.c
cvs rdiff -u -r1.22 -r1.23 src/distrib/utils/sysinst/arch/acorn26/md.c
cvs rdiff -u -r1.23 -r1.24 src/distrib/utils/sysinst/arch/acorn32/md.c
cvs rdiff -u -r1.47 -r1.48 src/distrib/utils/sysinst/arch/alpha/md.c
cvs rdiff -u -r1.21 -r1.22 src/distrib/utils/sysinst/arch/amiga/md.c
cvs rdiff -u -r1.32 -r1.33 src/distrib/utils/sysinst/arch/arc/md.c
cvs rdiff -u -r1.23 -r1.24 src/distrib/utils/sysinst/arch/atari/md.c
cvs rdiff -u -r1.52 -r1.53 src/distrib/utils/sysinst/arch/bebox/md.c
cvs rdiff -u -r1.20 -r1.21 src/distrib/utils/sysinst/arch/cats/md.c
cvs rdiff -u -r1.4 -r1.5 src/distrib/utils/sysinst/arch/cobalt/md.c
cvs rdiff -u -r1.21 -r1.22 src/distrib/utils/sysinst/arch/evbarm/md.c
cvs rdiff -u -r1.5 -r1.6 src/distrib/utils/sysinst/arch/evbmips/md.c
cvs rdiff -u -r1.28 -r1.29 src/distrib/utils/sysinst/arch/evbppc/md.c
cvs rdiff -u -r1.6 -r1.7 src/distrib/utils/sysinst/arch/ews4800mips/md.c
cvs rdiff -u -r1.2 -r1.3 src/distrib/utils/sysinst/arch/ews4800mips/md.h
cvs rdiff -u -r1.26 -r1.27 src/distrib/utils/sysinst/arch/hp300/md.c
cvs rdiff -u -r1.15 -r1.16 src/distrib/utils/sysinst/arch/hp300/md.h
cvs rdiff -u -r1.8 -r1.9 src/distrib/utils/sysinst/arch/hp700/md.c
cvs rdiff -u -r1.6 -r1.7 src/distrib/utils/sysinst/arch/hpcarm/md.c
cvs rdiff -u -r1.44 -r1.45 src/distrib/utils/sysinst/arch/hpcmips/md.c
cvs rdiff -u -r1.122 -r1.123 src/distrib/utils/sysinst/arch/i386/md.c
cvs rdiff -u -r1.6 -r1.7 src/distrib/utils/sysinst/arch/landisk/md.c
cvs rdiff -u -r1.54 -r1.55 src/distrib/utils/sysinst/arch/mac68k/md.c
cvs rdiff -u -r1.22 -r1.23 src/distrib/utils/sysinst/arch/mac68k/md.h
cvs rdiff -u -r1.40 -r1.41 src/distrib/utils/sysinst/arch/macppc/md.c
cvs rdiff -u -r1.15 -r1.16 src/distrib/utils/sysinst/arch/mipsco/md.c
cvs rdiff -u -r1.21 -r1.22 src/distrib/utils/sysinst/arch/mvme68k/md.c
cvs rdiff -u -r1.29 -r1.30 src/distrib/utils/sysinst/arch/news68k/md.c
cvs rdiff -u -r1.17 -r1.18 src/distrib/utils/sysinst/arch/newsmips/md.c
cvs rdiff -u -r1.5 -r1.6 src/distrib/utils/sysinst/arch/ofppc/md.c
cvs rdiff -u -r1.23 -r1.24 src/distrib/utils/sysinst/arch/playstation2/md.c
cvs rdiff -u -r1.62 -r1.63 src/distrib/utils/sysinst/arch/pmax/md.c
cvs rdiff -u -r1.30 -r1.31 src/distrib/utils/sysinst/arch/prep/md.c
cvs rdiff -u -r1.29 -r1.30 src/distrib/utils/sysinst/arch/sandpoint/md.c
cvs rdiff -u -r1.24 -r1.25 src/distrib/utils/sysinst/arch/sgimips/md.c
cvs rdiff -u -r1.23 -r1.24 src/distrib/utils/sysinst/arch/shark/md.c
cvs rdiff -u -r1.47 -r1.48 src/distrib/utils/sysinst/arch/sparc/md.c
cvs rdiff -u -r1.24 -r1.25 src/distrib/utils/sysinst/arch/sparc64/md.c
cvs rdiff -u -r1.33 -r1.34 src/distrib/utils/sysinst/arch/vax/md.c
cvs rdiff -u -r1.36 -r1.37 src/distrib/utils/sysinst/arch/x68k/md.c
cvs rdiff -u -r1.4 -r1.5 src/distrib/utils/sysinst/arch/zaurus/md.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index