tsutsui
56ed3d51fc
Don't use "#if defined(__i386__) || defined(__x86_64__)" conditionals
...
in C source file to define option features.
Define proper options in each Makefile per ${MACHINE_ARCH} variable instead.
Previously if a host is x86 and it has /usr/mdec/mbr file in its system,
tools fdisk implicitly installs it as mbr bootcode even for !x86 targets.
2012-05-05 16:03:55 +00:00
tsutsui
fcf4b7e0c1
Remove fdisk/mbr for macppc which was blindly pulled from OpenBSD.
...
It just fakes MBR partition map which contains 1MB FAT16B partition
and ~1GB OpenBSD partition, and we can always create necessary
MBR partitions for OpenFirmware by the fdisk(8) command itself.
2009-11-27 15:37:32 +00:00
christos
cb3a6fdee7
Delete GPT partitions if we overwrite with MBR to avoid confusion with disks
...
that have both MBR and a secondary left over GPT partition signature. From
Mike M. Volokhov
2009-06-01 19:57:33 +00:00
lukem
e6cb0042e9
remove mispelt WARNS. (it will be set in ../Makefile.inc "soon")
2009-04-06 12:19:16 +00:00
dsl
fe8a8005c1
Make this compile without -Wno-pointer-sign
...
(Needs updated bootblock.h)
2007-11-29 23:19:25 +00:00
apb
4713b815f3
WARNS= 4
2007-03-10 18:22:04 +00:00
mrg
16efbf8575
don't do the -Wno-pointer-sign dance for host programs.
2006-05-12 01:18:25 +00:00
mrg
aadd7d4847
sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.
2006-05-11 23:16:28 +00:00
fvdl
a33a5a18b5
If HOSTPROG is empty, do not pull in libutil, since we do not need it in that
...
case, and several host platforms do not have libutil. Fixes the build of
these programs as host tools on platforms without libutil.
2005-06-23 00:54:47 +00:00
dyoung
4580f13f42
Turn fdisk(8) into a host tool. Still todo: commit the host-tool
...
build infrastructure to src/tools/fdisk/.
2005-06-12 19:14:10 +00:00
lukem
dfee67134f
Make fdisk(8) available on all platforms, since MS-DOS partitioning
...
is the de-facto standard for many removable media types.
2005-05-22 03:45:30 +00:00
xtraeme
76500fc2f9
WARNS=2 is the default defined in sbin/Makefile.inc. (thanks wiz)
2005-01-20 16:39:22 +00:00
xtraeme
784c275927
Remove main() prototype; WARNS=2
2005-01-20 16:01:02 +00:00
gavan
0560d8b947
Initial import of iyonix port.
...
The Iyonix is a desktop machine from Castle Technology, based on a 600MHz
XScale[tm] 80321 processor.
* Uses the bootloader from NetBSD/acorn32, which is now 32-bit compatible.
* Currently boots multiuser with a serial console.
* Device support is not yet complete.
With help from abs.
2004-10-13 23:28:34 +00:00
dsl
8defedc8ba
Don't descend into mbr_bootsel.
...
i386/and64 mbr code is built in arch i386/stand/mbr
2003-04-30 19:49:01 +00:00
fvdl
0945a6df17
x86_64 -> amd64
2003-04-26 19:02:50 +00:00
fvdl
304258c96f
Compile mbr and mbr_bootsel on x86_64
2002-11-23 23:45:51 +00:00
manu
3f13baf349
Added fdisk on hpcarm
2002-07-26 17:22:51 +00:00
itojun
b11bd24490
fdisk is now useful for macppc, build it
2002-06-17 15:11:46 +00:00
uch
f7b9e074ee
add hpcsh
2002-05-09 18:16:16 +00:00
thorpej
34525f12a8
Build fdisk(8) on netwinder.
2002-04-03 03:17:36 +00:00
scw
aea350ead2
fdisk(8) is needed on mvmeppc since PPCBUG uses PeeCee-style MBR
...
partition info when booting from disk.
2002-02-27 22:31:18 +00:00
uch
0cbd019fc3
playstation2 support
2001-10-15 16:22:50 +00:00
nonaka
a279fa1682
also install on prep.
2000-05-02 18:20:41 +00:00
soren
c1e87c4d5e
Also install on cobalt.
2000-03-19 23:01:07 +00:00
soda
07a6bcdde4
Build fdisk also on arc
2000-01-31 15:54:48 +00:00
enami
d758f82f45
Oops, needs an operator.
1999-09-25 04:27:55 +00:00
enami
cd2531c01e
Build fdisk also on hpcmips.
1999-09-25 04:26:28 +00:00
enami
62d623bfc4
Don't decend into the subdirectory mbr_bootsel except i386,
...
since it currently doesn't contain MI thing and not compile
on ofppc box (thanks Wolfgang) and probably on bebox box.
1999-09-25 04:18:20 +00:00
sakamoto
8ecadeaecd
Build fdisk on bebox and ofppc(replaced powerpc).
1999-07-02 17:48:26 +00:00
ross
255793452f
Since fdisk/mbr contains a man page, we need to descend into it regardless
...
of which ${MACHINE} we are.
1999-05-02 04:42:47 +00:00
fvdl
fa9bff9be1
Add and build a bootselecting MBR (i386).
1999-04-15 22:31:23 +00:00
ws
1cd9ec3c71
Separate master bootcode from fdisk.
1998-10-15 15:23:23 +00:00
lukem
216ef04613
switch to using opendisk(3) from libutil
1997-09-25 05:08:28 +00:00
lukem
2ddc10a0ab
define WARNS?=1 for all of sbin/*
1997-09-15 12:45:47 +00:00
lukem
6e61b15d9c
* support ``short'' names of disks (e.g, ``sd0'') instead of requiring
...
the full name (e.g, ``/dev/rsd0d'') a la disklabel(8) (where the code
was effectively lifted from ;-)
* prefix hexadecimal numbers in output with '0x'
1997-09-14 13:52:26 +00:00
phil
2d074efe44
-- add -b flag for setting fdisk's idea of BIOS geometry from command line
...
-- cleanup so WARNS=1 works
-- man page updated to reality.
1997-09-05 21:26:57 +00:00
mrg
5667e094a1
move man pages into share/man.
1997-06-23 04:23:46 +00:00
cgd
0114e805ce
convert to new RCS Id conventions; reduce my headache
1995-03-18 14:54:19 +00:00
cgd
06e2955ff1
specify man pages the new way.
1994-12-22 10:44:04 +00:00
mycroft
cda4f8f6ee
Add RCS identifiers.
1993-08-01 05:37:30 +00:00
cgd
3a05a908df
added a 386bsd fdisk program, by julian elischer. (patch 111)
1993-04-09 19:23:56 +00:00