Commit Graph

239 Commits

Author SHA1 Message Date
mlelstv
2aacffe133 Add 'C' option to bootblock to enable serial console. 2016-01-15 08:27:04 +00:00
phx
7a71b65cf8 Make the -p option work, like with loadbsd.
Otherwise the kernel could load into a low-priority 512MB Z3 RAM segment.
2016-01-04 14:10:15 +00:00
phx
272a1c3817 Build instructions and Makefile for loadbsd 3.0.
Submitted by Gunther Nikl.
2015-11-11 16:08:52 +00:00
aymeric
d8ecb4515d . don't depend on -ll to provide a main() function. Lex on ArchLinux doesn't
provide a libl
. still depend on -ll for the !HOSTPROG case for yywrap()
. ANSIfy
2015-02-03 19:58:41 +00:00
martin
84b6e2e4fd Specify both -march=68030 and -mcpu=68030 for assembler files here
as well.
2014-04-29 08:11:46 +00:00
tsutsui
8199d4f410 No need to use annoying HAVE_GCC to handle gcc48 m68k behavior chnages. 2014-04-19 00:55:37 +00:00
christos
dd5fdb3e67 unbreak gcc4.5 2014-04-19 00:04:12 +00:00
mlelstv
fe0f5b41c6 Use different option (-mcpu=68030) to select target cpu for the assembler.
The old option (-m68030) causes it to complain about features used that
are not provided by the target cpu.
2014-03-29 12:52:56 +00:00
mlelstv
ddf5baea92 Test mode is not implemented. Appease compiler. 2014-03-29 12:49:15 +00:00
christos
19ccf3b881 mark unused 2014-03-26 08:19:44 +00:00
christos
889cc98cdc kill sprintf
fix unused variables
2014-03-22 01:52:44 +00:00
riastradh
6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
matt
bf0daa663a Use <bsd.klinks.mk>
Use ${_MKTARGET_*}
Use correct arguments to ${AR}
Fix entry symbol.
2013-08-21 08:04:50 +00:00
joerg
8dce5128ed Explicitly disable unwind tables for the boot loader. 2013-07-18 12:15:15 +00:00
chs
4b3d270286 build cread.c with -O1 to work around a gcc 4.5 bug. 2011-10-04 04:04:15 +00:00
christos
31674ac746 don't mark vers.c phony. 2011-10-02 18:30:50 +00:00
mrg
e3166ce34c fix previous and only force the failure if reloc2bb already failed. 2011-07-12 03:09:03 +00:00
mrg
846b001eeb improve the error message if elf2bb finds we are too large. if elf2bb
fails, make sure that the following nm -u's success doesn't cause make
to believe the target was built.  now amiga builds with HAVE_GCC=45
actually fail here, rather than fail at sets time due to missing files.
2011-07-11 01:24:34 +00:00
mhitch
3f201ebbb2 Add a serial console flag passed from the boot loader to the kernel to
allow enabling the serial console with the boot command.  Loadbsd has
the option added, but I am not able to buid a new loadbsd binary at this
time, so only the bootxx loader can set the option.
2011-07-10 21:02:37 +00:00
he
33785dfc09 Include <string.h> for strncmp() prototype. 2011-06-20 20:25:47 +00:00
christos
b51fed0037 typo 2011-05-20 01:28:40 +00:00
christos
7471a8d9e4 include missing headers. 2011-05-19 02:54:58 +00:00
joerg
3c550524b5 Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh.  Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
2011-01-22 19:19:14 +00:00
phx
1992693730 Recognize Amiga 600 model.
Patch submited by Radoslaw Kujawa.
2011-01-13 22:02:05 +00:00
mrg
b7ea3b98cd use elf2bb / elf2bb.h instead of the old, now gone aout2bb version. 2010-07-06 06:09:56 +00:00
mrg
4c92852a80 remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
2010-07-06 05:59:50 +00:00
mrg
19499f3f8d update all of these makefiles for the .so -> .pico change.
most of them are most harmless, but the libgcc parts are quite essential.
before this change, all the special rules for .pico files were not applied,
and exception handling wasn't enabled.  this caused c++ exceptions not to
work on sparc64.


this fixes the build of boost-headers (it was correctly calling exception
support broken!), which in turn makes all the things that depend upon it
to actually work again on sparc64.
2010-03-14 00:26:09 +00:00
elad
251a5f50bc Don't abuse INSECURE for allowing exec() to load files not owned by uid 0.
Adjust references where this has been used.
2009-12-29 20:21:45 +00:00
snj
ac9f09c8c7 Drop 3rd and 4th clauses (except in one case, where copyright is shared
with UCB and only the 3rd clause is dropped).  Approved by mhitch@ and is@
(copyright holders).
2009-11-15 20:38:35 +00:00
snj
78f74058b2 Drop 3rd and 4th clauses (except on files where copyright is shared
with UC, in which case only the ad clause has been removed). Approved
by mhitch@ (copyright holder).
2009-10-21 23:53:38 +00:00
mlelstv
e33abf1ab0 Add a serial console mode for the bootblock. In this mode all console
output will be echoed to the serial port and input will be accepted
from either keyboard or serial port. The bootblock serial console is
limited to 9600bps 8N1 as it uses the AmigaOS kernel debug routines.

To enable this you have to uncomment the SERCONSOLE define in
boot/Makefile.

Also note that the handling of a serial console in the kernel is
independent of this, you need to a build a kernel with 'options
SERCONSOLE'.
2009-10-17 11:18:17 +00:00
mlelstv
688e4b57e6 AmigaOS console.device expects a character buffer, not a pointer to an int.
This fixes printf() output.
2009-10-11 10:00:10 +00:00
cegger
df7f595ecd Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
he
715f7f5caa Make putchar() obey the stand.h prototype. 2009-03-17 00:13:43 +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
tsutsui
9eb4d00797 - WARNSfy
- make sure machine and ${MACHIN_ARCH} symlinks are always created
- add src/common/dist/zlib to INCPATH and remove unnecessary options
- remove -I${DESTDIR}/usr/include from INCPATH
2009-01-12 07:42:30 +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
11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
hubertf
df0f62d579 Remove unneeded #include <getopt.h>
From: Slava Semushin <php-coder@altlinux.ru>
2007-03-26 23:08:29 +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
tsutsui
b9927f2311 Remove static from devsw[] declaration since it's declared as extern
in <lib/libsa/stand.h>.
2006-06-27 11:12:57 +00:00
tsutsui
267074cf60 - fix signed/unsigned mismatch
- fix lvalue cast
2006-06-27 11:07:17 +00:00
tsutsui
762bb578e9 Include <stdlib.h> for exit(3) prototype. 2006-06-27 10:55:16 +00:00
tsutsui
d03388424c volatile void func(decl) -> void func(decl) __attribute__((__noreturn__))
to appease gcc4.
2006-06-27 10:53:11 +00:00
gdamore
800f1efe25 Make this cross-compile on Solaris, by wrapping the #include of sys/endian.h
with a test for #ifndef HAVE_NBTOOL_CONFIG_H.
2006-06-15 23:06:48 +00:00
is
99ff421490 Implement dealloc() - and implement alloc() in a way that it matches it. 2006-01-31 14:58:28 +00:00
christos
606bb2caed free -> dealloc
unsigned -> size_t for alloc/dealloc
2006-01-25 18:28:25 +00:00
is
7f423356f3 Compile new zlib; compile it in a way that it doesn't inflate the bootblock
by 50% with tables. While we're here: use our own memmove().
2006-01-25 13:23:50 +00:00