Commit Graph

225 Commits

Author SHA1 Message Date
roy
594ee076bc Convert to terminfo so we compile. 2010-02-10 14:48:26 +00:00
roy
98eb889579 Userland now builds and uses terminfo instead of termcap.
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
snj
0c15144ae1 Drop 3rd and 4th clauses. Approved by thomas@ (copyright holder). 2009-10-21 21:57:39 +00:00
snj
4988388746 Remove 3rd and 4th clause on Leo Weppelman's license. OK leo@. 2009-10-20 19:10:09 +00:00
tsutsui
360f84f6f4 KNF, ANSIfy etc. 2009-08-24 13:04:37 +00:00
tsutsui
eb60dd4479 Use __arraycount(). 2009-08-24 13:03:43 +00:00
tsutsui
0228fe92d4 Rewrite binpatch(8) utility to add support for ELF binaries,
using implementation of old src/usr.sbin/mdsetimage sources
which supports misc executable formats without LGPL'ed libbfd.

No particular comments on port-atari@.

XXX1: amiga also has the similar utility in amiga/stand/binpatch
      but it has slightly different options.
XXX2: Is it worth to put this utility into MI src/usr.sbin to patch
      rtc_offset etc. in GENERIC kernel binaries in distribution?
2009-08-20 15:14:49 +00:00
tsutsui
e90ec2adcc Remove extra whitespace added by a dumb tool. 2009-03-31 11:48:15 +00:00
tsutsui
d008724eb5 Switch atari standalone bootloaders to using MI libsa and libkern.
Tested by David Ross on port-atari@. Thanks!
2009-03-31 11:42:07 +00:00
tsutsui
18014b1a99 Remove bcmp() from MD libsa.
XXX: These ports should be rewritten to use MI libsa for maintainability.
2009-03-19 10:19:33 +00:00
cegger
e2cb85904d bcopy -> memcpy 2009-03-18 17:06:41 +00:00
cegger
c363a9cb62 bzero -> memset 2009-03-18 16:00:08 +00:00
cegger
df7f595ecd Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
he
62f5486c1b Make a couple of functions conform to the prototype, restoring buildability. 2009-03-17 00:18:40 +00:00
tsutsui
b8675b75eb Use <bsd.klinks.mk> to create MD include dir symlinks. 2009-03-15 11:45:30 +00:00
dsl
82357f6d42 ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
2009-03-14 21:04:01 +00:00
dsl
454af1c0e8 Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
2009-03-14 15:35:58 +00:00
dsl
02cdf4d2c8 Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
2009-03-14 14:45:51 +00:00
tsutsui
145f39b7b6 Don't install built boot.atari loaders into / of DESTDIR because
there are two variants of boot.atari per machine types (std or milan)
and they should be selected and copied from /usr/mdec/{std,milan} dirs
to /targetroot during installation.

Problem on default installation with sysinst was reported by David Ross.
2009-01-13 13:44:01 +00:00
tsutsui
fe5a481b54 Fix PR port-atari/40315: Bootloader fails on Atari TT030
Add asm sources which provide a fixed entry point for raw bootxx and bootxxx
 because modern aggressive gcc4 may reorder functions in the same source
 and the first function in a C source won't always appear at the beginning
 in its object.

Also overhaul various files in the stand directory:
- rename stand/Makefile.inc to stand/Makefile.booters and
  explicitly include it from each Makefile because the stand
  directory contains non standalone programs like installboot and
  Makefile.inc will be included implicitly from all Makefiles in SUBDIRs
- put more common options into Makefile.booters so that
  all boot programs use proper options (-Os etc.)
- make standalone boot programs compile without installed ${DESTDIR}:
  - create machine and m68k symlinks in ${.OBJDIR} in all boot programs
  - set appropriate make environments to suppress errors and warnings
  - <string.h> isn't there in _STANDALONE case
  - put #ifdef TOSTOOLS (looks equivarent with !_STANDALONE)
    to some files in stand/tostools
  - use ${LD} ${LINKFLAGS} rather than ${CC} ${LDFLAGS}
- create raw binaries on ${PROG} target rather than on beforeinstall
  and stop weird renaming on beforeinstall and afterinstall
- print proper error message if bootxx size is larger than limit
- create ${DESTDIR}/usr/mdec/{milan,std} directories on beforeinstall
  in all boot programs
  (XXX: how can we put MD /usr/mdec/foo directories into src/etc/mtree?)
- prototype warnsfy
- cleanup Makefiles for readablity and remove unnecessary rules
- no need to use daddr_t in installboot because the AHDI label doesn't
  support 64 bit block numbers

Tested by David Ross (PR submitter) on port-atari, and
finally NetBSD/atari on TT030 is now fully functional.

Should be pulled up to netbsd-4 (where gcc4 was initially imported)
and netbsd-5.
2009-01-06 13:35:30 +00:00
abs
5dd888f5c3 Since dl.d_type is always "unknown" now, pick the type of bootblock to
install based on the device name: eg /dev/fd0c would be floppy
2008-11-15 21:33:12 +00:00
apb
f46c1de7cb Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
apb
96230fab84 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:19 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
he
25e5748c32 Add -Os to CFLAGS, so that the boot code fits within the constraints
again.  Sorry, I've not traced why this fit in the past, or what
changed to make it not fit anymore.
2006-12-01 13:52:46 +00:00
dsl
09cad86587 Make the install actually die when the boot code is too big (which it is).
No idea how long it has been bust for.
Other parts of this makefile are deeply sub-optimal.
2006-11-21 18:31:44 +00:00
mhitch
4016823297 gcc4 fix: needs stdlib.h 2006-08-04 01:51:31 +00:00
mhitch
3264771d41 gcc4 fix: static devsw didn't match the prototype. 2006-08-04 01:50:30 +00:00
mhitch
c97e01a899 gcc4 fixes: need to include stdlib.h; fix prototype and definition of
local error() function.
2006-08-04 01:48:02 +00:00
he
143d7e2daf Make this build again by using ${S}/../common/lib/libc/Makefile.inc. 2005-12-30 00:24:48 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
junyoung
e63501d234 #include <lib/libsa/stand.h> rather than <stand.h> or "stand.h" 2005-06-28 21:00:41 +00:00
junyoung
9b06a3a704 - Use FS_OPS() macro.
- #include <lib/libsa/stand.h> rather than <stand.h>. Do the same thingfor
  ufs.h as well.
- Remove trailing spaces.
- Some other cosmetic changes.
2005-06-28 19:57:56 +00:00
junyoung
97412acee5 ANSIfy, KNF, remove trailing spaces, and etc. 2005-06-28 14:52:07 +00:00
junyoung
a2e395a49a ANSI & KNF. 2005-06-28 14:22:21 +00:00
junyoung
265b2da145 Sync comment with reality.
While here, remove trailing spaces.
2005-06-28 14:14:00 +00:00
junyoung
17670568fe Use FS_OPS() macro. 2005-06-23 19:44:00 +00:00
junyoung
07350a5981 Drop trailing spaces. 2005-06-23 19:14:23 +00:00
jmc
c85fb0b719 add memcmp. Why doesn't this use the regular libsa pullover? 2005-06-14 01:07:36 +00:00
he
dd447992cc Add initialization of xgmsec, the assignment to it apparently depends
on the value in one of the data structures passed as arguments.
2005-06-10 22:08:39 +00:00
simonb
3cebd9325e White space nit- don't put a space before/after increment/decrement
operators.
2005-02-11 06:21:21 +00:00
he
60c4c90899 Add casts to unsigned char for the arguments to the ctype.h macros/functions. 2004-11-12 10:18:46 +00:00
he
cf13121ba3 Add a cast to unsigned char for an argument to toupper(). 2004-11-12 09:52:15 +00:00
drochner
091c877e12 remove license clauses 3 and 4 from my cpoyright notices 2004-03-24 16:34:29 +00:00
jmc
6a03536b28 Toolize and use install to make mdec/std so it's in METALOG. Now a make release
works once again for atari
2004-03-12 17:52:54 +00:00
jmc
ad0332662d daddr_t is forced to int32_t in sys/arch/atari/stand/Makefile.inc so correct
the printf formats to match this
2004-03-11 07:22:25 +00:00
jdc
bfd698dc3d Catch up to the bootblock split into std and milan directories. 2004-03-09 20:14:27 +00:00
wiz
d20841bb64 Uppercase CPU, plural is CPUs. 2004-02-13 11:36:08 +00:00
jmc
9a398a5661 Make libsa build first as other items depend on it (for -j builds) 2003-12-09 15:46:01 +00:00
he
b563d90538 Include <stdlib.h> to pick up exit() prototype. 2003-10-28 11:46:39 +00:00