Commit Graph

194 Commits

Author SHA1 Message Date
he
302a0beda3 Latest change to loadfile_elf32.c grew a dependency on strncmp,
so provide that as well as part of libsa for this platform.
2010-03-15 16:13:13 +00:00
tsutsui
b2a913526c Use <bsd.klinks.mk> to create machine and ${MACHINE_CPU} symlinks. 2009-12-24 16:39:39 +00:00
tsutsui
8ab3a33f47 Put asm objects into OBJS, not dependencies for all target. 2009-12-06 13:31:16 +00:00
tsutsui
25aced04f4 Create machine and ${MACHINE_CPU} symlinks properly and
remove unnecessary dependencies so that parallel build works.
2009-12-06 13:28:04 +00:00
snj
febb7cce65 Drop 3rd and 4th clauses. Approved by gwr@ (copyright holder). 2009-10-21 23:12:09 +00:00
he
bca1eed8b8 This one needs <sys/exec_aout.h>, so include it explicitly. 2009-08-22 10:02:21 +00:00
scw
403ccaeac2 Fix for install/40961: The RAMDISK kernel has grown significantly
since bootst was written. Grab 3MB of the kernel image from tape
in hackprom_diskrd() instead of 2MB.

Bump bootst version on account of the above fix.

While here, use -Os instead of -O2 to compile mvme68k stand code.
2009-04-11 10:56:12 +00:00
tsutsui
ac465a42e7 Remove obsolete LIBSA_USE_MEMCPY and LIBSA_USE_MEMSET.
They were removed from <lib/libsa/stand.h> on December 2007.
2009-04-03 10:38:12 +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
he
d8caed22ee Remove parens around target in .ifmake -- new make doesn't like it. 2009-01-19 23:09:16 +00:00
tsutsui
69cf32a782 Replace time_t values in libsa sources with the following two types
to avoid unnecessary 64 bit ops which would make binaries larger:

satime_t (currently unsigned int):
 numbers in seconds returned by the machine dependent getsecs() function
 which are used to measure relative time

saseconds_t (currently int):
 numbers in seconds used to specify timeout to network drivers

Per discussion on current-users.
2009-01-12 11:32:43 +00:00
tsutsui
c2aee7cf41 Make sure machine and ${MACHINE_ARCH} symlinks are always created. 2009-01-12 07:23:59 +00:00
tsutsui
2a366090a5 Add some make variables to suppress errors on build without DESTDIR. 2009-01-12 07:20:35 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
tsutsui
a07f7c8069 Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
2008-01-12 09:54:21 +00:00
garbled
d974db0ada Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
2007-10-17 19:52:51 +00:00
christos
27e0d2b78b kill MFSNAMELEN 2007-07-17 20:17:52 +00:00
christos
53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
mrg
19ad9e5482 change some variable types from int to size_t, since that's what libsa
dv_strategy() wants for the 6th argument.
2006-05-20 20:38:39 +00:00
mrg
2d245c626f change some char to u_char to match other variables and functions. 2006-05-20 20:37:15 +00:00
he
ab9a43a85f Follow up rename of in_cksum.c to ip_cksum.c. 2006-02-26 19:20:57 +00:00
christos
606bb2caed free -> dealloc
unsigned -> size_t for alloc/dealloc
2006-01-25 18:28:25 +00:00
skrll
504686f15c Don't try and create/cleanup symlinks before objdirs are created.
Doesn't everyone use ro src?
2005-12-28 08:04:44 +00:00
he
daa2326eba Make this build again after the libc/libkern consolidation by referring
to common/lib/libc/Makefile.inc via ${S}/..

Add use of ashrdi3.c inet_addr.c strncpy.c strlen.c, from common/lib.
2005-12-27 12:38:53 +00:00
perry
2d65de2479 bare asm -> __asm 2005-12-24 22:45:33 +00:00
tsutsui
34c8c3e9fe Move some definitions from CFLAGS to CPPFLAGS so that SRT0.S can
include <m68k/asm.h> properly.
2005-12-24 22:22:33 +00:00
tsutsui
8343611e9c Adapt to libkern reorganization. 2005-12-24 22:18:40 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
he
e1ffd766c2 Make the bugscopen() function match it's prototype. 2005-07-03 22:22:50 +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
c42b06f995 ANSI & KNF. 2005-06-28 20:26:04 +00:00
junyoung
e5d633d728 ANSI, KNF, drop trailing spaces, and etc. 2005-06-28 20:23:50 +00:00
junyoung
cd62ed2ea9 ANSIfy and remove trailing spaces. 2005-06-28 20:15:29 +00:00
junyoung
d305a14978 ANSI, KNF, etc. 2005-06-28 20:13:25 +00:00
junyoung
6cb3e5962d ANSIfy & remove trailing spaces. 2005-06-28 14:41:47 +00:00
junyoung
17670568fe Use FS_OPS() macro. 2005-06-23 19:44:00 +00:00
christos
362a4a0bd5 Yes, it was a cool trick >20 years ago to use "0123456789abcdef"[a] to
implement, xtoa(), but I think defining the samestring 50 times is a bit
too much. Defined HEXDIGITS and hexdigits in subr_prf.c and use it...
2005-05-17 04:14:57 +00:00
jmc
92b54a6cd9 Don't need realdepend/realall depends now that .BEGIN works again 2005-05-11 18:59:34 +00:00
he
8e58484dd6 Adapt to the statfs -> statvfs changes. 2004-05-21 08:35:00 +00:00
agc
7db1d33cba Modify the licences of code written by Theo De Raadt from a 4-clause
to a 2-clause licence (retaining UCB clauses (1) and (2)), per PR
22409 from Joel Baker, approved by Theo de Raadt, and ratified by
myself - the only discrepancy being the handling of the original
clause 3 in src/usr.sbin/yppoll/yppoll.c.
2003-12-10 12:06:25 +00:00
lukem
f85d2d1c14 Use ${HOST_SH} instead of `sh'.
If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
2003-10-26 07:25:33 +00:00
scw
b9b144d190 Add -ffreestanding 2003-10-24 21:28:24 +00:00
he
47a6e783ff Adapt to const-ification of the first arg of the open function of fs_ops. 2003-08-24 14:43:29 +00:00
dsl
6c51a53afa Add memmove - needed for symlink processing in ufs.c 2003-08-22 21:00:26 +00:00
agc
aad01611e7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
he
672b90d3f1 Fix this so that it compiles after the UFS2 merge. This program can
still only deal with UFS1 file systems.

Reviewed by scw.
2003-04-07 11:45:55 +00:00
he
cea7b7a329 Add the newly separated-out ether_sprintf.c here, so that the booters
can be allowed to link with no unresolved symbols again.
2003-03-16 08:39:58 +00:00
drochner
e7bde1e9c7 adapt for void *io_netif 2003-03-13 12:44:48 +00:00
scw
2125ffc454 Move the -D__daddr_t from libsa/Makefile to Makefile.booters so
the bootloaders get to benefit from it, not just libsa.
2003-02-27 20:38:34 +00:00
matt
938c539a86 Add CPPFLAGS+=-D__daddr_t=int32_t
Add snprintf.c to libsa/Makefile
2003-02-04 13:34:56 +00:00