History log of /freebsd/sys/conf/kern.post.mk (Results 51 – 75 of 461)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 2a22df74 04-Nov-2018 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r339813 through r340125.


# 58b6812d 30-Oct-2018 John Baldwin <jhb@FreeBSD.org>

Only invoke 'ls' if the local modules directory exists.

This avoids a spurious make warning if /usr/local/sys/modules doesn't
exist.

Submitted by: rgrimes
Reported by: markj


# cd785c1b 30-Oct-2018 John Baldwin <jhb@FreeBSD.org>

Permit local kernel modules to be built as part of a kernel build.

Add support for "local" modules. By default, these modules are
located in LOCALBASE/sys/modules (where LOCALBASE defaults to
/usr/

Permit local kernel modules to be built as part of a kernel build.

Add support for "local" modules. By default, these modules are
located in LOCALBASE/sys/modules (where LOCALBASE defaults to
/usr/local). Individual modules can be built along with a kernel by
defining LOCAL_MODULES to the list of modules. Each is assumed to be
a subdirectory containing a valid Makefile. If LOCAL_MODULES is not
specified, all of the modules present in LOCALBASE/sys/modules are
built and installed along with the kernel.

This means that a port that installs a kernel module can choose to
install its source along with a suitable Makefile to
/usr/local/sys/modules/<foo>. Future kernel builds will then include
that kernel module using the kernel configuration's opt_*.h headers
and install it into /boot/kernel along with other kernel-specific
modules.

This is not trying to solve the issue of folks running GENERIC release
kernels, but is instead aimed at folks who build their own kernels.
For those folks this ensures that kernel modules from ports will
always be using the right KBI, etc. This includes folks running any
KBI-breaking kernel configs (such as PAE).

There are still some kinks to be worked out with cross-building (we
probably shouldn't include local modules in cross-built kernels by
default), but this is a sufficient starting point.

Reviewed by: imp
MFC after: 3 months
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D16966

show more ...


# c0b5e991 14-Sep-2018 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r338595 through r338689, and resolve conflicts.


# 08d0704d 11-Sep-2018 Ed Maste <emaste@FreeBSD.org>

Switch reproducible builds to unmodified src tree mode

newvers.sh supports two modes for reproducible builds:

-r Reproducible build. Do not embed directory names, user
names, time stamp

Switch reproducible builds to unmodified src tree mode

newvers.sh supports two modes for reproducible builds:

-r Reproducible build. Do not embed directory names, user
names, time stamps or other dynamic information into
the output file. This is intended to allow two builds
done at different times and even by different people on
different hosts to produce identical output.

-R Reproducible build if the tree represents an unmodified
checkout from a version control system. Metadata is
included if the tree is modified.

Switch to the second mode when reproducible builds are enabled.
The value of a reproducible build is much less when building from an
uncontrolled, modified src tree, and -R likely provides the best
compromise in allowing the REPRODUCIBLE_BUILD knob to be enabled by
default for the release.

Approved by: re (kib)
Sponsored by: The FreeBSD Foundation

show more ...


# 817f7baa 04-Jul-2018 Bryan Drewery <bdrewery@FreeBSD.org>

Use OBJS_DEPEND_GUESS for forced opt_global.h dependency.

MFC after: 2 weeks
Sponsored by: Dell EMC


# 9f7b089e 04-Jul-2018 Matt Macy <mmacy@FreeBSD.org>

Enable MODULE_TIED by default for modules compiled with the kernel

Requested by: jhb


# cd1acc77 03-Jul-2018 Bryan Drewery <bdrewery@FreeBSD.org>

Fix .depend.foo.o tracking for sys/conf/files defined compilations.

Some example files:
ia32_genassym.o
acpi_wakecode.o

The old mkdep method also lacked tracking these files.

Objects defined i

Fix .depend.foo.o tracking for sys/conf/files defined compilations.

Some example files:
ia32_genassym.o
acpi_wakecode.o

The old mkdep method also lacked tracking these files.

Objects defined in sys/conf/files with no-obj and no-implicit-rule get their
own targets defined in the kernel Makefile but lack having their objects added
to DEPENDOBJS so never get a .depend file generated. Normally if an object is
in OBJS it will get a .depend file.

Fix this by looking for .o files in CLEAN and ensuring they are part of
the -MD filtering and .depend loading. This is a hack. Other solutions
could exist involving sys/conf/files or config(8) to auto add these to
DEPENDFILES/DEPENDOBJS but this method seems reliable enough without being
intrusive or error-prone for new files.

Reported by: bde
MFC after: 3 weeks
Sponsored by: Dell EMC

show more ...


# 44e41648 03-Jul-2018 Bryan Drewery <bdrewery@FreeBSD.org>

Fix r335906+r335907 to not pass multiple source files to genoffset_test.o target.

This is working around a bug with the FAST_DEPEND logic with custom targets
that use .ALLSRC.

Reported by: mmacy


# a46134b6 03-Jul-2018 Bryan Drewery <bdrewery@FreeBSD.org>

Handle .depend for genoffset_test.o


# 4cee7eae 03-Jul-2018 Bryan Drewery <bdrewery@FreeBSD.org>

No need to make a copy to build genoffset_test.o


# 018617b8 03-Jul-2018 Matt Macy <mmacy@FreeBSD.org>

explain the purpose of genoffset_test


# 87c259d4 03-Jul-2018 Matt Macy <mmacy@FreeBSD.org>

ensure that offset.inc is generated first


# 6443773d 03-Jul-2018 Matt Macy <mmacy@FreeBSD.org>

make critical_{enter, exit} inline

Avoid pulling in all of the <sys/proc.h> dependencies by
automatically generating a stripped down thread_lite exporting
only the fields of interest. The field decl

make critical_{enter, exit} inline

Avoid pulling in all of the <sys/proc.h> dependencies by
automatically generating a stripped down thread_lite exporting
only the fields of interest. The field declarations are type checked
against the original and the offsets of the generated result is
automatically checked.

kib has expressed disagreement and would have preferred to simply
use genassym style offsets (which loses type check enforcement).
jhb has expressed dislike of it due to header pollution and a
duplicate structure. He would have preferred to just have defined
thread in _thread.h. Nonetheless, he admits that this is the only
viable solution at the moment.

The impetus for this came from mjg's D15331:
"Inline critical_enter/exit for amd64"

Reviewed by: jeff
Differential Revision: https://reviews.freebsd.org/D16078

show more ...


Revision tags: release/11.2.0
# 28da5c6d 31-Mar-2018 Jason A. Harmening <jah@FreeBSD.org>

Remove MK_AUTO_OBJ from env passed to PORTS_MODULES

This fixes a failure to resolve object file paths seen when buildkernel
(which sets MK_AUTO_OBJ=yes) and installkernel (which sets MK_AUTO_OBJ=no)

Remove MK_AUTO_OBJ from env passed to PORTS_MODULES

This fixes a failure to resolve object file paths seen when buildkernel
(which sets MK_AUTO_OBJ=yes) and installkernel (which sets MK_AUTO_OBJ=no)
are run as separate steps. r329232 partially fixed this scenario by removing
MAKEOBJDIR, but it seems the AUTO_OBJ setting also needs to be on the same
page for the build and install steps.

Reviewed by: bdrewery
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D14143

show more ...


# fc2a8776 20-Mar-2018 Ed Maste <emaste@FreeBSD.org>

Rename assym.s to assym.inc

assym is only to be included by other .s files, and should never
actually be assembled by itself.

Reviewed by: imp, bdrewery (earlier)
Sponsored by: The FreeBSD Foundati

Rename assym.s to assym.inc

assym is only to be included by other .s files, and should never
actually be assembled by itself.

Reviewed by: imp, bdrewery (earlier)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D14180

show more ...


# 71b12654 10-Mar-2018 Bryan Drewery <bdrewery@FreeBSD.org>

Fix rebase mismerge in r330724.

X-MFC-With: r330724
MFC after: 2 weeks
Sponsored by: Dell EMC


# 906ce865 10-Mar-2018 Bryan Drewery <bdrewery@FreeBSD.org>

Don't skip reading depend for 'make obj' unless it is alone.

This was effectively done in bsd.dep.mk quite some time ago.

MFC after: 2 weeks
Sponsored by: Dell EMC


# 003a0576 10-Mar-2018 Bryan Drewery <bdrewery@FreeBSD.org>

Skip reading depend files with -V unless looking up a depend variable.

This speeds up some simple -V lookups significantly.

Reported by: bde
MFC after: 2 weeks
Sponsored by: Dell EMC


# 50160862 13-Feb-2018 Bryan Drewery <bdrewery@FreeBSD.org>

ports modules: Don't leak AUTO_OBJ changes into the port builds.

This came about when r328489 made ports modules builds no longer use the
in-tree share/mk files, but didn't cleanup MAKEOBJDIR from t

ports modules: Don't leak AUTO_OBJ changes into the port builds.

This came about when r328489 made ports modules builds no longer use the
in-tree share/mk files, but didn't cleanup MAKEOBJDIR from the
environment.

This fixes "Variable OBJTOP is recursive".

Sponsored by: Dell EMC

show more ...


# 283f8a5c 27-Jan-2018 Jason A. Harmening <jah@FreeBSD.org>

Remove system makefile path directives from env passed to PORTS_MODULES step

Previously, MAKESYSPATH as well as '-m' directives in MAKEFLAGS would cause
any port rebuilt during the PORTS_MODULES sta

Remove system makefile path directives from env passed to PORTS_MODULES step

Previously, MAKESYSPATH as well as '-m' directives in MAKEFLAGS would cause
any port rebuilt during the PORTS_MODULES stage to consume system makefiles
from $(SRCROOT)/share/mk instead of those installed under /usr/share/mk.
For kernel modules that need to build against an updated src tree this
makes sense; less so for <bsd.port.mk> or any userspace library or utility
the port may also happen to install.

Before 11.0, this probably didn't matter much in practice. But the addition
of src.libnames.mk under $(SRCROOT)/share/mk in 11.0 breaks any consumer of
bsd.prog.mk and DPADD/LDADD during PORTS_MODULES.

Address the build breakage by removing MAKESYSPATH and any occurrence of
'-m' from MAKEFLAGS in the environment created for the port build.
Instead set SYSDIR so that any kmod built by the port will still consume
conf/kmod.mk from the updated src tree, assuming it uses <bsd.kmod.mk>

Reviewed by: bdrewery
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D13053

show more ...


# 454ce383 16-Jan-2018 Alex Richardson <arichardson@FreeBSD.org>

Use ln -n instead of -h to allow building the kernel on Linux

Both flags do the same thing but -n is more widely supported.

Reviewed By: jhb, emaste
Approved By: jhb (mentor)
Differential Revision:

Use ln -n instead of -h to allow building the kernel on Linux

Both flags do the same thing but -n is more widely supported.

Reviewed By: jhb, emaste
Approved By: jhb (mentor)
Differential Revision: https://reviews.freebsd.org/D13936

show more ...


# 7cc780d7 05-Dec-2017 Bryan Drewery <bdrewery@FreeBSD.org>

DEPENDSRCS not used here.

Sponsored by: Dell EMC


# b4585565 05-Dec-2017 Bryan Drewery <bdrewery@FreeBSD.org>

Rename DEPENDFILES_OBJS to DEPENDFILES.

This is to be consistent with bsd.dep.mk using DEPENDFILES after
r325677.

Sponsored by: Dell EMC


# 937d37fc 19-Nov-2017 Hans Petter Selasky <hselasky@FreeBSD.org>

Merge ^/head r325842 through r325998.


12345678910>>...19