History log of /netbsd-current/external/cddl/osnet/lib/libdtrace/Makefile
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.32 03-Jun-2023 lukem

adapt to ${CC_WNO_MAYBE_UNINITIALIZED}

Use ${CC_WNO_MAYBE_UNINITIALIZED} instead of
the older style more complex expressions.

Remove workarounds if they were for a specific
version of gcc < 10.


# 1.31 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.


Revision tags: netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.30 13-Apr-2021 mrg

XXX: ignore warning about overlapping buffers for sprintf().


# 1.29 29-Mar-2021 simonb

Compile MIPS specific code.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.28 17-Mar-2020 fox

external/cddl/osnet: Do not suppress the warning output for libdtrace.

Changed -Wno-maybe-uninitialized to -Wno-error=maybe-uninitialized to allow
warnings to be printed out during build.

Suggested by: christos@


# 1.27 17-Mar-2020 fox

external/cddl/osnet: Supress -Werror=maybe-uninitialized error in libdtrace.

It looks like this is a false positive, since the section of code triggering the error

external/cddl/osnet/dist/lib/libdtrace/common/dt_proc.c:400:42:

is only accessed after "err" is initialized.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@


Revision tags: is-mlppp-base
# 1.26 03-Dec-2019 jmcneill

dtrace: add support for aarch64


Revision tags: phil-wifi-20191119
# 1.25 13-Oct-2019 kre

This previously had -Wno-format-truncation so I am presuming it should
have been converted to GCC_NO_FORMAT_TRUNCATION rather than
GCC_NO_STRINGOP_TRUNCATION which is what happened. This might unbreak
the build (olr at least get it further).


# 1.24 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.23 10-Oct-2019 kre

Only exclude gcc-8 warnings when the gcc we're using is gcc>=8


# 1.22 09-Oct-2019 christos

no error for string truncation


Revision tags: netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.21 11-Feb-2019 tnn

branches: 1.21.2;
-Wno-format-truncation is only needed when using GCC


# 1.20 06-Feb-2019 christos

uses the idiom len = snprintf(&tmp, 1, ...) to compute length.
needs -Wno-format-truncation


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625
# 1.19 07-Jun-2018 kamil

branches: 1.19.2;
Replace HAVE_GCC with ACTIVE_CC == gcc checks

Kernel modules build with GCC and Clang/LLVM.

Requested by <joerg>


# 1.18 06-Jun-2018 kamil

Make cddl/osnet/lib/libdtrace buildable with MKLLVM=yes

Clang/LLVM does not recognize:
- -Wno-maybe-uninitialized
- -Wno-unused-but-set-variable

MKGCC=yes still builds the distribution.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>


# 1.17 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.16 19-Dec-2016 christos

branches: 1.16.12;
arrange for .in files to be rebuilt.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806
# 1.15 04-Aug-2016 christos

include bsd.init.mnk for consistency and set NOLINT since this overrides
MKLINT which can be re-set from /etc/mk.conf.


Revision tags: pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.14 05-Oct-2015 christos

branches: 1.14.2;
Arrange to install the dtrace files (some are broken, sets will need to be
fixed)


# 1.13 30-Sep-2015 christos

do the stack protector stuff like the other files.


# 1.12 29-Sep-2015 christos

- make the generated file rules depend on the source files
- hack for clang on Darwin


# 1.11 24-Sep-2015 christos

Add build stuff.


# 1.10 07-Feb-2015 christos

check and fix printf formats, negative array indices, uninitialized variables,
shadowed variables.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 tls-maxphys-base
# 1.9 16-Mar-2014 ozaki-r

Use MACHINE_CPU instead of MACHINE_ARCH with pattern matching

Include bsd.own.mk to use MACHINE_CPU.

Advised by matt@


# 1.8 16-Mar-2014 ozaki-r

Look up arm directory on MACHINE_ARCH=*arm*


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.7 21-Jun-2013 christos

Make dtrace/zfs compile on arm based on the diff from:
http://people.freebsd.org/~gonzo/arm/dtrace-arm.diff
Completely untested, kernel support not added.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.6 13-Feb-2012 wiz

branches: 1.6.6;
Use the correct MACHINE_ARCH for amd64.
Remove temporary hack while here.
From Henning Petersen in PR 46001.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 03-Apr-2010 christos

branches: 1.5.6;
- use CPPFLAGS instead of CFLAGS
- use relative .PATH


# 1.4 24-Feb-2010 tron

Disable stack protection warnings for more sources which use dynamically
sized stack buffers.


# 1.3 24-Feb-2010 tron

Disable stack protection warnings for sources which use dynamically
sized stack buffers.


# 1.2 21-Feb-2010 darran

Apply NetBSD changes to DTrace.

Ok with core@.


Revision tags: darran-pre-netbsd
# 1.1 21-Feb-2010 darran

Add the FreeBSD 8-RC1 changes for DTrace.

Ok with core@.


# 1.30 13-Apr-2021 mrg

XXX: ignore warning about overlapping buffers for sprintf().


# 1.29 29-Mar-2021 simonb

Compile MIPS specific code.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.28 17-Mar-2020 fox

external/cddl/osnet: Do not suppress the warning output for libdtrace.

Changed -Wno-maybe-uninitialized to -Wno-error=maybe-uninitialized to allow
warnings to be printed out during build.

Suggested by: christos@


# 1.27 17-Mar-2020 fox

external/cddl/osnet: Supress -Werror=maybe-uninitialized error in libdtrace.

It looks like this is a false positive, since the section of code triggering the error

external/cddl/osnet/dist/lib/libdtrace/common/dt_proc.c:400:42:

is only accessed after "err" is initialized.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@


Revision tags: is-mlppp-base
# 1.26 03-Dec-2019 jmcneill

dtrace: add support for aarch64


Revision tags: phil-wifi-20191119
# 1.25 13-Oct-2019 kre

This previously had -Wno-format-truncation so I am presuming it should
have been converted to GCC_NO_FORMAT_TRUNCATION rather than
GCC_NO_STRINGOP_TRUNCATION which is what happened. This might unbreak
the build (olr at least get it further).


# 1.24 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.23 10-Oct-2019 kre

Only exclude gcc-8 warnings when the gcc we're using is gcc>=8


# 1.22 09-Oct-2019 christos

no error for string truncation


Revision tags: netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.21 11-Feb-2019 tnn

branches: 1.21.2;
-Wno-format-truncation is only needed when using GCC


# 1.20 06-Feb-2019 christos

uses the idiom len = snprintf(&tmp, 1, ...) to compute length.
needs -Wno-format-truncation


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625
# 1.19 07-Jun-2018 kamil

branches: 1.19.2;
Replace HAVE_GCC with ACTIVE_CC == gcc checks

Kernel modules build with GCC and Clang/LLVM.

Requested by <joerg>


# 1.18 06-Jun-2018 kamil

Make cddl/osnet/lib/libdtrace buildable with MKLLVM=yes

Clang/LLVM does not recognize:
- -Wno-maybe-uninitialized
- -Wno-unused-but-set-variable

MKGCC=yes still builds the distribution.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>


# 1.17 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.16 19-Dec-2016 christos

branches: 1.16.12;
arrange for .in files to be rebuilt.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806
# 1.15 04-Aug-2016 christos

include bsd.init.mnk for consistency and set NOLINT since this overrides
MKLINT which can be re-set from /etc/mk.conf.


Revision tags: pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.14 05-Oct-2015 christos

branches: 1.14.2;
Arrange to install the dtrace files (some are broken, sets will need to be
fixed)


# 1.13 30-Sep-2015 christos

do the stack protector stuff like the other files.


# 1.12 29-Sep-2015 christos

- make the generated file rules depend on the source files
- hack for clang on Darwin


# 1.11 24-Sep-2015 christos

Add build stuff.


# 1.10 07-Feb-2015 christos

check and fix printf formats, negative array indices, uninitialized variables,
shadowed variables.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 tls-maxphys-base
# 1.9 16-Mar-2014 ozaki-r

Use MACHINE_CPU instead of MACHINE_ARCH with pattern matching

Include bsd.own.mk to use MACHINE_CPU.

Advised by matt@


# 1.8 16-Mar-2014 ozaki-r

Look up arm directory on MACHINE_ARCH=*arm*


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.7 21-Jun-2013 christos

Make dtrace/zfs compile on arm based on the diff from:
http://people.freebsd.org/~gonzo/arm/dtrace-arm.diff
Completely untested, kernel support not added.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.6 13-Feb-2012 wiz

branches: 1.6.6;
Use the correct MACHINE_ARCH for amd64.
Remove temporary hack while here.
From Henning Petersen in PR 46001.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 03-Apr-2010 christos

branches: 1.5.6;
- use CPPFLAGS instead of CFLAGS
- use relative .PATH


# 1.4 24-Feb-2010 tron

Disable stack protection warnings for more sources which use dynamically
sized stack buffers.


# 1.3 24-Feb-2010 tron

Disable stack protection warnings for sources which use dynamically
sized stack buffers.


# 1.2 21-Feb-2010 darran

Apply NetBSD changes to DTrace.

Ok with core@.


Revision tags: darran-pre-netbsd
# 1.1 21-Feb-2010 darran

Add the FreeBSD 8-RC1 changes for DTrace.

Ok with core@.


# 1.29 29-Mar-2021 simonb

Compile MIPS specific code.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.28 17-Mar-2020 fox

external/cddl/osnet: Do not suppress the warning output for libdtrace.

Changed -Wno-maybe-uninitialized to -Wno-error=maybe-uninitialized to allow
warnings to be printed out during build.

Suggested by: christos@


# 1.27 17-Mar-2020 fox

external/cddl/osnet: Supress -Werror=maybe-uninitialized error in libdtrace.

It looks like this is a false positive, since the section of code triggering the error

external/cddl/osnet/dist/lib/libdtrace/common/dt_proc.c:400:42:

is only accessed after "err" is initialized.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@


Revision tags: is-mlppp-base
# 1.26 03-Dec-2019 jmcneill

dtrace: add support for aarch64


Revision tags: phil-wifi-20191119
# 1.25 13-Oct-2019 kre

This previously had -Wno-format-truncation so I am presuming it should
have been converted to GCC_NO_FORMAT_TRUNCATION rather than
GCC_NO_STRINGOP_TRUNCATION which is what happened. This might unbreak
the build (olr at least get it further).


# 1.24 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.23 10-Oct-2019 kre

Only exclude gcc-8 warnings when the gcc we're using is gcc>=8


# 1.22 09-Oct-2019 christos

no error for string truncation


Revision tags: netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.21 11-Feb-2019 tnn

branches: 1.21.2;
-Wno-format-truncation is only needed when using GCC


# 1.20 06-Feb-2019 christos

uses the idiom len = snprintf(&tmp, 1, ...) to compute length.
needs -Wno-format-truncation


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625
# 1.19 07-Jun-2018 kamil

branches: 1.19.2;
Replace HAVE_GCC with ACTIVE_CC == gcc checks

Kernel modules build with GCC and Clang/LLVM.

Requested by <joerg>


# 1.18 06-Jun-2018 kamil

Make cddl/osnet/lib/libdtrace buildable with MKLLVM=yes

Clang/LLVM does not recognize:
- -Wno-maybe-uninitialized
- -Wno-unused-but-set-variable

MKGCC=yes still builds the distribution.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>


# 1.17 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.16 19-Dec-2016 christos

branches: 1.16.12;
arrange for .in files to be rebuilt.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806
# 1.15 04-Aug-2016 christos

include bsd.init.mnk for consistency and set NOLINT since this overrides
MKLINT which can be re-set from /etc/mk.conf.


Revision tags: pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.14 05-Oct-2015 christos

branches: 1.14.2;
Arrange to install the dtrace files (some are broken, sets will need to be
fixed)


# 1.13 30-Sep-2015 christos

do the stack protector stuff like the other files.


# 1.12 29-Sep-2015 christos

- make the generated file rules depend on the source files
- hack for clang on Darwin


# 1.11 24-Sep-2015 christos

Add build stuff.


# 1.10 07-Feb-2015 christos

check and fix printf formats, negative array indices, uninitialized variables,
shadowed variables.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 tls-maxphys-base
# 1.9 16-Mar-2014 ozaki-r

Use MACHINE_CPU instead of MACHINE_ARCH with pattern matching

Include bsd.own.mk to use MACHINE_CPU.

Advised by matt@


# 1.8 16-Mar-2014 ozaki-r

Look up arm directory on MACHINE_ARCH=*arm*


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.7 21-Jun-2013 christos

Make dtrace/zfs compile on arm based on the diff from:
http://people.freebsd.org/~gonzo/arm/dtrace-arm.diff
Completely untested, kernel support not added.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.6 13-Feb-2012 wiz

branches: 1.6.6;
Use the correct MACHINE_ARCH for amd64.
Remove temporary hack while here.
From Henning Petersen in PR 46001.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 03-Apr-2010 christos

branches: 1.5.6;
- use CPPFLAGS instead of CFLAGS
- use relative .PATH


# 1.4 24-Feb-2010 tron

Disable stack protection warnings for more sources which use dynamically
sized stack buffers.


# 1.3 24-Feb-2010 tron

Disable stack protection warnings for sources which use dynamically
sized stack buffers.


# 1.2 21-Feb-2010 darran

Apply NetBSD changes to DTrace.

Ok with core@.


Revision tags: darran-pre-netbsd
# 1.1 21-Feb-2010 darran

Add the FreeBSD 8-RC1 changes for DTrace.

Ok with core@.


# 1.28 17-Mar-2020 fox

external/cddl/osnet: Do not suppress the warning output for libdtrace.

Changed -Wno-maybe-uninitialized to -Wno-error=maybe-uninitialized to allow
warnings to be printed out during build.

Suggested by: christos@


# 1.27 17-Mar-2020 fox

external/cddl/osnet: Supress -Werror=maybe-uninitialized error in libdtrace.

It looks like this is a false positive, since the section of code triggering the error

external/cddl/osnet/dist/lib/libdtrace/common/dt_proc.c:400:42:

is only accessed after "err" is initialized.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@


# 1.26 03-Dec-2019 jmcneill

dtrace: add support for aarch64


Revision tags: phil-wifi-20191119
# 1.25 13-Oct-2019 kre

This previously had -Wno-format-truncation so I am presuming it should
have been converted to GCC_NO_FORMAT_TRUNCATION rather than
GCC_NO_STRINGOP_TRUNCATION which is what happened. This might unbreak
the build (olr at least get it further).


# 1.24 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.23 10-Oct-2019 kre

Only exclude gcc-8 warnings when the gcc we're using is gcc>=8


# 1.22 09-Oct-2019 christos

no error for string truncation


Revision tags: netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.21 11-Feb-2019 tnn

branches: 1.21.2;
-Wno-format-truncation is only needed when using GCC


# 1.20 06-Feb-2019 christos

uses the idiom len = snprintf(&tmp, 1, ...) to compute length.
needs -Wno-format-truncation


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625
# 1.19 07-Jun-2018 kamil

branches: 1.19.2;
Replace HAVE_GCC with ACTIVE_CC == gcc checks

Kernel modules build with GCC and Clang/LLVM.

Requested by <joerg>


# 1.18 06-Jun-2018 kamil

Make cddl/osnet/lib/libdtrace buildable with MKLLVM=yes

Clang/LLVM does not recognize:
- -Wno-maybe-uninitialized
- -Wno-unused-but-set-variable

MKGCC=yes still builds the distribution.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>


# 1.17 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.16 19-Dec-2016 christos

branches: 1.16.12;
arrange for .in files to be rebuilt.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806
# 1.15 04-Aug-2016 christos

include bsd.init.mnk for consistency and set NOLINT since this overrides
MKLINT which can be re-set from /etc/mk.conf.


Revision tags: pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.14 05-Oct-2015 christos

branches: 1.14.2;
Arrange to install the dtrace files (some are broken, sets will need to be
fixed)


# 1.13 30-Sep-2015 christos

do the stack protector stuff like the other files.


# 1.12 29-Sep-2015 christos

- make the generated file rules depend on the source files
- hack for clang on Darwin


# 1.11 24-Sep-2015 christos

Add build stuff.


# 1.10 07-Feb-2015 christos

check and fix printf formats, negative array indices, uninitialized variables,
shadowed variables.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 tls-maxphys-base
# 1.9 16-Mar-2014 ozaki-r

Use MACHINE_CPU instead of MACHINE_ARCH with pattern matching

Include bsd.own.mk to use MACHINE_CPU.

Advised by matt@


# 1.8 16-Mar-2014 ozaki-r

Look up arm directory on MACHINE_ARCH=*arm*


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.7 21-Jun-2013 christos

Make dtrace/zfs compile on arm based on the diff from:
http://people.freebsd.org/~gonzo/arm/dtrace-arm.diff
Completely untested, kernel support not added.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.6 13-Feb-2012 wiz

branches: 1.6.6;
Use the correct MACHINE_ARCH for amd64.
Remove temporary hack while here.
From Henning Petersen in PR 46001.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 03-Apr-2010 christos

branches: 1.5.6;
- use CPPFLAGS instead of CFLAGS
- use relative .PATH


# 1.4 24-Feb-2010 tron

Disable stack protection warnings for more sources which use dynamically
sized stack buffers.


# 1.3 24-Feb-2010 tron

Disable stack protection warnings for sources which use dynamically
sized stack buffers.


# 1.2 21-Feb-2010 darran

Apply NetBSD changes to DTrace.

Ok with core@.


Revision tags: darran-pre-netbsd
# 1.1 21-Feb-2010 darran

Add the FreeBSD 8-RC1 changes for DTrace.

Ok with core@.


# 1.26 03-Dec-2019 jmcneill

dtrace: add support for aarch64


Revision tags: phil-wifi-20191119
# 1.25 13-Oct-2019 kre

This previously had -Wno-format-truncation so I am presuming it should
have been converted to GCC_NO_FORMAT_TRUNCATION rather than
GCC_NO_STRINGOP_TRUNCATION which is what happened. This might unbreak
the build (olr at least get it further).


# 1.24 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.23 10-Oct-2019 kre

Only exclude gcc-8 warnings when the gcc we're using is gcc>=8


# 1.22 09-Oct-2019 christos

no error for string truncation


Revision tags: netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609
# 1.21 11-Feb-2019 tnn

-Wno-format-truncation is only needed when using GCC


# 1.20 06-Feb-2019 christos

uses the idiom len = snprintf(&tmp, 1, ...) to compute length.
needs -Wno-format-truncation


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625
# 1.19 07-Jun-2018 kamil

branches: 1.19.2;
Replace HAVE_GCC with ACTIVE_CC == gcc checks

Kernel modules build with GCC and Clang/LLVM.

Requested by <joerg>


# 1.18 06-Jun-2018 kamil

Make cddl/osnet/lib/libdtrace buildable with MKLLVM=yes

Clang/LLVM does not recognize:
- -Wno-maybe-uninitialized
- -Wno-unused-but-set-variable

MKGCC=yes still builds the distribution.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>


# 1.17 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.16 19-Dec-2016 christos

branches: 1.16.12;
arrange for .in files to be rebuilt.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806
# 1.15 04-Aug-2016 christos

include bsd.init.mnk for consistency and set NOLINT since this overrides
MKLINT which can be re-set from /etc/mk.conf.


Revision tags: pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.14 05-Oct-2015 christos

branches: 1.14.2;
Arrange to install the dtrace files (some are broken, sets will need to be
fixed)


# 1.13 30-Sep-2015 christos

do the stack protector stuff like the other files.


# 1.12 29-Sep-2015 christos

- make the generated file rules depend on the source files
- hack for clang on Darwin


# 1.11 24-Sep-2015 christos

Add build stuff.


# 1.10 07-Feb-2015 christos

check and fix printf formats, negative array indices, uninitialized variables,
shadowed variables.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 tls-maxphys-base
# 1.9 16-Mar-2014 ozaki-r

Use MACHINE_CPU instead of MACHINE_ARCH with pattern matching

Include bsd.own.mk to use MACHINE_CPU.

Advised by matt@


# 1.8 16-Mar-2014 ozaki-r

Look up arm directory on MACHINE_ARCH=*arm*


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.7 21-Jun-2013 christos

Make dtrace/zfs compile on arm based on the diff from:
http://people.freebsd.org/~gonzo/arm/dtrace-arm.diff
Completely untested, kernel support not added.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.6 13-Feb-2012 wiz

branches: 1.6.6;
Use the correct MACHINE_ARCH for amd64.
Remove temporary hack while here.
From Henning Petersen in PR 46001.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 03-Apr-2010 christos

branches: 1.5.6;
- use CPPFLAGS instead of CFLAGS
- use relative .PATH


# 1.4 24-Feb-2010 tron

Disable stack protection warnings for more sources which use dynamically
sized stack buffers.


# 1.3 24-Feb-2010 tron

Disable stack protection warnings for sources which use dynamically
sized stack buffers.


# 1.2 21-Feb-2010 darran

Apply NetBSD changes to DTrace.

Ok with core@.


Revision tags: darran-pre-netbsd
# 1.1 21-Feb-2010 darran

Add the FreeBSD 8-RC1 changes for DTrace.

Ok with core@.


# 1.25 13-Oct-2019 kre

This previously had -Wno-format-truncation so I am presuming it should
have been converted to GCC_NO_FORMAT_TRUNCATION rather than
GCC_NO_STRINGOP_TRUNCATION which is what happened. This might unbreak
the build (olr at least get it further).


# 1.24 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.23 10-Oct-2019 kre

Only exclude gcc-8 warnings when the gcc we're using is gcc>=8


# 1.22 09-Oct-2019 christos

no error for string truncation


Revision tags: netbsd-9-base phil-wifi-20190609
# 1.21 11-Feb-2019 tnn

-Wno-format-truncation is only needed when using GCC


# 1.20 06-Feb-2019 christos

uses the idiom len = snprintf(&tmp, 1, ...) to compute length.
needs -Wno-format-truncation


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625
# 1.19 07-Jun-2018 kamil

branches: 1.19.2;
Replace HAVE_GCC with ACTIVE_CC == gcc checks

Kernel modules build with GCC and Clang/LLVM.

Requested by <joerg>


# 1.18 06-Jun-2018 kamil

Make cddl/osnet/lib/libdtrace buildable with MKLLVM=yes

Clang/LLVM does not recognize:
- -Wno-maybe-uninitialized
- -Wno-unused-but-set-variable

MKGCC=yes still builds the distribution.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>


# 1.17 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.16 19-Dec-2016 christos

branches: 1.16.12;
arrange for .in files to be rebuilt.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806
# 1.15 04-Aug-2016 christos

include bsd.init.mnk for consistency and set NOLINT since this overrides
MKLINT which can be re-set from /etc/mk.conf.


Revision tags: pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.14 05-Oct-2015 christos

branches: 1.14.2;
Arrange to install the dtrace files (some are broken, sets will need to be
fixed)


# 1.13 30-Sep-2015 christos

do the stack protector stuff like the other files.


# 1.12 29-Sep-2015 christos

- make the generated file rules depend on the source files
- hack for clang on Darwin


# 1.11 24-Sep-2015 christos

Add build stuff.


# 1.10 07-Feb-2015 christos

check and fix printf formats, negative array indices, uninitialized variables,
shadowed variables.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 tls-maxphys-base
# 1.9 16-Mar-2014 ozaki-r

Use MACHINE_CPU instead of MACHINE_ARCH with pattern matching

Include bsd.own.mk to use MACHINE_CPU.

Advised by matt@


# 1.8 16-Mar-2014 ozaki-r

Look up arm directory on MACHINE_ARCH=*arm*


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.7 21-Jun-2013 christos

Make dtrace/zfs compile on arm based on the diff from:
http://people.freebsd.org/~gonzo/arm/dtrace-arm.diff
Completely untested, kernel support not added.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.6 13-Feb-2012 wiz

branches: 1.6.6;
Use the correct MACHINE_ARCH for amd64.
Remove temporary hack while here.
From Henning Petersen in PR 46001.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 03-Apr-2010 christos

branches: 1.5.6;
- use CPPFLAGS instead of CFLAGS
- use relative .PATH


# 1.4 24-Feb-2010 tron

Disable stack protection warnings for more sources which use dynamically
sized stack buffers.


# 1.3 24-Feb-2010 tron

Disable stack protection warnings for sources which use dynamically
sized stack buffers.


# 1.2 21-Feb-2010 darran

Apply NetBSD changes to DTrace.

Ok with core@.


Revision tags: darran-pre-netbsd
# 1.1 21-Feb-2010 darran

Add the FreeBSD 8-RC1 changes for DTrace.

Ok with core@.


# 1.23 10-Oct-2019 kre

Only exclude gcc-8 warnings when the gcc we're using is gcc>=8


# 1.22 09-Oct-2019 christos

no error for string truncation


Revision tags: netbsd-9-base phil-wifi-20190609
# 1.21 11-Feb-2019 tnn

-Wno-format-truncation is only needed when using GCC


# 1.20 06-Feb-2019 christos

uses the idiom len = snprintf(&tmp, 1, ...) to compute length.
needs -Wno-format-truncation


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625
# 1.19 07-Jun-2018 kamil

branches: 1.19.2;
Replace HAVE_GCC with ACTIVE_CC == gcc checks

Kernel modules build with GCC and Clang/LLVM.

Requested by <joerg>


# 1.18 06-Jun-2018 kamil

Make cddl/osnet/lib/libdtrace buildable with MKLLVM=yes

Clang/LLVM does not recognize:
- -Wno-maybe-uninitialized
- -Wno-unused-but-set-variable

MKGCC=yes still builds the distribution.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>


# 1.17 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.16 19-Dec-2016 christos

branches: 1.16.12;
arrange for .in files to be rebuilt.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806
# 1.15 04-Aug-2016 christos

include bsd.init.mnk for consistency and set NOLINT since this overrides
MKLINT which can be re-set from /etc/mk.conf.


Revision tags: pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.14 05-Oct-2015 christos

branches: 1.14.2;
Arrange to install the dtrace files (some are broken, sets will need to be
fixed)


# 1.13 30-Sep-2015 christos

do the stack protector stuff like the other files.


# 1.12 29-Sep-2015 christos

- make the generated file rules depend on the source files
- hack for clang on Darwin


# 1.11 24-Sep-2015 christos

Add build stuff.


# 1.10 07-Feb-2015 christos

check and fix printf formats, negative array indices, uninitialized variables,
shadowed variables.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 tls-maxphys-base
# 1.9 16-Mar-2014 ozaki-r

Use MACHINE_CPU instead of MACHINE_ARCH with pattern matching

Include bsd.own.mk to use MACHINE_CPU.

Advised by matt@


# 1.8 16-Mar-2014 ozaki-r

Look up arm directory on MACHINE_ARCH=*arm*


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.7 21-Jun-2013 christos

Make dtrace/zfs compile on arm based on the diff from:
http://people.freebsd.org/~gonzo/arm/dtrace-arm.diff
Completely untested, kernel support not added.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.6 13-Feb-2012 wiz

branches: 1.6.6;
Use the correct MACHINE_ARCH for amd64.
Remove temporary hack while here.
From Henning Petersen in PR 46001.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 03-Apr-2010 christos

branches: 1.5.6;
- use CPPFLAGS instead of CFLAGS
- use relative .PATH


# 1.4 24-Feb-2010 tron

Disable stack protection warnings for more sources which use dynamically
sized stack buffers.


# 1.3 24-Feb-2010 tron

Disable stack protection warnings for sources which use dynamically
sized stack buffers.


# 1.2 21-Feb-2010 darran

Apply NetBSD changes to DTrace.

Ok with core@.


Revision tags: darran-pre-netbsd
# 1.1 21-Feb-2010 darran

Add the FreeBSD 8-RC1 changes for DTrace.

Ok with core@.


# 1.21 11-Feb-2019 tnn

-Wno-format-truncation is only needed when using GCC


# 1.20 06-Feb-2019 christos

uses the idiom len = snprintf(&tmp, 1, ...) to compute length.
needs -Wno-format-truncation


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625
# 1.19 07-Jun-2018 kamil

Replace HAVE_GCC with ACTIVE_CC == gcc checks

Kernel modules build with GCC and Clang/LLVM.

Requested by <joerg>


# 1.18 06-Jun-2018 kamil

Make cddl/osnet/lib/libdtrace buildable with MKLLVM=yes

Clang/LLVM does not recognize:
- -Wno-maybe-uninitialized
- -Wno-unused-but-set-variable

MKGCC=yes still builds the distribution.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>


# 1.17 28-May-2018 chs

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().


Revision tags: netbsd-8-0-RELEASE netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.16 19-Dec-2016 christos

branches: 1.16.12;
arrange for .in files to be rebuilt.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806
# 1.15 04-Aug-2016 christos

include bsd.init.mnk for consistency and set NOLINT since this overrides
MKLINT which can be re-set from /etc/mk.conf.


Revision tags: pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.14 05-Oct-2015 christos

branches: 1.14.2;
Arrange to install the dtrace files (some are broken, sets will need to be
fixed)


# 1.13 30-Sep-2015 christos

do the stack protector stuff like the other files.


# 1.12 29-Sep-2015 christos

- make the generated file rules depend on the source files
- hack for clang on Darwin


# 1.11 24-Sep-2015 christos

Add build stuff.


# 1.10 07-Feb-2015 christos

check and fix printf formats, negative array indices, uninitialized variables,
shadowed variables.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 tls-maxphys-base
# 1.9 16-Mar-2014 ozaki-r

Use MACHINE_CPU instead of MACHINE_ARCH with pattern matching

Include bsd.own.mk to use MACHINE_CPU.

Advised by matt@


# 1.8 16-Mar-2014 ozaki-r

Look up arm directory on MACHINE_ARCH=*arm*


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.7 21-Jun-2013 christos

Make dtrace/zfs compile on arm based on the diff from:
http://people.freebsd.org/~gonzo/arm/dtrace-arm.diff
Completely untested, kernel support not added.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.6 13-Feb-2012 wiz

branches: 1.6.6;
Use the correct MACHINE_ARCH for amd64.
Remove temporary hack while here.
From Henning Petersen in PR 46001.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 03-Apr-2010 christos

branches: 1.5.6;
- use CPPFLAGS instead of CFLAGS
- use relative .PATH


# 1.4 24-Feb-2010 tron

Disable stack protection warnings for more sources which use dynamically
sized stack buffers.


# 1.3 24-Feb-2010 tron

Disable stack protection warnings for sources which use dynamically
sized stack buffers.


# 1.2 21-Feb-2010 darran

Apply NetBSD changes to DTrace.

Ok with core@.


Revision tags: darran-pre-netbsd
# 1.1 21-Feb-2010 darran

Add the FreeBSD 8-RC1 changes for DTrace.

Ok with core@.


# 1.16 19-Dec-2016 christos

arrange for .in files to be rebuilt.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806
# 1.15 04-Aug-2016 christos

include bsd.init.mnk for consistency and set NOLINT since this overrides
MKLINT which can be re-set from /etc/mk.conf.


Revision tags: pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.14 05-Oct-2015 christos

branches: 1.14.2;
Arrange to install the dtrace files (some are broken, sets will need to be
fixed)


# 1.13 30-Sep-2015 christos

do the stack protector stuff like the other files.


# 1.12 29-Sep-2015 christos

- make the generated file rules depend on the source files
- hack for clang on Darwin


# 1.11 24-Sep-2015 christos

Add build stuff.


# 1.10 07-Feb-2015 christos

check and fix printf formats, negative array indices, uninitialized variables,
shadowed variables.


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 tls-maxphys-base
# 1.9 16-Mar-2014 ozaki-r

Use MACHINE_CPU instead of MACHINE_ARCH with pattern matching

Include bsd.own.mk to use MACHINE_CPU.

Advised by matt@


# 1.8 16-Mar-2014 ozaki-r

Look up arm directory on MACHINE_ARCH=*arm*


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.7 21-Jun-2013 christos

Make dtrace/zfs compile on arm based on the diff from:
http://people.freebsd.org/~gonzo/arm/dtrace-arm.diff
Completely untested, kernel support not added.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.6 13-Feb-2012 wiz

branches: 1.6.6;
Use the correct MACHINE_ARCH for amd64.
Remove temporary hack while here.
From Henning Petersen in PR 46001.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 03-Apr-2010 christos

branches: 1.5.6;
- use CPPFLAGS instead of CFLAGS
- use relative .PATH


# 1.4 24-Feb-2010 tron

Disable stack protection warnings for more sources which use dynamically
sized stack buffers.


# 1.3 24-Feb-2010 tron

Disable stack protection warnings for sources which use dynamically
sized stack buffers.


# 1.2 21-Feb-2010 darran

Apply NetBSD changes to DTrace.

Ok with core@.


Revision tags: darran-pre-netbsd
# 1.1 21-Feb-2010 darran

Add the FreeBSD 8-RC1 changes for DTrace.

Ok with core@.


# 1.14 05-Oct-2015 christos

Arrange to install the dtrace files (some are broken, sets will need to be
fixed)


# 1.13 29-Sep-2015 christos

do the stack protector stuff like the other files.


# 1.12 29-Sep-2015 christos

- make the generated file rules depend on the source files
- hack for clang on Darwin


# 1.11 24-Sep-2015 christos

Add build stuff.


# 1.10 07-Feb-2015 christos

check and fix printf formats, negative array indices, uninitialized variables,
shadowed variables.


Revision tags: netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 tls-maxphys-base
# 1.9 16-Mar-2014 ozaki-r

Use MACHINE_CPU instead of MACHINE_ARCH with pattern matching

Include bsd.own.mk to use MACHINE_CPU.

Advised by matt@


# 1.8 15-Mar-2014 ozaki-r

Look up arm directory on MACHINE_ARCH=*arm*


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.7 21-Jun-2013 christos

Make dtrace/zfs compile on arm based on the diff from:
http://people.freebsd.org/~gonzo/arm/dtrace-arm.diff
Completely untested, kernel support not added.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.6 13-Feb-2012 wiz

branches: 1.6.6;
Use the correct MACHINE_ARCH for amd64.
Remove temporary hack while here.
From Henning Petersen in PR 46001.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 03-Apr-2010 christos

branches: 1.5.6;
- use CPPFLAGS instead of CFLAGS
- use relative .PATH


# 1.4 24-Feb-2010 tron

Disable stack protection warnings for more sources which use dynamically
sized stack buffers.


# 1.3 24-Feb-2010 tron

Disable stack protection warnings for sources which use dynamically
sized stack buffers.


# 1.2 20-Feb-2010 darran

Apply NetBSD changes to DTrace.

Ok with core@.


Revision tags: darran-pre-netbsd
# 1.1 20-Feb-2010 darran

Add the FreeBSD 8-RC1 changes for DTrace.

Ok with core@.


# 1.13 29-Sep-2015 christos

do the stack protector stuff like the other files.


# 1.12 29-Sep-2015 christos

- make the generated file rules depend on the source files
- hack for clang on Darwin


# 1.11 24-Sep-2015 christos

Add build stuff.


# 1.10 07-Feb-2015 christos

check and fix printf formats, negative array indices, uninitialized variables,
shadowed variables.


# 1.9 16-Mar-2014 ozaki-r

Use MACHINE_CPU instead of MACHINE_ARCH with pattern matching

Include bsd.own.mk to use MACHINE_CPU.

Advised by matt@


# 1.8 15-Mar-2014 ozaki-r

Look up arm directory on MACHINE_ARCH=*arm*


# 1.7 21-Jun-2013 christos

Make dtrace/zfs compile on arm based on the diff from:
http://people.freebsd.org/~gonzo/arm/dtrace-arm.diff
Completely untested, kernel support not added.


# 1.6 13-Feb-2012 wiz

branches: 1.6.6;
Use the correct MACHINE_ARCH for amd64.
Remove temporary hack while here.
From Henning Petersen in PR 46001.


# 1.5 03-Apr-2010 christos

branches: 1.5.6;
- use CPPFLAGS instead of CFLAGS
- use relative .PATH


# 1.4 24-Feb-2010 tron

Disable stack protection warnings for more sources which use dynamically
sized stack buffers.


# 1.3 24-Feb-2010 tron

Disable stack protection warnings for sources which use dynamically
sized stack buffers.


# 1.2 20-Feb-2010 darran

Apply NetBSD changes to DTrace.

Ok with core@.


# 1.1 20-Feb-2010 darran

Add the FreeBSD 8-RC1 changes for DTrace.

Ok with core@.


# 1.5.6.2 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.5.6.1 16-Apr-2012 yamt

sync with head


# 1.6.6.2 19-Aug-2014 tls

Rebase to HEAD as of a few days ago.


# 1.6.6.1 23-Jun-2013 tls

resync from head