Home | History | Annotate | Download | only in disklabel
History log of /src/sbin/disklabel/Makefile
RevisionDateAuthorComments
 1.75  03-Jun-2023  lukem bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.74  13-Oct-2019  mrg introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
 1.73  24-Jan-2018  skrll branches: 1.73.4;
Remove port-acorn26

OK core@
 1.72  31-Jan-2016  christos fix broken patch
 1.71  31-Jan-2016  christos PR/50729: Izumi Tsutsui: Add "SMALLPROG"-like options to disklabel(8)
 1.70  03-May-2013  matt Make disklabel a MI tool. It will use MACHINE/MACHINE_ARCH to determine
the disklabel params as well as allowing command-line options of -M <machine>
and -B {le,be} to specify MACHINE and byteorder to be used.
 1.69  30-Aug-2011  bouyer branches: 1.69.2; 1.69.8;
Add getlabelusesmbr(), as proposed in
http://mail-index.netbsd.org/tech-userlevel/2011/08/25/msg005404.html
This is used by disk tools such as disklabel(8) to dynamically decide is
the undelyling platform uses a disklabel-in-mbr-partition or not
(instead of using a compile-time list of ports).
getlabelusesmbr() reads the sysctl kern.labelusesmbr, takes its value from the
machdep #define LABELUSESMBR.
For evbmips, make LABELUSESMBR 1 if the platform uses pmon
as bootloader, and 0 (the previous value) otherwise.
 1.68  18-Aug-2011  phx Define USE_MBR for ofppc.
 1.67  12-Feb-2011  dholland Disable COMPAT_386BSD_MBRPART. The code is still here if anyone needs it
for some reason. (But I have no idea why that would be -- if you have one
of these really ancient partitions and you're about to run disklabel, you
can easily run fdisk first and change the partition type to NetBSD.)

As it stands, the code will munch FreeBSD installs under some
circumstances, which is really not acceptable behavior.

The code, along with the kernel support that's been disabled by
default for several years, and some related but less dangerous code in
sysinst, should prboably be removed entirely after -6 is branched.

Discussed on tech-kern and tech-userlevel; closes PR 44496.

This is also almost certainly the cause of PR 42521 and PR 38841.
 1.66  13-Dec-2009  nakayama branches: 1.66.2;
System utilities, boot programs and kernel modules are machine
(port) specific not CPU, so use MACHINE not MACHINE_ARCH.
 1.65  05-Dec-2009  pooka Remove support for NetBSD/playstation2.
 1.64  28-Nov-2009  tsutsui Don't use #ifdef __${MACHINE_ARCH}__ to enable machine dependent features.
Instead, use proper macro defined in Makefile per ${MACHINE_ARCH}.

__${MACHINE_ARCH}__ doesn't represent an architecture of tool's target
but an architecture of binaries being compiled, so required features
are not prolery enabled or unintentionally enabled on certain host
and target combinations during src/tools build.
 1.63  28-Nov-2009  tsutsui Make dreamcast, evbsh3, and mmeye use -DUSE_MBR.
All of these ports use src/sys/arch/sh3/sh3/disksubr.c
which is MBR aware.
 1.62  14-Feb-2009  abs Convert more MACHINE tests to MACHINE_ARCH
 1.61  11-Mar-2008  aymeric branches: 1.61.6; 1.61.8;
The hpcsh kernel does for sure USE_MBR. Make disklabel use it too on hpcsh.
With this, it is possible to bootstrap a MBR partitioned CF card without
partitioning and disklabelling it first on another platform.
 1.60  18-Dec-2006  nonaka branches: 1.60.4; 1.60.10; 1.60.12;
zaurus use MBR partition info.
 1.59  01-Sep-2006  uwe New NetBSD/landisk port uses MBR too.
 1.58  19-Oct-2005  dsl Rototil the way disklabel -r reads and writes labels.
In particular the 'read' part plays 'hunt the disklabel' in order to get a
label into a local buffer - from where it can be displayed/edited.
The 'write' part makes a separate scan of the disk looking for places to
write the label.
The main changes are:
- It can no longer write the first 8k of the mbr to the pbr (or v.v.)
- All labels on the disk (that it can find) get updated during a write
- With -A all the labels are displayed (inc. those deleted by -D)
- Addition of -D which will delete (by one's complimenting dk_magic{2}) and
existing labels before writing labels to the expected locations.
- -v gives some verbose output to stderr, -vv more etc
A better basis for processing incorrect endian labels, or labels from other
architectures.
 1.57  23-Jun-2005  fvdl 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.
 1.56  17-Jun-2005  dsl Rip out the support for writing bootstrap code. installboot(8) contains
support for hp300, hp700 and vax, $MACHINE is never arm32.
Fix usage output to only contain progname() once - bug introduced in rev 1.89
 1.55  12-Jun-2005  dyoung Make disklabel(8) into a host-tool, "nbdisklabel." Move disklabel.c
to main.c to avoid a name collision with lib/libc/gen/disklabel.c
when we build nbdisklabel. Still todo: commit host-tool build
infrastructure to src/tools/disklabel/.
 1.54  20-Jan-2005  xtraeme WARNS=2 is the default defined in sbin/Makefile.inc. (thanks wiz)
 1.53  20-Jan-2005  xtraeme WARNS=2
 1.52  13-Oct-2004  gavan 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.
 1.51  28-Jun-2004  jkunz Add hp700 MD options for proper boot code handling.
 1.50  18-Jan-2004  lukem * Enable SAVEBOOTAREA on i386 and amd64 (by merging the Makefile
controls with the section for the other MBR-using platforms that
already enable this)
* Don't prompt the user to "erase the previous contents of the disk"
when there's no NetBSD MBR partition; SAVEBOOTAREA is sufficient.

These fixes mean that you can create a disklabel (on an i386/amd64) on a disk
that doesn't have a NetBSD MBR partition without trashing the existing MBR.
The previous behaviour was extremely annoying when working with media such
as FAT-formatted CF cards, and didn't really protect people with such from
accidentally trashing part of sector 1 of such disks, and made it extremely
easy to trash sectors 0..15 of those disks instead.
 1.49  10-Nov-2003  fvdl Bring back disklabel -B for now, since hp300 installboot isn't ready
for prime time yet.
 1.48  08-Nov-2003  dsl Rip out all the '-B bootblock' support, everything should use installboot(8).
(can only affect arm32, hp300 and vax ports, and doesn't affect sysinst).
 1.47  02-Nov-2003  shin playstation2 needs MBR support in disklabel(8).
 1.46  26-Apr-2003  fvdl x86_64 -> amd64
 1.45  11-Dec-2002  fvdl Handle MBRs for x86_64.
 1.44  28-Jul-2002  manu Enable USE_MBR for all arm ports.
 1.43  18-Jun-2002  itojun USE_MBR on macppc too
 1.42  24-Mar-2002  bjh21 Rename arm26 -> acorn26.
 1.41  29-Nov-2001  bjh21 Rather than making FileCore boot block support conditional on __arm32__, make
it conditional on USE_ACORN, and define that if MACHINE is arm26 or acorn32.
This is less than optimal, and maybe we should define it for all ARM systems,
but then disklabel handling across architectures is generally a mess at the
moment.
 1.40  19-Nov-2001  minoura Preserve the boot area on x68k.
 1.39  24-Dec-2000  lukem move showinfo() and showpartition() into separate file, for use by
other programs. slightly change argument signature so that globals
aren't depended upon.
 1.38  02-May-2000  soren branches: 1.38.4;
MBR on cobalt too.
 1.37  02-May-2000  nonaka also use mbr partition table on prep.
 1.36  31-Jan-2000  soda - use MBR partition table also on arc.
- use defined(USE_MBR) instead of defined(__i386__), like hpcmips and arc.
 1.35  09-Jan-2000  shin Add '-DSAVEBOOTAREA' to keep MBR partition information
when NetBSD partition starts at sector 0.
Closes PR:port-hpcmips/9146.
 1.34  11-Oct-1999  shin add hpcmips support (MBR)
 1.33  03-Jun-1999  cgd branches: 1.33.2;
On NetBSD/alpha, go out of the way to read the boot area's contents if -r
is specified, so that the boot blocks aren't clobbered when writing labels.
 1.32  09-Apr-1999  kleink Update a pasto-ed comment.
 1.31  21-Jan-1999  pk branches: 1.31.2;
Enable non-cylinder-aligned partition warning on sparc[64] & sun3.
See also PR#6853.
 1.30  02-Mar-1998  drochner Handle new MBR partition ID on i386. Put all code which decides about
usability of an entry to one place, use same algorithm as kernel (ie,
check signature).
 1.29  18-Oct-1997  mark branches: 1.29.2;
Define NUMBOOT=1 for the arm32 port.
 1.28  10-Oct-1997  christos CFLAGS->CPPFLAGS
 1.27  25-Sep-1997  lukem switch to using opendisk(3) from libutil
 1.26  15-Sep-1997  lukem define WARNS?=1 for all of sbin/*
 1.25  30-Jun-1997  christos Fix warnings.
 1.24  07-Jun-1997  perry i386 now uses "installboot" for installing boot blocks. Comment out
the CFLAGS+= -DNUMBOOT=2 for now.
 1.23  18-Mar-1997  christos Remove -g
 1.22  18-Mar-1997  christos Off by one.
 1.21  14-Mar-1997  perry Nuke obsolete special case .if for amigas.
 1.20  09-Mar-1997  christos Jason says: Use getmaxpartitions(3) to determine the number of partitions
allowed in this architecture.
 1.19  08-Mar-1997  christos Add -i (interactive mode to create/edit labels) inspired by the SunOS/Solaris
format/partition command.
 1.18  17-Oct-1995  cgd don't define NUMBOOT on the alpha, any more. boot block installation
is now done by /usr/mdec/installboot.
 1.17  23-Apr-1995  ragge Changed to use only one bootblock file on VAX.
 1.16  18-Apr-1995  ragge Added vax for 2-file boot blocks.
 1.15  18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.14  11-Feb-1995  cgd NUMBOOT == 2 on the alpha, too.
 1.13  22-Dec-1994  cgd kill unnecessary .include.
 1.12  22-Dec-1994  cgd specify man pages the new way.
 1.11  20-Dec-1994  cgd pull in bsd.own.mk by hand, early, so NOMAN= can be defined there.
 1.10  22-Sep-1994  mycroft Finish 4.4-Lite merge, and convert to use err(3)/warn(3) functions.
 1.9  24-Jun-1994  hpeyerl disklabel(8) from 4.4 merged with our old disklabel(8) by John Brezak
(brezak@apollo.hp.com). hp300's can now disklabel by themselves.
 1.8  12-Feb-1994  chopps added -D${MACHINE} for amiga's becuase of differing sizeof (struct disklabel)
 1.7  01-Aug-1993  mycroft Add RCS identifiers.
 1.6  18-Jul-1993  mycroft Use ${COPY}, not -c for install.
 1.5  25-Apr-1993  mycroft Don't build man page if NOMAN set.
 1.4  10-Apr-1993  cgd make user the cat5 dir exists before trying to install man page there.
 1.3  23-Mar-1993  cgd changed "Id" to "Header" for rcsids
 1.2  22-Mar-1993  cgd added rcs ids to all files
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  22-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.29.2.1  23-Nov-1998  cgd pull up rev 1.30 from trunk (jonathan)
 1.31.2.1  21-Jun-1999  perry pullup 1.32->1.33 (cgd)
 1.33.2.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.38.4.1  26-Feb-2001  he Pull up revision 1.39 (requested by lukem):
Several fixes and enhancements:
o with ``-I'', initialize the label if it's not there, it's
corrupt, or there's no ``fake'' label.
o correct partition table header
o move some functions into a separate file for other programs
to use
o fix examples and cross references
o various cleanups
 1.60.12.1  03-Apr-2008  mjf Sync with HEAD.
 1.60.10.1  24-Mar-2008  keiichi sync with head.
 1.60.4.1  23-Mar-2008  matt sync with HEAD
 1.61.8.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.61.6.1  08-Mar-2011  riz Pull up following revision(s) (requested by dholland in ticket #1561):
sbin/disklabel/Makefile: revision 1.67
Disable COMPAT_386BSD_MBRPART. The code is still here if anyone needs it
for some reason. (But I have no idea why that would be -- if you have one
of these really ancient partitions and you're about to run disklabel, you
can easily run fdisk first and change the partition type to NetBSD.)
As it stands, the code will munch FreeBSD installs under some
circumstances, which is really not acceptable behavior.
The code, along with the kernel support that's been disabled by
default for several years, and some related but less dangerous code in
sysinst, should prboably be removed entirely after -6 is branched.
Discussed on tech-kern and tech-userlevel; closes PR 44496.
This is also almost certainly the cause of PR 42521 and PR 38841.
 1.66.2.1  17-Feb-2011  bouyer Sync with HEAD
 1.69.8.1  23-Jun-2013  tls resync from head
 1.69.2.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.73.4.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411

RSS XML Feed